[ x402 / USDG / chain 4663 ]
x402 payment rails for AI agents.
Put a price on any endpoint. Agents pay per request in USDG, settle on Robinhood Chain in about a block, and never hold a single API key.
- Discover
- 402
- Authorize
- Settle
- Receipt
- →GET /.well-known/x4028 routes
- →GET /x402/premiumno payment
- ←402 Payment Required0.01 USDG
- ✎user approved · sign PaymentIntentEIP-712
- ⛓transfer USDG → payTo#91,016,422
- ←200 OK · X-PAYMENT-RESPONSE98 ms
AFor agent developers
Let your agent pay its own way.
Give Claude Code, Cursor or any skill-aware agent a price list and a wallet. It discovers paid routes, reads the 402 challenge and pays only after you approve.
BFor operators
Price an endpoint in one block of config.
Gate any route, then watch gate hits, settlements and brokered vault calls stream into the console. Fire a real 402 from the playground, no wallet needed.
Install once. Pay per call.
Drop the Tollgate skill into any project. Your agent reads the paid route catalog, receives a real 402 challenge and asks before it spends. When you approve, it signs a bounded USDG PaymentIntent and the gateway settles it on-chain.
# 1. fetch the gateway and its agent skill$ git clone https://git.tollgate402.com/tollgate/gateway.git tollgate$ mkdir -p .claude/skills/tollgate-x402$ cp tollgate/skill/SKILL.md .claude/skills/tollgate-x402/# 2. discovery is read-only: no wallet, no key$ export TOLLGATE_URL=https://gateway.tollgate402.com$ curl -si $TOLLGATE_URL/x402/premiumHTTP/2 402 Payment Requiredcontent-type: application/jsonx-payment-network: eip155:4663{"scheme":"exact","price":"0.01","asset":"USDG","payTo":"0x7A3f…c21E","expiresIn":60}- 1
Clone the gateway repo
skill, gateway and smoke tests ship together
- 2
Copy SKILL.md into .claude/skills/tollgate-x402
picked up on the next agent session
- 3
Point TOLLGATE_URL at any gateway
yours, or the public reference gateway
- Works with Claude Code, Cursor and any skill-aware agent
- Browsing the catalog is free and needs no wallet
- Spends only after you approve, inside a per-session cap
- Every paid call returns a receipt anchored to a transaction
One status code. Four moves. No accounts, no credits.
HTTP 402 finally does what it was reserved for. Tollgate turns it into a challenge an agent can read, a payment a human can approve and a receipt anyone can check.
01
Discover
The agent lists priced routes from /.well-known/x402. Reading the catalog never costs anything.
GET /.well-known/x402
02
Authorize
You approve one bounded PaymentIntent: one route, one price, one nonce and a 60-second expiry.
EIP-712 · signTypedData
03
Settle
The facilitator verifies the signature and moves USDG on Robinhood Chain before the request is forwarded.
transferWithAuthorization
04
Receipt
The agent replays with X-PAYMENT and gets the response, plus a receipt tied to the settlement tx.
200 · X-PAYMENT-RESPONSE
One paid call, fully measured.
Nine stops on two lines. The payment line runs on every request; the measurement line is what makes every cent auditable afterwards.
L1
The payment
every call · ~100 ms
01
Client request
GET /x402/premium
02
402 Payment Required
price · asset · nonce
03
Sign PaymentIntent
EIP-712 · USDG
04
Facilitator settles
verify → transfer
05
200 OK
payload in ~100 ms
stop 04 writes to stop 08 · every settlement lands in the route's analytics
L2
The measurement
every event · in the console
06
Route registered
path + USDG price
07
Gate enforced
402 until paid
08
Settlement recorded
tx hash · block
09
Visible in console
charts · routes · audit
- Client side
- Payment gate
- Settlement & USDG
Traffic on the rails, right now.
Counters and gate hits from the reference gateway at gateway.tollgate402.com: routes priced, challenges issued, secrets brokered and USDG settled.
- Paid APIs
- 0
- priced routes on this gateway
- 402 gates hit
- 0
- challenges issued, all time
- Vault secrets + brokered calls
- 0 + 0
- keys never shown to a model
- USDG settled
- 0.00
- on Robinhood Chain
Gate log
gateway.tollgate402.com
| Status | Route | Price | Age |
|---|---|---|---|
| 200 | /x402/news | 0.01 USDG | 2s |
| 402 | /x402/alerts | 0.01 USDG | 26s |
| 402 | /x402/market-analytics | 0.05 USDG | 30s |
| 200 | /x402/premium | 0.01 USDG | 40s |
| 402 | /x402/premium | 0.01 USDG | 56s |
| 402 | /x402/news | 0.01 USDG | 1m |
| 200 | /x402/geo | 0.005 USDG | 1m |
| 200 | /x402/premium | 0.01 USDG | 1m |
Run it yourself. Watch every cent land.
Tollgate is a single Node service: read-only RPC proxy, x402 gates, credential vault, agent wallets and on-chain settlement. The console shows every gate hit and transfer as it happens.
- 01Live gate hits, settlements and brokered vault calls
- 02Playground: send a real 402 and pay it without a wallet
- 03Paid sessions: settle once, call N times
- 04Nonce replay protection, 429 + Retry-After on burst
- 05Ships with a smoke-test suite you can run in CI
# scaffold a gateway and price two routes$ npx @tollgate/gateway init --chain 4663✔ wrote tollgate.config.ts ✔ generated VAULT_KEY$ npm run smoke✔ 402 challenge shape ✔ replayed nonce rejected✔ expired intent rejected ✔ settlement anchored to tx✔ vault scrubs echoed secret ✔ session counts down6 passed (2.4s)$ curl -s $TOLLGATE_URL/x402/stats | jq .{ "routes": 8, "gateHits24h": 6714, "settled24h": "214.62" }06Why it exists
Infrastructure, not a storefront.
x402 is an open standard, and agents need rails they can trust without trusting us. Tollgate is those rails, for anyone serving agents.
Payments, not promises
Each call is priced and settled per request, or once per paid session. No credits to top up, no invoices, no monthly minimums.
Model-proof vault
Secrets are sealed with AES-256-GCM and substituted at egress. The model only ever sees [REDACTED], and echoes are scrubbed on the way back.
Identity with receipts
Every agent gets a wallet, an API key and a reputation score built from settled payments, each one anchored to a transaction.
Open source, MIT
One self-hostable Node service. Fork it, audit it, run it next to your API. Nothing phones home; there is no telemetry.
07 Network token
$TOLL is live.
The Tollgate network token is deployed on Robinhood Chain, the same chain every gate settles on.
- Ticker
- $TOLL
- Network
- Robinhood Chain·4663
Build for agents. Get paid per call.
Install the skill and let an agent discover, pay and verify. Or open the console and watch a 402 turn into a receipt.