Agents pay: x402 and the INITE wallet

AI agents can now pay with money, both ways:

  • Your shop gets paid by agents. Every checkout also accepts x402: an agent with a wallet pays the order in USDC on Base by itself.
  • Sites charge with permission. A person allows a site to charge their wallet up to a limit, so the site's agent buys in one step.
  • People's agents pay for them. A person keeps USDC in their own INITE wallet. Their AI agent pays from it on any site that takes x402, within limits the person approved.
  • Agents with a wallet of their own. An agent signs up with INITE by itself, with its own key, and opens its own wallet. Whoever wants to fund it sends USDC to the address.

For people: the INITE wallet

Your INITE wallet is in your account at auth.inite.ai.

  1. Create it with a passkey. The passkey (Face ID, Touch ID, Windows Hello or a security key) is the only key to the wallet. INITE shows the wallet and passes on what you sign, and it cannot move your money.
  2. Top it up.
    • Send USDC on the Base network to the wallet's address from any wallet or exchange. Other tokens or networks will be lost.
    • In Brazil, pay by PIX: the reais are converted and arrive in your wallet as USDC, usually within minutes.
  3. Withdraw to any Base address. You confirm with the passkey, and INITE pays the network fee.

Letting an agent pay. When an AI agent (Claude, ChatGPT, your own bot) asks to pay from your wallet:

  1. You see the request on the INITE sign-in screen and approve it with your passkey.
  2. The agent appears in the wallet section of your account as waiting for approval. Set its limits (by default $10 a payment, $20 a day, $50 a month) and confirm with the wallet passkey. The browser asks twice: once to add the agent, once for its limit.
  3. From then on the agent pays by itself, and every payment appears in the list.
  4. Revoke stops it immediately. So does disconnecting the app under Connected apps.

The limits are enforced twice:

  • INITE billing keeps the daily and monthly limits, the list of allowed sites and the log.
  • Turnkey, where the wallet's key lives, checks the per-payment limit itself. Even INITE can't make the agent's key sign a bigger payment or anything other than a USDC transfer.

Keep the wallet passkey synced (iCloud Keychain, Google Password Manager or a password manager). Losing every copy of it means losing access to the wallet.

Sites charge the wallet (one step for agents)

A person can allow a site to charge their wallet for that site's own orders, within limits. After that, the site's AI agent (or the site itself) buys without a second connection and without asking again.

For people. The first time a site asks, you get one link to a page in your INITE ID account. On it you:

  1. create the wallet, if you have none;
  2. top it up, if this purchase needs more;
  3. allow the site with a limit per payment and per month, and pay this purchase right there.

The first time you allow any site, the browser asks for the wallet passkey twice. This adds an "INITE checkout" key to the wallet that can only pay INITE invoices. Allowing further sites needs no extra taps. You can take the permission back on the same page at any time.

For sites. After creating a checkout session for a signed-in person:

POST /v1/checkout/sessions/<id>/pay-from-wallet
x-api-key: <service key>
{ "userId": "did:…", "returnTo": "https://your.site/…" }
AnswerMeaning
200 { status: "confirming", orderId, txHash }Sent from the wallet. The order completes when the transfer is final on Base, usually 1–2 minutes.
200 { status: "paid" }Already paid.
409 { status: "needs_approval", reason, approveUrl }Send the person to approveUrl. reason is no_wallet, not_approved, over_limit or insufficient_funds.
404Not your session or this person's, or wallet payments are off. Fall back to the payment link.

The session's price can be in any currency the crypto rail converts. The wallet pays the invoice's exact USDC amount to billing's receiving wallet, and the order completes like any crypto payment.

For sellers: get paid by agents over x402

Nothing to build. When the crypto rail takes USDC on Base and x402 is set up in admin → Crypto, every checkout session also returns an x402Url:

GET /v1/x402/sessions/<sessionId>?t=<link token>
→ 402 PAYMENT-REQUIRED: { accepts: [{ scheme: "exact", network: "eip155:8453", amount, asset: USDC, payTo }] }

GET … with PAYMENT-SIGNATURE: <signed USDC authorization>
→ 200 PAYMENT-RESPONSE: { success: true, transaction }

The agent signs a USDC transfer for the invoice. Billing puts it on chain and pays the fee, and the order completes like any crypto payment. Setup and limits are in docs/x402.md.

For agent developers: pay from the person's wallet

Connect your MCP client to https://billing.inite.ai/mcp/wallet.

  • An unauthenticated request gets 401 with WWW-Authenticate: Bearer resource_metadata=…, scope="wallet:pay".
  • Your client registers with INITE Auth (dynamic registration), sends the person to sign in, and asks for the scope wallet:pay.
  • The token is issued for this resource (aud) and names your agent (act). A token issued for another site is refused.
