Pay-per-call AI gateway: models, speech, web search, on-chain reads and NLP tools, via x402.
One address for any MCP client. No sign-in needed on this server.
5 other
Grouped by tool name. At most: only reads or looks up information.
Odel charges nothing per call. The publisher may charge for its own service.
x402 is HTTP 402 put to work: a server answers 402 Payment Required
with the exact price, the client signs a stablecoin payment and repeats the same request.
No account, no API key, no invoice.
These examples call DexL Agents, an x402 gateway (chat models, speech, web search and crawl, on-chain reads, FX rates, NLP tools). Everything here works against any x402 server — only the URL changes.
npm install
npm run free
free.mjs does two things:
model: "dexl-free") — no payment header, no wallet, no account;Real output:
free answer: HTTP 402 (Payment Required) is a non-standardized status code reserved for future use...
web-search costs 0.01 USDC on eip155:8453 (HTTP 402)
PRIVATE_KEY=0x... npm run paid
The payment is these three lines; after them it is ordinary fetch:
const signer = toClientEvmSigner(wallet);
const client = new x402Client().register('eip155:8453', new ExactEvmScheme(signer));
const fetchWithPay = wrapFetchWithPayment(fetch, client);
Your key stays on your machine — the server only ever sees a signed payment. Settles in USDC on Base, Polygon, Arbitrum or Solana. Error responses are not charged.
The free example above was run as-is. The paid one needs your own funded wallet, so run it yourself with a small balance; it uses the same client our own service uses.
Remote (free tools only — a remote server holds no wallet of yours):
https://agents.dexl.io/mcp
Local, with paid tools, because the wallet stays on your machine:
{
"mcpServers": {
"dexl": {
"command": "npx",
"args": ["-y", "dexl-agents", "mcp"],
"env": { "DEXL_BASE_URL": "https://agents.dexl.io", "DEXL_PRIVATE_KEY": "<optional>" }
}
}
}
GET /v1/tools lists every tool with its price and schema.
Machine-readable: /llms.txt ·
/openapi.json ·
/.well-known/x402 ·
/.well-known/mcp
MIT licensed. Issues and pull requests welcome.