Docs

Coldplate rents GPUs by the second and runs AI models by the output on Robinhood Chain development network. Everything is paid in USDG from a balance in the Coldplate vault, which only its wallet can withdraw.

Start

  1. Open the console and press Connect wallet. Your wallet then asks for a sign-in signature, which costs nothing.
  2. Press Set it up. Coldplate adds 100 development USDG to your balance and your wallet signs a daily limit of 25 USDG. Both can be changed later on the Balance page.
  3. Type a prompt under Make and press Make it, or start a GPU under GPUs. Your first output also runs step 2 if you skipped it.

For an AI agent, open Agents, press Add the agent and paste the command it gives you into your AI app. The key, your wallet and the vault are already filled in.

Paying

Your vault balance has three parts:

Adding funds

With USDG, you sign an EIP-3009 ReceiveWithAuthorization to the vault and Coldplate submits it, so the deposit needs no ETH. With ETH, the ramp contract swaps it in the Uniswap v4 ETH/USDG pool and deposits the USDG in the same transaction. A plain approve and deposit also works.

The daily limit

The vault keeps one daily limit per spender. The Coldplate app is the spender whose address equals the vault address. You set or end a limit with a signed SpenderApproval, which Coldplate submits for you.

Prices

Every output has a fixed price per unit and every GPU an hourly rate, shown in the console and returned by GET /api/v1/models and GET /api/v1/gpus. A run that does not finish is not charged.

GPU rentals

Starting a GPU locks one hour of its rate. Each second it runs is counted. While it runs, the lock renews by one hour before it ends, as long as your balance and daily limit cover it. When the GPU stops, the vault settles the seconds used and returns the rest of the lock.

API

Base URL https://coldplate-dev.pages.dev/api/v1. Amounts are integers of micro-USDG: 1000000 is 1 USDG.

Who is calling

The console uses a session cookie from signing in. Agents sign each request with their own key in the header x-coldplate-agent: address.timestamp.nonce.signature, where the signature is an EIP-191 signature of coldplate:chainId:METHOD:/path:timestamp:nonce:keccak256(body). The nonce is fresh random hex for every request, the timestamp is within two minutes, and each header works once, for that body and that network only. Voucher payments need this header from the agent that signed the voucher. To link an agent, its key signs the text /api/v1/agents/link-message returns, or run coldplate-mcp link <wallet>.

endpoints
GET    /models                    models and prices
GET    /gpus                      GPUs and hourly rates
GET    /account                   balance, limits, agents
POST   /outputs                   { model, prompt | text, image?, aspect? }
GET    /outputs                   your outputs
GET    /outputs/{id}              one output; the id is its key
GET    /outputs/{id}/file         the file
POST   /instances                 { gpu, vramGb?, preference?, hours?, image?, autoStopMinutes?, sshKey? }
GET    /instances                 your GPUs
GET    /instances/{id}            one GPU, its SSH command and Jupyter link
POST   /instances/{id}/stop       stop and settle
GET    /ssh-keys  POST /ssh-keys  DELETE /ssh-keys/{id}
GET    /agent                     an agent's budget and voucher base
GET    /receipts?owner=           vault events
GET    /receipts/{ref}            one grouped charge with proofs

POST /outputs answers 202 with the output while it is being made, or 200 once it is ready. Poll GET /outputs/{id} until status is ready.

Agents

An agent is a wallet address you link under Agents, with a daily limit you sign for it. It pays from your balance with a cumulative voucher: an EIP-712 AgentVoucher(owner, agent, cumulative, deadline) that states the total it has ever authorized for your wallet. Each new request needs a voucher whose total covers everything before it plus the new price. The vault settles parts of it in batches, up to the signed total and within the daily limit.

For a GPU, the agent signs a RentalOpen(owner, spender, id, lock, deadline) for the hours it asks for. POST /instances without a signature answers 402 with the exact message to sign.

x402

A request without a session or voucher gets 402 Payment Required with a PAYMENT-REQUIRED header (base64 JSON, x402 version 2) offering two schemes on eip155:46630:

Send the payment in the PAYMENT-SIGNATURE header; the answer carries PAYMENT-RESPONSE. For a GPU paid with exact, the hours are prepaid and the unused part goes to the payer's vault balance when it stops. A failed output paid with exact is refunded the same way.

typescript
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm/exact/client";

const client = new x402Client().register("eip155:46630", new ExactEvmScheme(account));
const pay = wrapFetchWithPayment(fetch, client);
const res = await pay("https://coldplate-dev.pages.dev/api/v1/outputs", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({ model: "flux-schnell", prompt: "a copper cold plate" }),
});

MCP server

The MCP server in packages/mcp gives a model these tools: list_models, list_gpus, budget, make_output, get_output, rent_gpu, list_instances and stop_instance. It signs with the agent key and pays with vouchers, or with x402 when COLDPLATE_PAY=x402.

The server is one file, coldplate-mcp.mjs, that runs on Node 20 or newer. The Agents page writes the whole setup for you; by hand it looks like this:

shell
curl -o coldplate-mcp.mjs https://coldplate-dev.pages.dev/coldplate-mcp.mjs
claude mcp add coldplate \
  -e COLDPLATE_URL=https://coldplate-dev.pages.dev \
  -e COLDPLATE_VAULT=0x0013fCB70CC6D983dD362d052c8103d5422B0348 \
  -e COLDPLATE_OWNER=0x…your wallet \
  -e COLDPLATE_AGENT_KEY=0x…the agent key \
  -- node "$PWD/coldplate-mcp.mjs"
mcp.json
{
  "mcpServers": {
    "coldplate": {
      "command": "node",
      "args": ["/full/path/to/coldplate-mcp.mjs"],
      "env": {
        "COLDPLATE_URL": "https://coldplate-dev.pages.dev",
        "COLDPLATE_VAULT": "0x0013fCB70CC6D983dD362d052c8103d5422B0348",
        "COLDPLATE_OWNER": "0x… your wallet",
        "COLDPLATE_AGENT_KEY": "0x… the agent key"
      }
    }
  }
}

The vault

The vault is at 0x0013fCB70CC6D983dD362d052c8103d5422B0348 and holds USDG at 0x6caf1951832795d68415A43877edc4991Af7FC9F. Balances only become revenue in four ways, each bounded by something the wallet signed:

withdraw, withdrawAll and reclaimRental move money back to wallets and are open at all times. The USDG the vault holds is always at least the sum of every available and locked balance plus unswept revenue; the Foundry invariant tests check exactly that.

Receipts

Outputs are charged in groups, one per wallet and kind. A group's ref in the Charged event is a Merkle root: each leaf is keccak256(abi.encode(id, owner, model, units, price)) and pairs are sorted before hashing. Your receipts page lists each output with its proof against the root onchain. Rentals settle with a RentalSettled event holding the seconds used, the cost and what was returned.