ToolWhat it does
wallet_balanceBalance, this agent's limits, and what is left today and this month.
wallet_addressThe address on Base, for the person to top up.
pay{ url, method?, headers?, body?, maxAmount }. Fetches the URL. On 402 with x402 terms in USDC on Base, pays at most maxAmount within the limits, repeats the request and returns the site's answer.
paymentsThis agent's recent payments.

pay answers with a reason when it doesn't pay:

  • needs_approval: the person hasn't approved the agent yet;
  • over_max_amount, over_payment_limit, over_daily_limit, over_monthly_limit;
  • merchant_not_allowed;
  • insufficient_funds;
  • unsupported_terms: not x402, or not USDC on Base;
  • invalid_url: https and public hosts only.

A payment the site refused still counts against the limits until its authorization expires, unless the site uses it after all.

Agents with their own identity and wallet

An agent doesn't need a person's account to have money. It can be somebody on its own:

  1. It signs up by itself. The agent makes a P-256 key pair and registers with INITE Auth (dynamic registration, POST https://auth-api.inite.ai/v1/oauth/register) with token_endpoint_auth_method: "private_key_jwt", grant_types: ["client_credentials"] and its public key in jwks. Nobody approves this.
  2. It has an identity. Its tokens (client_credentials, signed with its key, ES256) carry its own did:web as sub: did:web:auth-api.inite.ai:agents:dcr_…. The DID document at https://auth-api.inite.ai/agents/dcr_…/did.json publishes its key, so anyone it pays or calls can check who it is.
  3. It opens its wallet. With a token for https://billing.inite.ai/v1/agent-wallet (the audience it asks for), POST /v1/agent-wallet returns an address on Base. The wallet's only owner in Turnkey is the agent's key. INITE can't move this money: every payment needs the agent's own signature.
  4. Anyone funds it. Send USDC on Base to the address. The wallet needs no ETH: INITE pays the network fee.
  5. It pays. Two calls:
POST /v1/agent-wallet/payments
{ "url": "<an x402 URL, e.g. a checkout's x402Url>", "maxAmount": "15" }
→ { payment: { id, amount, payTo, request } }     // request: the exact Turnkey request to sign

POST /v1/agent-wallet/payments/<id>/confirm
{ "stamp": "<X-Stamp of request, made with the agent's key>" }
→ { payment: { status: "paid", transaction }, response: <the site's answer> }

The stamp is what Turnkey's ApiKeyStamper makes for that string with the agent's key. Billing checks that it's by the wallet's owner key and passes it to Turnkey unchanged.

POST /v1/agent-wallet/withdrawals (and /withdrawals/<id>/confirm with a stamp) sends USDC out to any Base address the same way. GET /v1/agent-wallet shows the address, balance and payments.

Lose the key and the wallet is lost: no one else can sign for it. Keep the key where the agent keeps its other secrets.

No key to keep: INITE keeps it

An agent that can't store a key safely (most chat-hosted ones can't) registers with a client secret instead (token_endpoint_auth_method: "client_secret_post", grant_types: ["client_credentials"]). It is still its own did:web. When it opens the wallet, INITE makes the owner key and keeps it, and paying is one call:

POST /v1/agent-wallet/payments  { "url": "<x402 URL>", "maxAmount": "15" }
→ { payment: { status: "paid", transaction }, response: <the site's answer> }

An agent with its own key can ask for this too: POST /v1/agent-wallet { "custody": "inite" }. The trade-off is plain: with your own key only you can spend; with an INITE-kept key, INITE billing signs for you.

Over MCP

The same wallet speaks MCP at https://billing.inite.ai/mcp/wallet, with a token issued for that address:

ToolWhat it does
walletOpens the wallet on first call. Address, balance, who keeps the key, a top-up link for a person, recent payments.
pay{ url, maxAmount }: pays an x402 URL. With an INITE-kept key that's the whole payment; with your own key it returns the request to stamp.
pay_confirm{ paymentId, stamp } for a wallet you own by key.
withdraw{ to, amount }: send USDC out.

Topping up: a link for a person

Every wallet has a public page, https://billing.inite.ai/fund/<address>. The agent gives it to a person, who sees a QR code and the address for USDC on Base, or pays by PIX in Brazil (reais arrive as USDC). The page can only add money.

Topping up by card

On the same page a person can pay $10, $25, $50 or $100 by card or Apple Pay. It is an ordinary order on INITE's checkout; once it is paid, the same amount of USDC arrives in the wallet from INITE's treasury, usually within a couple of minutes.

The treasury is a Turnkey wallet INITE billing set up with a key it threw away. The only key billing keeps there can sign USDC transfers on Base of at most $500 each, nothing else, and billing pays out at most $500 a day; anything over waits for an admin.

Cards in the chat

In ChatGPT, Claude and other clients that show MCP Apps, wallet_balance, wallet_address and wallet come as a card: the balance, a QR code to top up, a Top up button and recent payments. Other clients get the same data as text.