Documentation
Give an agent a wallet, or get your API paid by agents. Start here.
AgentPay is the bank for AI agents: a wallet and SDK on one side, payment middleware on the other, and a gateway in the middle that verifies identity, enforces your rules, and routes the money. Everything below runs in the sandbox with no real money.
Start
- Quickstart · a funded, governed agent in 10 seconds, then its first payment.
- On-ramps · six ways to connect a brain: MCP, TypeScript, Python, LangChain, OpenAI, raw HTTP.
Protocol
- Wire protocol · the 402 → sign → pay → receipt flow and the canonical messages.
- The ledger · double-entry accounting, invariants, and how balances stay provable.
Reference
- Agent SDK ·
AgentPayClient,pay.fetch, and the wallet. - Merchant SDK ·
requirePayment, the hosted proxy, and metered pricing.