Built on Solana · x402 Compatible

The payment layer for x402

Deposit USDC once. Pay for any API instantly. Settle on-chain in batches. 34x cheaper than the alternative — for developers, AI agents, and businesses.

consumer.ts
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

Vanilla x402 doesn't scale

One Solana transaction per API call. At 1 million calls, that's $1,000+ in fees and hours of wasted blockchain overhead.

Per-call latency

Every API call requires a wallet signature and blockchain confirmation. A dashboard with 5 paid APIs adds 5-10 seconds of payment overhead.

Fragile payments

If the Solana transaction fails — RPC timeout, network congestion — the API call fails too. Payment infrastructure becomes a single point of failure.

Siloed balances

Each API is a separate payment relationship. No unified balance — you manage funds independently for every service.

How It Works

Three steps. Two transactions.

1 million API calls settle in 2 on-chain transactions. Everything in between is instant, offchain, and free.

1

Deposit

Send USDC to Agon once. Your balance works across every supported API.

1 on-chain transaction

2

Use

Make API calls instantly. Authorization is offchain — a database check in ~5ms.

0 on-chain transactions

3

Settle

Agon batches thousands of payments into a single on-chain settlement.

1 on-chain transaction

DEPOSIT (1 tx)AUTHORIZE (offchain)CONSUME (offchain)SETTLE (1 tx)

Two Modes

Works with any merchant

Whether the merchant uses Agon's SDK or standard x402, your consumer code stays the same.

Mode A

Agon-native

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

Lowest cost~5ms latency
Mode B

x402 Proxy

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

Any x402 merchantNo cooperation needed

Features

What you get

One deposit covers every API. Batch settlement keeps costs low. Spending controls keep you in charge.

Batch Settlement

Thousands of API calls settle in a single on-chain transaction. ~$0.0006 per batch.

Spending Controls

Per-request max, daily limits, domain allowlists, and wallet signature overrides protect your funds.

Instant Withdrawals

Withdraw your available balance at any time. No lock-ups, no waiting periods.

Auto-Refill

Set a threshold — Agon keeps your balance topped up via SPL delegation. Never run out at 3am.

x402 Compatible

Works with the x402 HTTP payment standard. Extends it — doesn't replace it.

Solana-Native

Built on Solana with USDC. Stable pricing, fast finality, lowest possible settlement costs.

For Developers

Two SDKs, both simple

Consumers get @agon/client for paying. Platforms get @agon/platform for getting paid.

Consumer SDK

@agon/client
agent.ts
import { 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/platform
server.ts
import { 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

34x cheaper than the alternative

Coinbase x402 charges $0.001 per transaction — $1,000 per million calls. Agon Pro: $29.

Free

$0/mo
Included calls10,000
Overage$0.0002/call

Builder

$9/mo
Included calls250,000
Overage$0.0001/call
Most Popular

Pro

$29/mo
Included calls1,000,000
Overage$0.00005/call

Scale

$99/mo
Included calls10,000,000
Overage$0.00002/call

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

Developers. AI agents. Businesses.

Developers

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

AI Agents

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

Businesses

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

Start building with Agon

One deposit, every API, batched settlement on Solana. The SDKs are open source and the free tier has no time limit.

Open source SDKsFree tier includedSolana + USDC