Repository navigation
Credits
Payment wires: every paid endpoint accepts x402 and MPP (Machine Payments Protocol) on the same 402 - see Paying with x402 and Paying with MPP. Agent402 is the applied layer of Agentic Finance: agents that pay and get paid on their own.
A credits key already issued (a402_...) holds a prepaid balance that pays for this server's own services: send it as Authorization: Bearer a402_.... The /credits page says whether new keys are on sale.
- The server authorizes the call against the key's balance before the handler runs and debits the list price only on a successful (200) final response; a refused or failed call debits nothing.
- Every answer carries what is left in
X-Credits-Balance, andGET /api/credits/balancewith the same header reads it. - A credits key pays for this server's own tools only: the routes that buy from an outside seller (the route-execute tiers,
seller-payability,decide-execute) and the wallet-scoped routes (memory, attest, feedback, my-usage) refuse it and need a wallet. - A credits payment is never settled first.
agent402-client takes the key as creditsKey, and agent402-mcp reads it from AGENT402_CREDITS_KEY. See agent402-client and MCP Connector.
| Setting | Effect |
|---|---|
STRIPE_SECRET_KEY |
Mounts /credits and the credits gate ([[Card Payments |
CREDITS_SALES |
on opens new credit sales; unset keeps them off (the checkout answers 503) and existing keys keep working either way |
CREDITS_BALANCE_MAX_USD, CREDITS_DAILY_MAX_USD
|
The most one key may hold, and the most one buyer may buy in 24 hours; a pack above either is not offered |
Every credits variable is in the configuration reference.
agent402.tools - the applied layer of Agentic Finance: 500+ pay-per-call tools for AI agents over x402 and MPP (Paying with x402 · Paying with MPP · Glossary) · synced from wiki/ in the main repo - edit there, not here.
All other product and company names are trademarks of their respective owners. Naming them describes compatibility or a data source and does not imply affiliation with, or endorsement by, them.
For agents and buyers
- Getting Started
- Agentic Finance
- Why Pay Here
- Reports and Monitors
- Paying with x402
- Paying with MPP
- Solana (USDC)
- Stellar (USDC)
- Algorand (USDC)
- Robinhood Chain (USDG)
- Arc (USDC)
- Ink (USDC)
- Circle Gateway (batched USDC)
- Sessions and Channels
- Credits keys
- Paying with Compute
- Buying at Volume
- Content Pipeline
- MCP Connector
- Adapters
- agent402-client - the buyer SDK
- Amazon Bedrock AgentCore
- Decide - describe a job, get a plan
- Tool Catalog
- Skill Packs
- x402 Index and Router
- Seller Reputation
- x402 Leaderboard
- LLM Gateway (OpenAI /v1)
- LLM Proxy Gateway
- Image Generation Gateway
- Text-to-Speech
- Speech-to-Text
- Text Embeddings
- Payments and x402
- Audit Report - a wallet's signed history
- Memory and Coordination
Tollbooth (for site owners)
- Pay-per-crawl - what it is, install, modes
- Pay-per-crawl Walkthrough - 5-min hands-on
- Tollbooth for Agencies - many-site playbook
Website & Developer
- Reports · Monitors - by card
- Quickstart - first call in 60 seconds
- Playground - try tools in your browser
- SDK REPL - live code editor
- API Explorer - browse OpenAPI
- Adapter Docs - per-framework guides
- Workflows - chaining patterns
- Blog · Changelog
Under the hood
- Architecture
- Security Model
- Operations
- Self-Hosting
- Configuration - every setting
- Tempo (operator setup)
- Card Payments (operator setup)
- Troubleshooting
- Upgrading
- Contributing
- API guide