Pay as you go: budgets from your crypto wallet

Allotr lets an AI agent pay for APIs that charge with x402, within limits you set on-chain. Your money stays in your crypto wallet: you give a limited permission (a grant), not a deposit. This guide covers the plan without a subscription. It has no transaction limit; you only pay small fees on the transactions themselves. For sub-agents, spending history and the shared reputation network, see Pro.

Testnet only for now: Base Sepolia (eip155:84532) and Circle test USDC, free from Circle’s faucet. While we’re on testnet every feature, Pro included, is available to everyone at no cost. Mainnet follows an independent security audit.

MCP server https://app.allotr.xyz/mcp
Panel https://app.allotr.xyz/app/
Contract SpendController (daily limit, total limit, expiry; no owner, holds no funds)

How it works

your crypto wallet ──grant (limits on-chain)──▶ agent's spending wallet ──x402──▶ any paid API
  • Grant: you sign a permission in the SpendController contract: who may spend (your account’s agent), how much per day, how much in total and until when. The contract enforces it, and nobody can go past it, including us.
  • Spending wallet: the agent keeps a small buffer (0.20 USDC by default; you can change it in the panel) at its own address and tops it up from your grant when it runs low. It pays sellers with standard EIP-3009 transfers, so every x402 seller works.
  • No ETH needed: neither you nor the agent pays gas. The Allotr relay sends top-ups and refunds; you can also send them yourself.

1. Give a spending permission

Go to https://app.allotr.xyz/app/.

  1. Sign in with an email code, Google or a crypto wallet (SIWE).
  2. Link a crypto wallet that holds test USDC. You can link several and put them in order; grants are used in that order.
  3. Grant a permission to your account’s agent. You choose the daily limit, total budget and duration. You sign twice (a USDC permit and the grant), the relay sends both in one transaction, and you don’t need ETH. Creating a grant costs 0.01 USDC, once.

You do this once. Every chat and every task uses the same grant until it ends or you revoke it. Grants can’t be edited on-chain: to change a limit, grant a new one and revoke the old. The panel shows what’s left of each grant, and you can revoke it with one signature.


2. Connect your AI tool

The server is a standard remote MCP server (Streamable HTTP + OAuth 2.1). Use the address exactly: https://app.allotr.xyz/mcp (no trailing dot or slash). The first connection opens a sign-in page: sign in, then approve the connection with a signature from a linked crypto wallet.

Client How to add Status
claude.ai (web, desktop) Settings → Connectors → Add custom connector → the URL above tested with real payments
Claude Code claude mcp add --transport http allotr https://app.allotr.xyz/mcp, then sign in from /mcp tested with real payments
ChatGPT desktop / Codex Plugins → Add → Connect to a custom MCP (Streamable HTTP) → the URL above tested with real payments
Gemini app add a connector with the URL above tested with real payments
Gemini CLI ~/.gemini/settings.json → mcpServers.allotr.httpUrl = the URL above sign-in works; payments not yet tested

3. Use it

Give your AI tool a task and a budget, for example: “Get today’s weather report from a paid source. Budget 0.05 USDC.” The tools it uses:

Tool What it does
start_task opens a task with a budget and returns a task number used in every other call
list_services lists paid services and prices (the example API and verified sellers; query searches)
paid_fetch calls a paid API (url, GET/POST, optional body) and pays with x402 if needed
check_budget what has been spent, what’s left and any warnings
end_task closes the task and reports; refund: true also returns the buffer to you

A task’s budget is a limit inside the MCP server and costs nothing to set. The grant is the hard ceiling above all tasks: if you granted 1 USDC a day, everything your chats spend that day together can’t go past 1 USDC.


Safeguards on every plan

All of these run in the MCP server. The on-chain grant is the last line in every case.

  • Approval for large payments: a single payment above the threshold (25% of the task budget by default; change it anywhere from 1% to 100% under Agent settings in the panel) isn’t made. It waits in the panel under “Approvals and alerts” until you approve it with a wallet signature, and the agent then repeats the same call. No answer, no payment. Approvals expire (pending after 1 hour, approved after 15 minutes) and can be used once.
  • Your own blocklist: a seller that takes payment without delivering gets a strike (proven on-chain); repeated strikes ban it for 24 hours, then 7 days, then permanently.
  • Safe fetching: paid calls only go to public https addresses, and redirects are never followed, so a payment signature can’t be passed on to another site.
  • Prompt injection: text from sellers in listings and error messages is cleaned up, and payment limits never depend on what the model decides.

Buffer and refunds

  • The agent’s spending wallet is topped up to the buffer target when it falls below a threshold (default 0.20 USDC; you can change it in the panel with a signature). A single payment larger than the buffer is still covered, up to 10 USDC.
  • When a task ends, the buffer stays for the next one, so the next task starts without a top-up. After 24 hours with no activity, or when you ask (end_task with refund: true), what’s left goes back to the crypto wallet it came from.

Fees

Pay as you go
Moving money from your grant to the agent’s spending wallet (a top-up; the relay sends it and pays the gas) 0.25% of the amount moved, no minimum
Granting a spending permission (once per grant) 0.01 USDC
Refunds and revocations free
Transactions you send yourself free (you pay the gas)
Number of transactions unlimited

Top-up fee examples: moving 0.15 USDC costs 0.000375 USDC and moving 10 USDC costs 0.025 USDC. Because the wallet is only topped back up to its target, the amount moved is usually what the agent spent since the last top-up, so in practice you pay 0.25% of what it spends. The fee is deducted from your grant along with the amount.

Fees are part of the message you sign, and the client won’t sign a fee above its cap (by default at most 0.01 USDC for the fixed part and at most 1%; if you run your own client, you can change the cap). The relay can’t take more than you signed.


Security

  • We never hold your wallet key. The server holds the agent’s session key, encrypted at rest. It can only spend inside your grant; if it leaked, the loss would be limited by your daily limit, and you can revoke the grant with one signature.
  • Money-moving actions need your crypto wallet. Linking a wallet, connecting an AI tool, approving a payment and changing settings all need a signature from a linked wallet; an email session alone isn’t enough.
  • More detail: Architecture and security and the SpendController contract.

FAQ

Does Allotr hold my money? No. It stays in your crypto wallet until it’s spent, except for the small buffer in the agent’s spending wallet, which comes back to you.

Is there a separate permission for every chat? No. You grant once; every chat and task uses the same grant.

Do the APIs need to use Allotr? No. Agents pay any x402 seller with a standard signed transfer.

Can I run the MCP server myself? Yes, the same code runs locally. The hosted server is the default so you don’t have to set anything up.