Clawy — gateway v1.1.0 · x402 v2 · Base mainnet · discoverable
Frontier models (GPT-5.5, Claude Opus 4.8) billed per request in USDC. No API keys, no signup, no monthly contract. AI agents pay per call; humans can too.
# 1. Hit any paid endpoint without payment → server returns 402 with requirements
curl -X POST https://clawy.uk/v1/chat/opus \
-H "Content-Type: application/json" \
-d '{"messages":[{"role":"user","content":"Hello"}]}'
# 2. Read the PAYMENT-REQUIRED header → sign an EIP-3009 transferWithAuthorization
# for the amount (0.10 / 0.15 / 0.04 USDC). Any x402 client works.
# 3. Retry the same POST with the X-PAYMENT header
curl -X POST https://clawy.uk/v1/chat/opus \
-H "Content-Type: application/json" \
-H "X-PAYMENT: <base64-payment-payload>" \
-d '{"messages":[{"role":"user","content":"Hello"}]}'
# 4. Receive an OpenAI-shape chat.completion response
# { "id":"chatcmpl-...", "model":"claude-opus-4-8", "choices":[...], "x_clawy":{...} }
Five discovery files let autonomous clients find, price-check, and call the service without a human in the loop:
/openapi.json — OpenAPI 3.1 spec with x-payment-info for every endpoint/llms.txt — LLM.txt discovery (one-page summary for LLM clients)/.well-known/x402.json — x402 Bazaar manifest/.well-known/agent-services.json — generic agent-services catalog/health — live status, configured providers, current pricing1. POST /v1/chat/opus → 402 Payment Required
PAYMENT-REQUIRED: <base64 of payment requirements, amount=150000 (= $0.15)>
2. Client signs EIP-3009 transferWithAuthorization
(USDC on Base, $0.15 to 0x767C96C228560DE259C2DB1D3c636B4C87b01a0C, valid 300s)
3. POST /v1/chat/opus
X-PAYMENT: <base64 of signed payload>
→ 200 OK
{ "id":"chatcmpl-...", "model":"claude-opus-4-8",
"choices":[{"message":{"role":"assistant","content":"..."}}],
"x_clawy":{"provider":"anthropic","delivery":"api"} }
@x402/express middleware/v1/chat/auto tierx_clawy.provider, x_clawy.delivery, fallback) is always exposed so the caller knows exactly which model served the request. Receiving wallet: 0x767C96C228560DE259C2DB1D3c636B4C87b01a0C. x402scan-listed. Coinbase Bazaar-discoverable.
x402 is an open payment protocol built on HTTP 402 Payment Required. Clients receive payment requirements in a response header, sign an EIP-3009 transferWithAuthorization, and retry with the signed payload in the X-PAYMENT header. Clawy implements x402 v2.
No. Clawy uses pay-per-call USDC micropayments over x402. No signup, no API key, no monthly subscription. The only requirement is a wallet that can sign EIP-3009 transferWithAuthorization messages for USDC on Base mainnet.
Three endpoints: POST /v1/chat/chatgpt (OpenAI GPT-5.5, $0.10/call), POST /v1/chat/opus (Anthropic Claude Opus 4.8, $0.15/call), and POST /v1/chat/auto (cost-optimized, $0.04/call). All return OpenAI-shape chat.completion objects.
USDC on Base mainnet (eip155:8453, USDC contract 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913). Payments settle through the Coinbase CDP facilitator.
ChatGPT: $0.10 USDC/call. Claude Opus: $0.15 USDC/call. Auto: $0.04 USDC/call. No subscription, no minimum, no hidden fees.
Yes. Five discovery files: /openapi.json, /llms.txt, /.well-known/x402.json, /.well-known/agent-services.json, and /health. The service is listed on x402scan and discoverable via the Coinbase Bazaar.