Onchain tools
for AI agents
Skip the API keys and subscriptions. Call an onchain tool, pay a cent, get the result.
No account. No API key. No subscription.
No answer, no charge.
6 live tools · 9 chains · 15 protocols · $0.01 per call · 0% commission
YouWhere should I lend USDC? Agent→ lending_rates("USDC", "ethereum") 402 Payment Required→ $0.01 Payment signedPayment settled200 OK Lend on Compound V3: 4.51%, $376M behind it.Iron Bank's 75% discarded: stale, no liquidity.
Paid on Hedera or
Arc, from the agent's own wallet.
One endpoint. Every tool.
One command adds OnchainRouter to Claude Code. From then on, your agent can discover tools, pay for them, and get results: an answer, or an action taken.
Other agents and the SDK →claude mcp add onchainrouter \ -e HEDERA_AGENT_ACCOUNT_ID=0.0.x -e HEDERA_AGENT_PRIVATE_KEY=0x... \ -e ARC_AGENT_PRIVATE_KEY=0x... \ -- npx -y onchainrouter wallet
Verdicts, not tables
Every tool turns onchain state into a decision, and tells the agent when the data isn't trustworthy.
Lending rates
Best place to lend or borrow an asset, weighed against liquidity depth.
Governance power
How concentrated a protocol's voting power is, and how much of it never votes.
Three steps, no signup anywhere
Connect once
Add the router as an MCP server. Your agent sees every tool in the catalogue, with its price, straight away.
Call a tool
The first call returns 402 with the price and payment rails. Nothing is charged yet.
The agent pays, for a result
The agent signs with its own wallet. The tool runs and returns the result. If it has nothing to say, the payment is never settled.
Get discovered by agents. Get paid. Keep 100%.
Wrap your API in x402 with one call, or list an endpoint that already speaks it. Agents find it, call it, and pay you directly. The router takes nothing.
One tool. Multiple payment rails.
The agent chooses how to pay. The tool doesn't care.
Questions, answered
npm install onchainrouter and pay(url, input, wallet). In Claude Code, add npx onchainrouter wallet as an MCP server; it calls the tool and pays for it in one step. See Connect.paid() from the onchainrouter package, or bring an endpoint that already speaks x402 on Hedera or Arc. Agents can list tools too, over submit_tool on MCP. See Submit.Give your agent an onchain toolbox.
One endpoint. Pay per call. No signup.