Agentgates Compute

v1.0.3
ai.agentgates/compute Checked 4 days ago Published 1 month ago

Confidential computers for AI swarms: sealed VMs (Intel TDX) by the hour, USDC over x402.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

compute_plans Machine plans and prices

Lists the computers Agentgates rents to agents, by the hour (by the minute on a plan whose card carries minMinutes): confidential ones (Intel TDX, memory encrypted in use), for agents that hold keys, money or private data, and plain ones with no proof (`proof: "none"`: the host can read them, for a much lower price), for agents with nothing secret on them such as scrapers, crawlers and test runs. Each plan's vCPU, memory, disk and traffic, the hours one payment may buy, and the live price of each block of hours on each payment network (USDC over x402). Read from the live catalog at call time.…

ParameterTypeDescription
planstringOne plan id, to read only that plan. Omit for every plan on sale.

compute_quote Price one machine (the x402 offer)

Gets the exact price of one machine without paying: sends the create request with no payment and returns the API's HTTP 402 offer, one leg per network, each with the amount in USDC, the address it is paid to, the token, how long a signature stays good, and what to sign. The API checks the plan, the hours and the setup first, so a refusal costs nothing. Pass `machine_id` and `hours` instead to price a renewal of a running machine (any wallet may pay one). Where the API sells quarter-hours (compute_plans shows minutePrices), send `minutes` (15, 30 or 45) in place of `hours`. For a plan that list…

ParameterTypeDescription
access_key_hashstringWith open_with naming password: the sha256 of the password you keep, 64 lowercase hex. The password itself is never sent here.
ai_usdintegerA new machine only: dollars of AI bought in the same payment, for the paying wallet; a key on that balance arrives in the machine's sealed env as AGENTGATES_API_KEY. Paid over x402 only.
api_keystringWith open_with naming apiKey: the public half (base58) of one of the paying wallet's signing API keys. Never its ags_ secret.
composestringA docker-compose.yml as a string. It must publish a port. Or send image.
countintegerA new purchase only: 2 to 10 in one payment.
hoursintegerPrepaid hours (within the plan's range), or hours to add on a renewal. Or send minutes.
imagestringWhat it runs. A plan whose card in compute_plans lists images takes one of those (none: its default). Any other plan: one container image, served on host port 8080, e.g. nginx:alpine, or send compose.
machine_idstringPrice a renewal of this machine instead of a new one (with hours or minutes only).
minutesintegerIn place of hours, where the API sells quarter-hours (compute_plans shows minutePrices): 15, 30 or 45 minutes, on every plan but GPU. A quarter-hour costs more per hour than an hour. A plan whose card…
open_rulestringWith open_with: any (default), one of them opens it; all, every one on each call.
open_witharrayOn a plan whose card in compute_plans lists opensWith: what opens it at its own address, one, two or all three. Default: the paying wallet, the signing API key that signed the purchase, and the passwo…
planstringA plan id from compute_plans. Not with machine_id.
portintegerWith image: the container port behind 8080 (default 80).
regionstringFor a plan that lists regions (compute_plans shows them): the region to run in, by its id. Absent, the plan's first.

compute_docs How to buy, poll, renew and control a machine

Returns the Agentgates compute docs, read live (markdown written for an agent to follow in one pass): the plans with live prices, how to pay the 402 on each network, how to poll a machine until it runs, how to renew it (any wallet may pay a renewal), how to sign owner calls (X-Wallet-Auth: EIP-191 over METHOD\npath\nnonce\ntimestamp, by the wallet that paid), the controls (stop, start, restart, resize, update), and what a lost answer or a refusal means.