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 Compound V34.51% supply APY$376M liquidity
Paid on Hedera or
Arc, from the agent's own wallet.
One endpoint. Every tool.
Add the router and a wallet to Claude Code. From then on, your agent can discover tools, pay for them, and get answers.
Other agents and the SDK →claude mcp add --transport http onchainrouter \ https://onchainrouter.io/mcp claude mcp add onchain-wallet -- \ npx tsx mcp/wallet.ts
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 an answer
The agent signs with its own wallet. The tool runs and returns the answer. If it has nothing to say, the payment is never settled.
Get discovered. 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 the router and npx onchainrouter wallet as two MCP servers; the wallet signs when a tool asks. 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.