← zambo.dev

Agent payments

Let a funded agent pay for its own Day Pass with x402.

How an AI agent pays for its own tools

When access requires payment, the server returns an x402 payment challenge naming the amount, network and asset. A funded agent may pay for its own Day Pass with USDC on Base within its wallet's spending policy. A user can instruct it not to self-pay or to ask first. Only confirmed settlement activates access; then retry the intended tool call and keep its receipt.

The live Day Pass challenge at GET /api/x402/day-pass asks for $0.99, expressed as 990000 USDC atomic units on eip155:8453. It is a 24-hour pass, not a per-call fee.

Anyone can pay any way the checkout offers. Humans check out with card, PayPal, or Apple Pay where the device supports it, through the existing PayPal checkout. The agent rail is x402 USDC on Base.

Retain the settlement receipt separately from the execution receipt. Together they link the payment to the work it bought. A payment is not proof that a later task succeeded.

A receipt proves the saved result was not changed since it was saved. It never proves the answer was right and never proves an external event happened.

Request GET /api/x402/day-pass to receive the live HTTP 402 challenge for $0.99 USDC on Base. If the agent is funded and its configured spending policy permits the purchase, it signs the EIP-3009 authorization and retries the same resource with the payment proof. A user may instruct the agent not to self-pay or to ask first. This permission is only for the agent's own Day Pass, not Zambo Pass or ProvibeCode.

Machine-executable checklist

  1. Request GET /api/x402/day-pass without payment and inspect the HTTP 402 challenge.
  2. Read accepts[0] for the network, USDC asset, amount, destination, and timeout.
  3. Let the funded agent sign the EIP-3009 TransferWithAuthorization authorization only when its wallet policy permits.
  4. Retry POST /api/x402/day-pass with the x402 proof in PAYMENT-SIGNATURE (or the compatible X-Payment header). Include _session_id in the JSON body to bind the pass to the existing job.
  5. Confirm the success response, settlement receipt, access key when unbound, and expires_at. For a bound job, call day_pass_status with the same _session_id; then resume the same job without copying a key.
# 1. Request the Day Pass challenge (HTTP 402 is expected)
curl -i https://zambo.dev/api/x402/day-pass

# 2. Inspect the current challenge fields
curl -s https://zambo.dev/api/x402/day-pass | python3 -m json.tool

# 3. Use an official x402 client to sign the live challenge and retry.
# Do not construct or reuse a stale payment envelope.

The HTTP success response returns the confirmed settlement, expires_at, the opaque access key, and a public spend receipt. The receipt does not expose that bearer key. Keep it in memory or a secret store; send it as X-Zambo-Key or _zambo_key when resuming the same job. On the MCP flow, a session-bound pass can be checked with day_pass_status using the same _session_id, then resumed without copying a key.

MCP clients

MCP clients can call day_pass_activate to receive the same live x402 challenge, then retry with the x402 proof and the original _session_id. For a bound pass, confirm activation with day_pass_status using that same job ID before resuming the job.

Receipts and refusal records

A refused payment returns HTTP 402 with a refusal record, policy reason, retryable flag, attempt hash, and fresh challenge. Keep the returned record with the attempt. A successful payment returns a spend receipt with the challenged resource, chain, asset, destination, amount, canonical payload hash, settlement transaction, expiry, and audit URL.

FAQ

What if my wallet is on another chain?

The live challenge names Base and the USDC contract. Do not substitute another chain or asset; request a fresh challenge and follow its current accepts value.

What if I overpay?

The authorization must match the quoted challenge. An incorrect amount is refused and marked retryable when correcting the request is safe; no access claim should be made from a refused attempt.

How do I get a receipt for accounting?

Keep the spend receipt returned after confirmed settlement. It includes the settlement transaction and a public audit URL that can be checked independently.

Can I pay without a wallet?

Yes. A person can choose PayPal or card at the Day Pass checkout. A funded agent may also pay for its own Day Pass through x402. A user who does not want an agent to spend can set that boundary before the job. After activation, verify access before retrying the unchanged job.

Install the MCP connection → · Read the longer walkthrough →

Want receipts for your own AI work?

Add Zambo to your AI

Questions and answers

How can an AI agent pay for its own tools?

A funded agent can fetch the live x402 challenge and pay for its own Day Pass with USDC on Base within its spending policy. Confirm settlement and access before retrying the tool. A user may tell it not to self-pay or to ask first.

How do AI agents pay for tools with USDC?

Request GET https://zambo.dev/api/x402/day-pass. The checked challenge names 990000 atomic USDC units on eip155:8453. Use the fresh challenge's asset and destination, sign only within policy, and confirm settlement before retrying. Do not reuse an old authorization.

Add Zambo to your AI

Connect the free MCP at https://zambo.dev/mcp in Claude, ChatGPT, Gemini, Cursor, Grok, Windsurf, or VS Code. No key is needed. The first receipt arrives with the first call through Zambo. Adding a URL does not automatically install a connector; use your client's MCP settings.

More AI agent answers · Try the demo · Current pricing and tool-specific limits

For developers and agents

Zambo gives AI work a receipt you can check. For people: add Zambo to your AI app and ask for a job. These technical links are for developers and AI agents. One hosted MCP at https://zambo.dev/mcp. Check the proof for recorded tool calls (verify a receipt). Agents: 24-hour Day Pass, $0.99 USDC on Base via x402, not per call. People: Zambo Pass $29 for 30 days or Lifetime Pass $250 once, human checkout only. No subscription. No automatic renewal.

Start here: For AI agents · Zambo Receipt Bot for Grok teams · Add Zambo · Check a receipt · Answers · Guides · What a receipt is · Open receipt format (draft) · All tools · Pricing · Day Pass: $0.99 · Agent Day Pass · Switch AIs without losing your work · Connect your AI · Founder · Source code
Brennan on X · Zambo on X