nschwermann/agent_fabric
AgentFabric is an agent-native x402 execution fabric for Cronos that lets AI agents safely execute paid APIs and on-chain workflows using scoped session keys — enabling autonomous execution without exposing private keys.
AgentFabric
Agents with limits.
AgentFabric is an agent-native x402 execution fabric that enables AI agents to safely interact with paid APIs and on-chain workflows on Cronos EVM, using scoped, programmable permissions.
Agents never access a user's primary private key.
Instead, they operate via session keys with explicit, enforceable limits — such as which protocol, which asset, and how much value they are allowed to use.
What AgentFabric Enables
- AI agents that can execute on-chain actions safely
- x402-native APIs with usage-based settlement
- Composable workflows combining APIs + smart contracts
- MCP servers for agent discovery and interaction
- Bounded autonomy via scoped session permissions
AgentFabric turns APIs and workflows into agent-readable economic primitives, without sacrificing custody or control.
Why AgentFabric Exists
AI agents are becoming capable of real financial decision-making — but today's execution models are broken:
- Agents either cannot act at all, or
- They require full access to private keys, creating unacceptable risk
This tradeoff blocks adoption of agentic finance.
AgentFabric solves this by introducing a permissioned execution layer:
- autonomy without custody
- composability without danger
- automation without hot wallets
flowchart LR
subgraph TODAY["Today (Broken Model)"]
A1["AI Agent"] --> W1["Wallet / EOA\nFull private key access"]
W1 --> X1["On-chain actions"]
W1 --> Y1["APIs"]
NOTE1["Unlimited permissions\nHigh blast radius\nUnsafe for automation"]:::warn
end
subgraph AF["AgentFabric Model (Bounded Autonomy)"]
A2["AI Agent"] --> S2["Scoped Session Key\n(least privilege)"]
S2 --> F2["AgentFabric\nPermission Enforcement"]:::good
F2 --> API2["x402 APIs\nPaid, usage-based"]
F2 --> C2["Cronos EVM\nSmart Account + Protocols"]
P2["Allowed protocol\nAllowed asset\nMax value\nAllowed methods"]:::good
end
classDef warn fill:#2b1b1b,stroke:#ff6b6b,stroke-width:2px,color:#ffffff;
classDef good fill:#152a20,stroke:#4ade80,stroke-width:2px,color:#ffffff;
Core Architecture
AgentFabric is built around five core primitives:
1. Smart Account Upgrade
A standard EOA is upgraded into a smart account capable of enforcing:
- session keys
- scoped permissions
- bounded execution
The primary key is never shared.
2. Scoped Session Keys
Session keys define exactly what an agent can do, including:
- allowed contracts / protocols
- permitted assets
- maximum value
- specific methods (e.g. swap only)
This follows the principle of least privilege.
flowchart TB
OWNER["Primary Key (Owner)\nNever shared with agent"]:::owner
SA["Smart Account (Cronos EVM)\nPermission Engine + Enforcement"]:::good
OWNER --> SA
SK["Session Key (Delegated)\n- Valid until: timeboxed\n- Allowed protocol: WolfSwap\n- Allowed methods: swap()\n- Max spend: 5 CRO\n- Optional: allowed assets"]:::good
AG["AI Agent"] --> SK
SK --> SA
SA --> CHAIN["Cronos EVM\nDEX / Protocol Contracts"]:::chain
classDef owner fill:#1f2430,stroke:#93c5fd,stroke-width:2px,color:#ffffff;
classDef good fill:#152a20,stroke:#4ade80,stroke-width:2px,color:#ffffff;
classDef chain fill:#1c1c1c,stroke:#a78bfa,stroke-width:2px,color:#ffffff;
3. x402 API Proxies
Any API can be wrapped as an x402-compatible, usage-based endpoint, allowing:
- programmatic payment
- agent-native consumption
- composable economic primitives
4. Workflow Fabric
Multi-step workflows combine:
- x402 API calls
- on-chain actions
- conditional logic
Workflows are reusable, permissionable, and agent-readable.
flowchart LR
API["Standard API"] --> PROXY["x402 API Proxy\nUsage-based settlement"]:::good
subgraph WF["Workflow Fabric"]
A["x402 API Call(s)"] --> W["Composable Workflow\nReusable + Permissionable\nAgent-readable"]:::good
B["On-chain Action(s)\n(Cronos EVM)"] --> W
C["Optional: Conditional Logic\n(routing / checks)"] --> W
end
W --> MCP["MCP Server\nPublish capabilities to agents"]
MCP --> AG["AI Agent"]
classDef good fill:#152a20,stroke:#4ade80,stroke-width:2px,color:#ffffff;
5. MCP Servers
Selected APIs and workflows are exposed as MCP servers, enabling:
- agent discovery
- standardized invocation
- safe execution surfaces for AI systems like ChatGPT and Claude
End-to-End Flow (High Level)
- A developer or user defines APIs and workflows
- A smart account is deployed or upgraded
- A scoped session key is generated for an agent
- APIs and workflows are exposed via an MCP server
- The agent discovers, reasons, and executes within strict boundaries
- Transactions settle on Cronos using x402-compatible flows
Result: autonomous execution without autonomous risk.
flowchart LR
AG["AI Agent\n(ChatGPT / Claude / Custom Agent)"] --> MCP["MCP Server\nAgent-facing execution surface\nDiscoverable capabilities"]
MCP --> AF["AgentFabric\nx402 Execution Fabric\nAPI Proxies + Workflow Engine\nPermission Enforcement"]:::good
AF --> X402["x402 APIs\nPaid, usage-based settlement"]
AF --> CR["Cronos EVM\nSmart Account + DeFi Protocols"]:::good
SK["Scoped Session Key\nAllowed protocol / asset / methods\nMax value + expiry"]:::good
AG -. uses .-> SK
SK -. authorizes .-> AF
classDef good fill:#152a20,stroke:#4ade80,stroke-width:2px,color:#ffffff;
Demo Scenario (Hackathon Highlight)
In the demo, AgentFabric shows an AI agent performing the following task:
"Find the top trending token on Cronos today and buy 5 CRO worth of it."
Using AgentFabric, the agent:
- Queries a paid x402 API for trending tokens
- Selects the top result
- Executes a swap via a prebuilt WolfSwap DEX aggregation workflow
- Settles the transaction on Cronos EVM
At no point does the agent access the user's private key.
All actions are executed within scoped permissions.
Built for Cronos & x402
AgentFabric is:
- deployed on Cronos EVM
- designed for x402-style programmatic payments
- compatible with Crypto.com ecosystem tooling
- aligned with agentic finance and AI-native infrastructure
This makes Cronos a safe, first-class execution environment for AI agents.
Use Cases
- Agent-triggered DeFi actions
- Automated portfolio management
- Risk-bounded trading bots
- Paid API access for AI agents
- Agent-readable developer tooling
- Institutional-grade agent workflows
Hackathon Tracks
AgentFabric qualifies for:
- Main Track — x402 Applications
- x402 Agentic Finance / Payment Track
- Crypto.com x Cronos Ecosystem Integration
- Dev Tooling & Data Virtualization Track
License
MIT
Links
- Website: https://agentfabric.tools
- Demo: https://www.youtube.com/watch?v=xfvH6TqvJd8
- Hackathon Submission: https://dorahacks.io/buidl/38376
Source Code
- Smart Account & Session Keys — ERC-7702 delegation contracts with scoped permissions
- x402 Proxies & Workflows — Next.js app for API proxies, workflows, and marketplace
- MCP Server — Express server exposing tools and workflows via MCP protocol