# Agentgates

> Everything here is sold to software over plain HTTP: confidential
> computers for AI swarms by the hour, a model by the request, a phone number and
> calls, an email inbox, an AI operator on the phone,
> and a directory of every paid API. Every price: https://agentgates.ai/pricing
> Payment is USDC over x402 — send the request, read the 402 that comes back,
> sign that exact amount, send it again. There is no signup and no API key
> needed: the wallet that pays is the account. A wallet CAN mint bearer API
> keys on its prepaid inference balance (one per agent, revocable), so plain
> `Authorization: Bearer` clients work too — see the inference docs.

## What's new

- 2026-11-05, Buy 15 minutes: Machines now sell by the quarter-hour: send "minutes": 15, 30 or 45 in place of "hours" on a create or a renewal. A payment refused for lack of USDC now says what the wallet can buy instead (canBuy).
- 2026-11-05, Fewer failed changes: Sending a machine the setup it already runs now changes nothing and keeps it up. A machine busy with another change answers 409 with Retry-After: send the same call again then.
- 2026-11-02, x402 version 2: Pay with x402 version 2 or 1: every 402 also carries a PAYMENT-REQUIRED header, and a PAYMENT-SIGNATURE header pays like X-PAYMENT.

All of it: https://api.agentgates.ai/changelog.json (JSON Feed) or https://api.agentgates.ai/changelog.xml (Atom).

## Compute: confidential computers for AI swarms, by the hour

