HTTP 402 Payment Infrastructure
AgentX402 is the programmable payment layer for AI agents — built on Solana, Base, and Tempo. No intermediaries. No friction. Just autonomous value exchange at machine speed.
Process
Deploy a payment-capable agent with our SDK. One-line setup. Wallet provisioned automatically on Solana or Base.
Define what your agent pays for — API calls, compute, data — with policies encoded directly on-chain via Tempo.
AgentX402 middleware catches HTTP 402 signals in real-time and settles payment autonomously within milliseconds.
Every transaction is logged on-chain. Full observability through the dashboard. Exportable receipts for accounting.
Capabilities
Route payments across Solana and Base automatically. AgentX402 picks the optimal chain based on fee, speed, and liquidity at runtime.
Non-custodial wallets provisioned per-agent. Spending limits, time-locks, and whitelist policies enforced on-chain.
Deterministic payment scheduling and retry logic powered by Tempo. Guarantees delivery without human intervention.
Granular spend controls. Set per-call limits, daily caps, and approved payees. All verifiable on-chain, not in a database.
TypeScript, Python, and Rust SDKs. Drop into any agent framework — LangChain, AutoGen, CrewAI — in under 10 minutes.
Payment events streamed via webhooks and on-chain indexers. Build reactive agents that respond to settlement confirmations instantly.
Developer
// Install: npm i @agentx402/sdk import { AgentX402, SolanaAdapter } from '@agentx402/sdk' // Initialize with your chain adapter const agent = await AgentX402.init({ adapter: new SolanaAdapter(), policy: { maxPerCall: '0.01 SOL', dailyCap: '5 SOL', whitelist: ['api.openai.com'], } }) // Make a 402-aware fetch — payment is automatic const res = await agent.fetch('https://api.data.xyz/v1/query', { method: 'POST', body: JSON.stringify({ q: 'latest BTC price' }) }) // AgentX402 intercepts 402, settles on-chain, retries. const data = await res.json() console.log(data)
The AgentX402 SDK wraps native fetch with automatic payment resolution. When a server returns HTTP 402, the middleware reads the payment header, validates against your agent's policy, and settles on-chain — all before the retry.
Full TypeScript support. OpenAPI spec included. Compatible with any AI agent framework that can make HTTP requests.
Tokenomics
$0 / month
For developers building and testing agent payment flows on devnet.
0.1% / tx volume
For agents in production. No monthly fee. You pay only when your agents transact.
— talk to us
For high-volume deployments with custom SLAs, dedicated infrastructure, and compliance requirements.
Access
Connect your wallet to access the AgentX402 dashboard, provision agent wallets, and deploy your first payment-capable agent on mainnet.
Supports Phantom, Metamask, Coinbase Wallet, and WalletConnect