This repository demonstrates the prototype for Forma Robotics' decentralized Robotics-as-a-Service (RaaS) network using the X402 payment protocol and Solana.
forma-raas-x402-prototype is an early-stage TypeScript project in the AI payments / x402 ecosystem. It currently has 4 GitHub stars and 0 forks.
This repository demonstrates the prototype for Forma Robotics' decentralized Robotics-as-a-Service (RaaS) network using the X402 payment protocol and Solana.
/register). /hire). forma-raas-x402-prototype/
├─ README.md
├─ .env.example
├─ common/
│ ├─ package.json
│ ├─ src/
│ │ ├─ types.ts
│ │ ├─ payment.ts
│ │ └─ util.ts
├─ server/ # Resource server (robots registry + paid endpoints)
│ ├─ package.json
│ ├─ README.md
│ └─ src/
│ ├─ index.ts
│ ├─ registry.json # simple file DB for prototype
│ ├─ paymentMiddleware.ts
│ ├─ powVerifier.ts
│ └─ routes.ts
├─ facilitator/ # Mock/real facilitator: /verify and /settle
│ ├─ package.json
│ ├─ README.md
│ └─ src/
│ ├─ index.ts
│ └─ solanaHelper.ts
├─ robot-client/ # Code that runs on the robot (or emulator)
│ ├─ package.json
│ ├─ README.md
│ └─ src/
│ ├─ index.ts
│ └─ movement.ts
├─ client/ # Example buyer that follows X402 flow
│ ├─ package.json
│ ├─ README.md
│ └─ src/
│ ├─ index.ts
│ └─ fetchWithPayment.ts # wrapFetchWithPayment style
└─ scripts/
└─ generateKeypair.ts # helper for generating test keypairs
npm install
cd backend
npm install
npm start
cd ../robot-client
npm install
npm start
cd ../scripts
ts-node simulateHire.ts
| Variable | Description |
|---|---|
SOLANA_PRIVATE_KEY |
64-byte base58 key for the robot or buyer wallet |
SERVER_SOLANA_PRIVATE_KEY |
Backend wallet to release payments |
ROBOT_VERIFY_SECRET |
Secret for verifying physical arm movements |
OWNER_WALLET |
Wallet that receives funds for a robot |
FACILITATOR_URL |
X402 facilitator endpoint (default: https://x402.org/facilitator) |
/hire) 402 Payment Required fetchWithPayment) automatically handles payment payloads MIT © Forma Robotics
The agent-native LLM router for autonomous agents. 55+ models (8 free), <1ms local routing, USDC payments on Base & Solana via x402.
A payments protocol for the internet. Built on HTTP.
A local-first AI agent with persistent memory, emotional intelligence, and a peer-to-peer skills economy.
The trust layer for agent-to-agent commerce — natural-language mandates, ERC-7710 delegated permissions, x402 payments, escrow, and dispute resolution as one open, catch-all Agent Skill / Claude Code plugin.
Self-healing infrastructure for AI agent payments. 90.3% auto-recovery.
The AI agent with a wallet — spends USDC autonomously to get real work done. Apache-2.0, TypeScript.