HTTP 402 Payment Required
AgentGate lets AI agents pay for any API with stablecoins on Tempo. No API keys. No subscriptions. One HTTP header.
# 1. agent calls a paid endpoint $ curl -X POST /api/execute \ -d '{"code": "console.log(42)"}' # 2. gateway responds with payment instructions HTTP/1.1 402 Payment Required X-Payment-Amount: 0.01 X-Payment-Token: pathUSD X-Payment-Recipient: 0x00DfEe79… # 3. agent pays pathUSD on Tempo (~2s finality) $ curl -X POST /api/execute \ -H "X-Payment: 0x00Df…:0.01:pathUSD:0xabc…def" \ -d '{"code": "console.log(42)"}' # 4. payment verified on-chain, response returned HTTP/1.1 200 OK { "output": "42\n", "exitCode": 0 }
Real services, real on-chain payments. Tempo testnet.
$ bun add @tempo-agentgate/sdk @tempo-agentgate/middleware
Built with
HTTP 402 was reserved in 1997
for "future use."
The future is autonomous agents with wallets.