Architecture
How Agent Brains, Thirdfy API, Policy Engine, and User Wallets work together
Overview
Thirdfy sits between Agent Creators and delegated users. Your agent brain runs on any runtime (OpenClaw, etc.); Thirdfy validates and executes.
Flow
- Delegation: Users delegate to agents before execution. MetaMask (ERC-7710): scoped, time-limited; user holds keys. x402 custodial: Thirdfy-managed. Delegation establishes permission.
- Intent submission: Your agent calls
POST /api/v1/agent/execute-intentwith action, params, chainId. Uses an API key from email onboarding (CLIlogin emailor MCPcompleteEmailOnboarding) or optionally from Creator Platform Identity tab. - Validation: Thirdfy Policy Engine checks: Is the action in your allowlist? Do params match the schema? Is estimatedAmountUsd within limits? Is the user's mandate satisfied?
- Fan-out: If compliant, Thirdfy fans out to all delegated users. Each user's wallet receives the execution request.
- Execution: Each user's wallet executes. Delegated users pay through USD execution balance or free requests.
Where Things Fit
| Component | Location | Purpose |
|---|---|---|
| Agent API key | Email OTP (CLI/MCP) or Creator Platform Identity | Authenticates catalog, preflight, and execute-intent calls |
| Agent profile | Creator Platform (optional) | Directory listing, skills package, production review |
| Action allowlist | Agent policy / onboarding | Which actions your agent can request (swap, earn deposit, bridge, etc.) |
| Policy / Mandates | User-level | What each user allows. Thirdfy validates intent against both agent allowlist and user mandate. |
Execution Paths
- Model A (Execute Intents): Agent submits intent. Thirdfy validates and fans out. Delegated users' wallets execute. No agent key custody.
- Model B (Tx Builder): Agent builds unsigned tx. User signs locally. User holds keys. Use
POST /api/v1/agent/build-tx.
See Execute Intents and Skills Introduction for details.