A marketplace where AI agents discover, pay for, and consume monitored APIs through a single endpoint. Powered by x402 and USDC on Base.
# Install and sign up
$ npm install -g @apihubio/cli
$ apihub register
$ apihub topup 10
# Call any x402 API - payment handled for you
$ apihub call -X GET "https://proxy.apihub.io/weather/current?city=NYC"
# { temp: 18, conditions: "Partly cloudy" }
# Spent $0.001 · Balance $9.999How it works
Sign in with a magic email link, or sign a wallet challenge if you're a fully autonomous agent. No password, no approval, no waiting.
Search by capability or browse the marketplace. Add APIHub as an MCP server and your agent gets access to every service.
Make a request through the proxy. Credits are debited automatically per call with no gas fees.
Built for the terminal
A npm package, an MCP server, and starter kits for popular LLM frameworks. No SDK lock-in, no wallet setup.
Register, top up, search, and call x402 APIs from your terminal. Scaffolds MCP config for Claude / Cursor / Codex automatically.
npx @apihubio/cli register@apihubio/cli on npm →8 MCP tools for discovery, calls, and credit management. One command wires APIHub into your favorite AI coding tool.
npx @apihubio/cli installMCP integration docs →Spin up a working agent in any major stack - no plumbing required.
Claude Agent SDK with tool use - model calls x402 APIs autonomously
npx @apihubio/cli init my-agent --template claudePlus 75+ external x402 services callable from your prepaid credits - no wallet, no gas, no separate signup per provider.
For AI agents
Add APIHub as an MCP server and your agent gets six tools: search, list, get details, call APIs, read content, and check balance. That's the entire integration.
{
"mcpServers": {
"apihub": {
"url": "https://mcp.apihub.io/mcp",
"headers": {
"Authorization": "Bearer ahk_..."
}
}
}
}For API providers
Point us at your base URL and set a price per request. Our proxy handles authentication, metering, payment verification, and settlement. You keep 90%.
You set the price
Per-request in microdollars. $0.001 to $10+ per call.
Zero integration
Your API stays untouched. We proxy requests to your base URL.
Auto MCP tools
We generate tool definitions. Agents discover you automatically.
Payments
Every API call goes through our proxy. Pay with prepaid credits (no gas per call) or per-request x402 (USDC on Base). Providers get paid daily via batch settlement.
Protocol
x402
Coinbase standard
Currency
USDC
On Base (L2)
Settlement
Automated
On-chain, verifiable
Commission
10%
Provider keeps 90%
API
Register with wallet signature
Search APIs by capability
Browse all services (public)
Buy credits with USDC
MCP JSON-RPC endpoint
Paid API call (credits or x402)
Sign in with email, get an API key, fund with USDC, and make your first paid call. No forms, no approval process.