Deposit USDC once. Pay for any API instantly. Settle on-chain in batches. 34x cheaper than the alternative — for developers, AI agents, and businesses.
import { AgonClient } from '@agon/client'
const agon = new AgonClient({
baseUrl: 'https://api.agon.so',
apiKey: 'ak_live_xxx',
wallet,
})
// Works with any API — Agon handles payment automatically
const data = await agon.fetch('https://api.example.com/data')
// No wallet signing. No transactions. Just data.The Problem
One Solana transaction per API call. At 1 million calls, that's $1,000+ in fees and hours of wasted blockchain overhead.
Every API call requires a wallet signature and blockchain confirmation. A dashboard with 5 paid APIs adds 5-10 seconds of payment overhead.
If the Solana transaction fails — RPC timeout, network congestion — the API call fails too. Payment infrastructure becomes a single point of failure.
Each API is a separate payment relationship. No unified balance — you manage funds independently for every service.
How It Works
1 million API calls settle in 2 on-chain transactions. Everything in between is instant, offchain, and free.
Send USDC to Agon once. Your balance works across every supported API.
1 on-chain transaction
Make API calls instantly. Authorization is offchain — a database check in ~5ms.
0 on-chain transactions
Agon batches thousands of payments into a single on-chain settlement.
1 on-chain transaction
Two Modes
Whether the merchant uses Agon's SDK or standard x402, your consumer code stays the same.
Merchant integrates @agon/platform SDK. Payments are authorized and consumed offchain, then batch-settled periodically.
Consumer → Merchant (with API key)
Merchant SDK → Agon /authorize
Merchant serves response
Merchant SDK → Agon /consume
Agon settles in batch
Merchant uses standard x402 — no Agon SDK needed. Agon's client auto-detects and routes payment through the proxy.
Consumer → Merchant (402 response)
Client SDK → Agon /proxy
Agon pays merchant via x402
Deducts from consumer balance
Returns response to consumer
Features
One deposit covers every API. Batch settlement keeps costs low. Spending controls keep you in charge.
Thousands of API calls settle in a single on-chain transaction. ~$0.0006 per batch.
Per-request max, daily limits, domain allowlists, and wallet signature overrides protect your funds.
Withdraw your available balance at any time. No lock-ups, no waiting periods.
Set a threshold — Agon keeps your balance topped up via SPL delegation. Never run out at 3am.
Works with the x402 HTTP payment standard. Extends it — doesn't replace it.
Built on Solana with USDC. Stable pricing, fast finality, lowest possible settlement costs.
For Developers
Consumers get @agon/client for paying. Platforms get @agon/platform for getting paid.
Consumer SDK
@agon/clientimport { AgonClient } from '@agon/client'
const agon = new AgonClient({
baseUrl: 'https://api.agon.so',
apiKey: 'ak_live_xxx',
wallet: myKeypair,
})
// Deposit once
await agon.deposit(10_000_000)
// Use everywhere — Mode A or B auto-detected
const data = await agon.fetch(
'https://api.example.com/data'
)Platform SDK
@agon/platformimport { agonMiddleware } from '@agon/platform/express'
app.use(agonMiddleware({
agonUrl: 'https://api.agon.so',
platformKey: 'pk_xxx',
pricing: (req) => 1000, // 0.001 USDC
}))
// Every endpoint is now payable via Agon
app.get('/api/data', (req, res) => {
res.json({ result: '...' })
})Pricing
Coinbase x402 charges $0.001 per transaction — $1,000 per million calls. Agon Pro: $29.
Free
Builder
Pro
Scale
Cost Comparison at 1,000,000 API Calls
Vanilla x402
$4,600
1M on-chain txs
Coinbase x402
$1,000
1M on-chain txs
Agon Pro
$29
~49 on-chain txs
Built For
Build on paid APIs without per-call wallet signatures. One balance, one SDK, every API. Focus on your product instead of wiring up payment flows.
npm install @agon/client
Autonomous agents making thousands of API calls per hour need payments that don't require human approval for each one. Auto-refill keeps the balance topped up. Per-request caps prevent runaway costs.
~5ms authorization latency · no human-in-the-loop
High-volume API consumption with predictable costs. Batch settlement means one on-chain transaction covers thousands of calls — 99.97% cheaper than paying per-call through Coinbase x402.
Daily spending limits · on-chain settlement receipts
One deposit, every API, batched settlement on Solana. The SDKs are open source and the free tier has no time limit.