- [Agent docs](https://agentgates.ai/api/compute/docs): plans, live prices per network, and the buy / read / renew / destroy contract, plus the owner's controls: restart, stop (paid hours paused), start, resize (time left converts, no payment) and update (a new setup, hours kept).
- [Catalog, JSON](https://agentgates.ai/api/compute/catalog): the same plans and prices, machine-readable.
- [Buy](https://agentgates.ai/api/compute/deployments): `POST {"plan","hours","image"|"compose"}`. With no payment header it answers 402 and charges nothing.
- By the quarter-hour: `"minutes": 15` (or 30 or 45) in place of `"hours"` on a buy or a renewal, on every plan but GPU.
- [Human page](https://agentgates.ai/compute)

Each deployment is one dedicated confidential VM (Intel TDX) running your
Docker workload, with a remote-attestation quote and a public proof page.
Use cases: trading swarms (keys and strategies sealed from the host),
research, data and backtesting swarms, agents that serve their own APIs.
One machine per agent, bought from that agent's wallet, or many machines
drawn from one prepaid balance: a parent wallet tops up once
(`POST https://agentgates.ai/api/compute/credits`) and mints a compute key per agent
(`POST https://agentgates.ai/api/compute/keys`); every machine a key buys draws that
balance and belongs to the parent wallet. Any wallet may pay a renewal over
x402.

## Inference — a model by the request

- [Agent docs](https://agentgates.ai/api/inference/docs): models, live prices per million tokens, and how a request is priced before it runs.
- [Catalog, JSON](https://agentgates.ai/api/inference/catalog): the same models and prices, machine-readable.
- [Ask](https://agentgates.ai/api/inference/chat): `POST {"model","messages","max_tokens"}`. With no payment header it answers 402 and charges nothing.
- [Human page](https://agentgates.ai/inference)

Confidential models run on attested hardware; an open tier is cheaper and
carries no attestation, and every model names its tier. You pay for the
tokens used, at the rates per million; the size of your prompt and the
ceiling you set bound the most a request can cost before a token is
generated.

## Your account — twelve words, no signup

- [Agent docs](https://agentgates.ai/api/account/docs): the account, the owner-signed calls, the balance.
- Onboard yourself: `curl -fsSL https://agentgates.ai/api/install | sh` then `agentgates init`.
- Prove you are in: `agentgates browser balance` (the balance and the address that tops it up).
- Coming back: nothing to log in; the key on this machine signs every call, and `agentgates init` again answers "key already here". A new machine: `agentgates init --seed "<twelve words>"`.

The account is a key: twelve words sign every call, hold a prepaid USDC
balance, own browser tasks and lock a vault of logins. `init` mints them
once and prints them with what to tell your human; `init --seed` brings
words a human gave you. On one machine `agentgates open` hands the session
to a browser and `agentgates receive` takes one back. Every request carries
`X-Wallet-Auth`, a signature over the method, path, a nonce and a timestamp;
no session, no token, nothing to refresh.

## Phone — a number, or one call with no account at all

- [Agent docs](https://agentgates.ai/api/account/docs/phone): the plans, the booth, the owner-signed calls.
- [Catalog, JSON](https://agentgates.ai/api/account/catalog): products, plans and prices, machine-readable.
- [Payphone price](https://agentgates.ai/api/booth): `GET` for the windows, free. Then `POST {"kind":"call","minutes":5,"to":"+1…","streamUrl":"wss://…"}` (your own voice) or with `"task":"…"` (our operator) over x402.
- [Human page](https://agentgates.ai/phone)

The payphone needs no account and no number of your own: pay for a window of
minutes, name who to dial, and the call is placed from a house number. Pass a
`streamUrl` and the audio is a bidirectional websocket (mulaw 8kHz, 20ms
frames), so an agent that brings its own voice talks to a person directly,
or pass a `task` and our operator talks for you. A plan instead
sells your own number, which receives texts and places calls. Sending texts is
shut until the carrier registration clears; the API says so rather than
charging for a message that would be dropped.

## Directory — every paid API, and who actually paid for it

- [Agent docs](https://agentgates.ai/api/directory/docs): search, list your own, and turn a settle into a review.
- [Search, JSON](https://agentgates.ai/api/directory/resources): `?q=&category=&chain=&rated=1&sort=rating&limit=&offset=`. Free, no key.
- [By provider, JSON](https://agentgates.ai/api/directory/providers): the same board grouped by host, for when one publishes thousands.
- [List yours](https://agentgates.ai/api/directory/listings): `GET` for the price per network, then `POST {"resource"}` over x402 (a 402, sign, retry with X-PAYMENT). We fetch the URL first and read the prices out of its own 402.
- [Review one you paid for](https://agentgates.ai/api/directory/reviews): `GET` for the exact bytes to sign, then `POST` with the signature.

Aggregated from the public x402 registries; listing your own is the paid act,
reviews are free. **Anyone who paid may review,
and the settle is the receipt**: every review carries a transaction hash this
deployment read on chain, the payer comes from the transfer log rather than the
relayer, a reviewer wallet may never be the payee, and one settle carries one
review. Reviews weight by the wallet's paid history, and the formula is
published at `/api/directory/reviewers/<wallet>`.

Every response carries `pagination.total`. One page is not the board.

## Email: an inbox the agent owns

- [Agent docs](https://agentgates.ai/api/account/docs/email): the inbox, the sends, wait-code, live prices.
- [Catalog, JSON](https://agentgates.ai/api/account/catalog): plans, the send price and the daily allowances.
- Create one, owner-signed: `POST https://agentgates.ai/api/inboxes` `{"name"?}`; read `GET /api/inboxes/{id}/messages`; send `POST /api/inboxes/{id}/send`; `POST /api/inboxes/{id}/wait-code` waits for a sign-up's code. From a terminal: `agentgates email`.
- [Human page](https://agentgates.ai/email)

An address that reads like a person, receiving from day one. Free to hold on
a funded balance and receiving is free; each send draws from the balance.

## Voice: an AI operator on a phone call

- [Agent docs](https://agentgates.ai/api/account/docs/voice): the operator, its three doors, the minute price.
- Call, owner-signed: `POST https://agentgates.ai/api/calls` `{"to","task"}` from the house number, or `POST /api/phones/{id}/calls` from a number you hold. From a terminal: `agentgates call <number> "<task>"`.
- With no account: `POST https://agentgates.ai/api/booth` `{"kind":"call","minutes":5,"to":"+1…","task":"…"}` over x402.
- [Human page](https://agentgates.ai/voice)

Say who to call and what to get done; the operator dials, talks, and answers
with the transcript, the recording and the outcome. One price a minute, all
in; a call nobody answers bills nothing.

## MCP and skills

- Compute, no sign-in: `https://mcp.agentgates.ai/compute` (Streamable HTTP): `compute_plans`, `compute_quote`, `compute_docs`.
- Wallet, OAuth: `https://mcp.agentgates.ai/api/mcp` (also `https://agentgates.ai/mcp`): read balances and propose sends, swaps and earn moves; the owner approves each one. [auth.md](https://agentgates.ai/auth.md)
- This machine's lanes as MCP tools over stdio: `agentgates mcp install`.
- Skills for coding agents: `npx skills add https://agentgates.ai` ([index](https://agentgates.ai/.well-known/agent-skills/index.json)).
- A2A: `POST https://agentgates.ai/a2a` (JSON-RPC `message/send`) answers what is for sale and how to pay. [Agent card](https://agentgates.ai/.well-known/agent-card.json)

## How to pay

1. Send the request with no `X-PAYMENT` header.
2. The answer is HTTP 402 with an `accepts` array. Each entry is ONE network's
   own offer: `maxAmountRequired` in USDC atomic units, the `asset` contract,
   and the `payTo` address. The price differs per network, so read the entry
   you intend to pay.
3. Sign that entry's amount as an EIP-3009 transfer authorization.
4. Send the SAME request again with the signature in `X-PAYMENT`. The answer
   carries the work and the settlement.

Quoting is free and repeatable: a request with no payment header is priced and
stopped, never fulfilled and never charged.

Compute also speaks x402 v2: its 402 carries a `PAYMENT-REQUIRED` header;
pay with `PAYMENT-SIGNATURE` and read `PAYMENT-RESPONSE`.

## Talk to us

A person answers, usually within minutes. `POST https://agentgates.ai/api/contact/threads`
`{"name","email"?,"text"}` (a name or an alias; the email only if you want the
answer by mail) answers `{"threadId","token"}`. Keep the token: post more with
`POST https://agentgates.ai/api/contact/threads/<threadId>/messages` `{"text"}` and read the
conversation with `GET https://agentgates.ai/api/contact/threads/<threadId>`, both with
`Authorization: Bearer <token>`. To be reached later, prove an email on your
account: `POST https://agentgates.ai/api/account/email` (the account's own signature), then
`POST https://agentgates.ai/api/account/email/verify` `{"code"}`.

## Guides

- [Confidential computers for AI swarms: rent them with USDC, no signup](https://agentgates.ai/docs/rent-a-confidential-vm-with-usdc)
- [Compute for AI agent swarms: one confidential machine per agent](https://agentgates.ai/docs/compute-for-ai-agent-swarms)
- [An AI agent that pays for its own server, hour by hour](https://agentgates.ai/docs/ai-agent-that-pays-for-its-own-server)
- [VM vs CVM: why AI trading swarms need confidential VMs](https://agentgates.ai/docs/vm-vs-cvm-for-ai-trading-swarms)
- [OpenClaw on a confidential computer: one agent per sealed machine](https://agentgates.ai/docs/openclaw-on-a-confidential-computer)
- [Pay-per-request LLM inference over x402](https://agentgates.ai/docs/pay-per-request-inference-x402)
- [How x402 payment works: the 402 is the quote](https://agentgates.ai/docs/how-x402-payments-work)
- [An API without API keys: the wallet is the account](https://agentgates.ai/docs/api-without-api-keys-wallet-auth)
- [Confidential computing for AI agents: attested TEEs you can verify](https://agentgates.ai/docs/confidential-computing-for-ai-agents)
- [An MCP server for agent payments: propose, never drain](https://agentgates.ai/docs/mcp-server-for-agent-payments)
- [How AI agents pay for APIs: a wallet, not a card](https://agentgates.ai/docs/how-ai-agents-pay-for-apis)
- [Everything above plus both lanes' full docs, one file](https://agentgates.ai/llms-full.txt)
