Run an agent's code in a sealed sandbox, by the minute, with USDC

A small Linux computer for one agent inside a confidential VM (Intel TDX), bought by the minute over x402. Commands and files go straight to it, every run comes back signed, and anyone can check its proof.

What you get

A sealed sandbox: its own files, processes and network, inside a confidential VM whose memory the processor encrypts. It shares that VM with other sandboxes, each walled off from the others; for a confidential VM of your own, buy a machine plan.

No signup: the wallet that pays owns it. Outbound internet is open; nothing reaches it from outside.

What opens it

You choose, in "openWith": wallet (the owner wallet signs X-Wallet-Auth at its door), apiKey (a signing API key signs the same way; "apiKey" names its public half) and password (Authorization: Bearer <password> at its door; send its sha256 as "accessKeyHash"). "openRule": any (the default), one of them opens it; all, every one on each call. With none named it opens with the paying wallet, the signing API key that signed the purchase, and the password when its hash is sent.

A signing API key is an Ed25519 key pair made where your agent runs: its secret, ags_ and 64 hex, never leaves it. The wallet registers its public half with POST /api/compute/keys {"name", "signer", "proof"}, proof the key's own signature over agentgates-signing-key:v1|<wallet, lowercased>|<signer>. A bearer key (agc_) never opens a sandbox. Nothing of ours opens one or changes what does, and its proof names what opens it.

Buy it

POST /api/compute/deployments with {"plan", "minutes", "image"} (base, python or node). With no payment header the answer is a free HTTP 402 quote; pay one leg and send the same request with X-PAYMENT, or draw a prepaid balance.

When a host has a free seat it answers 201 running with a sandbox object: its id, its own address (api) and the pin of the TLS key its door serves. Over x402 the paid call waits for the payment to settle, about 6 seconds on Base. When no host has a seat it answers 202 and runs about two minutes after its payment, its paid time starting when it runs.

Use it

POST {api}/exec runs a command and answers its exit code, its output and a receipt the sandbox signed. PUT and GET {api}/files/<path> move files and folders (as a tar); PUT {api}/env keeps secret values for later runs. Each call carries what opens it: X-Wallet-Auth signed by the wallet or the signing API key, Authorization: Bearer with the password, or under all every one of them.

From the terminal: agentgates sandbox create (--open-with wallet,key,password and --open-rule any|all), exec, cp, verify and rm, and agentgates compute keys create --signing for a signing key (npm i -g @agentgates/cli). The CLI checks the sandbox's proof before it sends anything, seals every body to the sandbox's own key and checks every receipt.

Check it

GET {api}/proof?nonce=<hex> is public: the sandbox's statement, one TDX quote over it, and your nonce signed by its receipt key. Four checks: Intel's certificate chain on the quote, the boot record naming the host's code, that code on the approved list, and the statement naming this sandbox, its owner, its door's TLS key and what opens it (its rule, and one hash per opener). agentgates sandbox verify <its address> runs all four with a nonce of yours.

FAQ

How long is the smallest purchase?

The catalog's minMinutes for its plan, one minute while no other is set: any whole number of minutes from it is sold, priced by the same law.

What happens when its time ends?

The sandbox ends at its paid second with its disk: nothing is kept. Renew it at least a minute before then with POST /api/compute/deployments/{id}/renew and "minutes"; any wallet may pay.

Can Agentgates open my sandbox?

No opener is ours: a wallet's key and a signing key's secret stay with you, a password reaches us only as its sha256, a bearer key never opens one, and its proof names every opener and the rule.

Can the host read what runs in it?

The confidential VM's memory is encrypted by the processor (Intel TDX), and the proof shows which code runs it. Our backend has no call that runs a command or reads a file in it.

What is the price?

Read GET /api/compute/catalog: prices are computed from live costs and every 402 quotes the exact number you will pay.