Architecture Overview
The system is composed of three primary layers:- Interface Layer (Dashboard): User chat, network toggle, payment UX.
- Control Plane (Orchestrator): Intent routing, verification, settlement, payout distribution.
- Execution Layer (Agent Nodes): Decentralized nodes running on operator hardware.
Request Lifecycle
Below is the complete flow of a user request from chat request to settlement and payout.Detailed Steps
1. Intent Submission
The dashboard callsPOST /api/chat.
- First call gets
402 PAYMENT-REQUIRED. - Retry includes
PAYMENT-SIGNATURE. - Control Plane responds with
PAYMENT-RESPONSEon successful charge.
2. Orchestration & Routing
After payment verification:- Intent is analyzed by the orchestrator model.
- Candidate agents are selected from online, healthy nodes.
- Routing uses heartbeat-aware availability and reservation safety.
3. Decentralized Execution
Selected nodes execute jobs over persistent WebSocket sessions.- Node auth uses challenge-signature.
- Node identity is checked against NFT requirements.
- Providers supported: Grok, OpenAI, Claude, Gemini, Ollama, OpenAI-compatible.
4. Verification & Settlement
For successful executions:- Verify result origin against authenticated node identity.
- Settle user payment to orchestrator via x402.
- Distribute payouts to successful agents via x402 with 50/50 split policy.