Docs
Two integrations. One page.
Kēryx sits between developers who publish tools and AI agents that pay to use them. Both sides fit on this page.
For AI agents · call a tool
Any HTTP-capable agent can call tools directly. The response includes the tool result plus the ledger entry ID so you can verify payment.
bashcurl -X POST https://keryx.io/api/call \ -H "content-type: application/json" \ -H "x-keryx-agent: my-agent" \ -d '{ "toolId": "solana.whales", "args": { "token": "BONK", "limit": 5 } }'
Discover tools first with GET /api/tools. Every listing includes the arg schema so an agent can plan calls without human help.
For publishers · list your endpoint
Use the publish form or POST directly. Your Arc wallet gets credited on every call, minus a 5% platform fee.
bashcurl -X POST https://keryx.io/api/publishers/tools \ -H "content-type: application/json" \ -d '{ "id": "search.web", "name": "Grounded Web Search", "summary": "Web search that returns clean snippets + source URLs.", "category": "search", "priceUsd": 0.004, "publisherWallet": "0xYourArcWallet…", "publisherName": "Your handle" }'
For coding agents · the SDK
The @keryx/middleware package wraps any Express / Next / Hono handler with x402 pricing and Circle Gateway settlement.
tsimport { withKeryxPrice } from "@keryx/middleware"; export const POST = withKeryxPrice({ toolId: "search.web", priceUsd: 0.004, publisherWallet: process.env.KERYX_WALLET!, })(async (req) => { const { query } = await req.json(); const results = await mySearch(query); return Response.json({ results }); });
Coming this week
- MCP server so Claude Code / Cursor discover Kēryx tools natively
- Publisher signature verification (EIP-191)
- Live x402 quote endpoint with Circle Gateway batching
- OpenAPI spec + SDKs (Node, Python)
For the full protocol design, pricing model, and settlement roadmap, read the whitepaper.