# Idle, the GPU cloud on Elysium Idle rents whole Nvidia GPUs by the second. A user signs in with a wallet, buys credits with USDC or with tokenized Nvidia (EQNVDA) on Elysium, rents a GPU, reaches it over SSH and ends it. Idle owns no machine: it rents them from a GPU provider (Runpod is the first) and resells them per second with a margin. **What exists today, and what does not.** The rental engine is written and tested, here, on a mock provider and a fake chain. It has never rented a real machine: the Runpod adapter was written from Runpod's published API reference and has never called the live API, and no provider account exists. The public deployment (`https://idle-elysium.vercel.app`) runs this engine in `closed` mode, because no provider key, treasury, session secret or state store is set there: a rate card, live figures, and a refusal for everything else. **The credits contract is deployed on Elysium**: `IdleCredits` at `0x107a77F5B01dDB8bacb647785c5ea9C493917baA` (block 13116695, source in `onchain/`, 81 tests there). It holds prepaid credits in USDC and EQNVDA; a user deposits, and withdraws after a one-hour delay; only its operator can charge a balance. `GET /v1/contract` and `GET /v1/contract/account` read it from the chain (`lib/contract.mjs`), and the relayer carries a wallet's approvals, deposits and withdrawals to it when it has a gas account (`RELAYER_KEY`, set with `node scripts/set-relayer-key.mjs`). **Not wired**: the rental engine does not read these balances, charge them or seal receipt roots yet, so a balance held there cannot be spent on a rental. Not audited. `node scripts/dev-contract.mjs` runs the whole thing against a local Hardhat node. **Two things work today on any deployment, with no key and no account**: routing over real market offers (`/v1/offers`, `/v1/route`), read from Runpod's public price list and Vast.ai's public offers, and an MCP server for agents (`/mcp`). They rent nothing: the offers are other providers' machines, and the tools that act on an account answer `not-open` until the engine is open. What the API does depends only on its environment: | Mode | When | What it does | |---|---|---| | `closed` | any of the four pieces below is missing | Rate card (targets, `available: 0`), quotes, live figures, market offers and routing, the MCP server with its seven keyless tools. Sign-in and every account route answer 503 `not-open`. `/v1/health` lists what is missing. | | `test` | the local server only (`npm run dev`) | Everything works, on a mock provider and a fake chain. No machine is real, no money moves, and `/v1/health` says `rentals: false`. | | `live` | `RUNPOD_API_KEY`, `SESSION_SECRET`, `TREASURY_ADDRESS` and `BLOB_READ_WRITE_TOKEN` are all set | Real machines, real money. `/v1/health` says `rentals: true`. | ## The pieces | Piece | File | What it does | |---|---|---| | The engine | `lib/engine.mjs` | Accounts, credits, SSH keys, API keys, instances, the meter, the ledger. Plain functions over one state object: no clock, no network | | The state | `lib/store.mjs` | One JSON document behind `load` / `save`, in memory, in a file, or in a private Vercel Blob written with a conditional write | | Providers | `lib/provider.mjs`, `lib/provider-runpod.mjs`, `lib/provider-mock.mjs` | The interface, Runpod over its REST API v2, and a mock that refuses to start on a deployment | | Sign-in | `lib/auth.mjs` | A challenge signed by the wallet (EIP-191), a 24-hour session token (HMAC), API key secrets | | Credits | `lib/credits.mjs` | Reads a USDC or an EQNVDA transfer to the treasury from Elysium; prices EQNVDA at the lower of the pool and the mark, less a haircut | | The relayer | `lib/relayer.mjs` | `POST /rpc`: forwards Elysium reads and carries one kind of transaction on two tokens, `USDC.transfer(treasury, amount)` and `EQNVDA.transfer(treasury, amount)` | | Routing | `lib/offers.mjs` | Reads Runpod's list prices and Vast.ai's live offers (no key), normalises them to one shape, and picks one by a stated rule: cheapest, fastest, secure | | For agents | `lib/mcp.mjs`, `site/llms.txt` | The MCP server (Streamable HTTP, stateless, JSON): eleven tools, each one call to a route of the API. A plain-text description for agents, to publish at the site root | | The routes | `lib/routes.mjs` | Every route in one table. The router dispatches from it and the OpenAPI 3.1 document is generated from it, so the two cannot differ | | The API | `lib/app.mjs`, `lib/config.mjs`, `api/index.mjs` | The handlers, the wiring from environment variables, the single serverless entry | | The rate card | `lib/rates.mjs`, `lib/market.mjs` | Seven Nvidia GPUs with a target rate; the HYPE mid, Nvidia on HyperCore, the head of Elysium, USDC on Elysium, and EQNVDA with its price read from the Uniswap v4 PoolManager's storage | | SSH keys | `lib/sshkey.mjs` | Checks an ed25519 or RSA (2048 bits and more) public key and keeps only ` ` | | Local | `scripts/dev-server.mjs`, `scripts/dev-flow.mjs`, `lib/chain-fake.mjs` | The whole API on this machine with nothing real behind it, and a script that walks the flow | | Operations | `scripts/init-state.mjs`, `scripts/check-live.mjs`, `vercel.fragment.json` | Creates the empty state once; asks a deployment what the site asks; the cron entry | ```sh npm test # 213 tests npm run dev # the API in test mode on http://localhost:8791 npm run dev:flow # sign in, add a key, buy credits, rent, watch the meter, end, read the receipt npm run check:live # asks the public deployment the same questions the site asks ``` Two dependencies: `ethers` (signature recovery, reading signed transactions, posting to the inbox) and `@vercel/blob` (the state online; loaded only when a Blob token is set). ## The rules of the engine - **1 credit is 1 USD.** All money is whole micro-dollars. USDC has 6 decimals, so one base unit of USDC is one micro-dollar. - **The rate** of an instance is the provider's live price for that GPU, plus its container disk, times `1 + MARGIN_BPS / 10000`, rounded up to the micro-dollar per hour. It is fixed when the instance is created. - **Billing is per second**, from the moment the provider showed the machine running *and its SSH port answered*, never from the request. After `s` seconds an instance owes `ceil(rate × s / 3600)`: rounded up once, so thousands of settlements never add up to more than `s` seconds at the rate plus one micro-dollar. - **To start**, credits must cover 10 minutes of the new instance plus 10 minutes of every instance already live. (Stricter than "10 minutes of this one": otherwise three machines could start on the credits of one.) - **A machine that is not ready within 10 minutes** is terminated and costs nothing. The ledger gets a `refund` entry of 0 that says so. - **Running out**: when an account cannot cover the next 60 seconds of what it runs, its newest instances are ended until it can. A balance never goes below zero. - **Ending** settles one last time and writes one receipt (`charge`) in the ledger: instance, GPU, seconds, micro-dollars, start, end. Ending twice returns the same receipt. - **A machine the provider lost**: billing stops at the last time the provider confirmed it running. What was charged after that moment comes back as a `refund` entry. - **Limits**: 3 live instances, 10 SSH keys and 10 API keys per account. - **API keys** (`idk_…`) carry a spend cap per UTC day. A key cannot start what its cap does not cover for 10 minutes; what it started is ended when the cap cannot cover the next minute; a charge never takes a key past its cap. A key can be stopped (its instances are ended, the key is refused from then on, for good) or deleted (same, and it disappears). An API key can read the account, rent, end and claim; it cannot manage SSH keys or API keys. Late settlements are the operator's loss: if nothing settles for an hour, the account pays what it has and the rest is recorded on the instance as `unpaid`. That is why no rental starts unless a tick ran in the last 5 minutes. ## The API Base path online: `/api`. Errors are JSON `{error: "", message}`. Amounts are USD as numbers (`…Usd`); times are ISO strings. ### Public | Route | Answer | |---|---| | `GET /v1/health` | `{ok, product, chainId, rentals, mode, provider, gpusListed, gpuModelsOnTheRateCard, signIn, credits: {token, address, decimals, treasury, minConfirmations, hype, tokens: [{symbol: "USDC", address, decimals}, {symbol: "EQNVDA", address, decimals, haircutBps, maxGapBps, pricedBy}]}, relayer: {path, carries, canSend, inbox}, marginBps, limits, meter: {lastTickAt, running}, mcp: {path, transport, protocolVersions, tools, openTools}, routing: {path, sources: [{name, kind, what}], rule, tierOrder}, missing, note}`. `mcp.openTools` are the tools that work on this deployment as it is now | | `GET /v1/gpus` | `{rentals, mode, source: "provider" \| "target", rates, marginBps, hypeMid, asOf, errors, gpus: [{id, name, vram, vramGb, usdPerHour, usdPerSecond, hypePerHour, available, stock}]}`. `available` is 0 or 1: Runpod publishes a stock level (`stock`: none, low, medium, high), not a count | | `GET /v1/quote?gpu=h100&seconds=1200` | `{gpu, seconds, usdPerHour, usdPerSecond, usd, hype, hypeMid, rentals, mode, source, note}` | | `GET /v1/market` | as before, plus `equity: {symbol, token, decimals, totalSupply, poolManager, poolId, poolPriceUsd, poolLiquidity, markUsd, gapBps, source}`. `equity` is null (and named in `errors`) when the token or the pool cannot be read; `markUsd` and `gapBps` are null when Hyperliquid does not answer | | `GET /v1/credits/quote?token=EQNVDA&amount=1.5` | `{token, amount, poolPriceUsd, markUsd, priceUsd, haircutBps, creditsUsd, gapBps, maxGapBps, pricedBy, rentals, mode, asOf}`. `priceUsd` is the lower of the two prices, before the haircut. `token=USDC` answers one for one (`priceUsd: 1`, `haircutBps: 0`, no pool or mark). Read-only, and it answers in `closed` mode too. 400 `invalid` on a bad token or amount; 503 `price-unavailable`; 409 `price-unstable` | | `GET /v1/contract` | The credits contract (IdleCredits) read on Elysium at request time: `{name, chainId, deployed, address, codeBytes, matches, operator, pendingOperator, withdrawalDelaySeconds, tokens: [{symbol, address, decimals, heldForUsers, earnedByOperator, tokenBalance, covered}], explorer, deployment, source, audited: false, wiredToRentals: false, relayer, note, asOf}`. Amounts are `{units, amount}`. `matches` says the contract names the same two tokens as this deployment; `covered` that it holds at least what it owes. `wiredToRentals` is false: the engine does not read or charge these balances yet. `{deployed: false}` when no contract is configured; 502 `chain-unreachable` | | `GET /v1/contract/account?address=0x…` | What one address holds: `{address, contract, tokens: [{symbol, inWallet, allowance, inContract, available, chargeable, pendingWithdrawal: {units, amount, unlockAt} | null}], withdrawalDelaySeconds, asOf}`. 400 `invalid` on a bad address | | `GET /v1/offers?gpu=&minVram=&secure=&limit=` | `{offers, count, total, constraints, sources, errors, asOf, note}`. Each offer is `{source: "runpod" \| "vast", kind: "list-price" \| "live-offer", gpu, model, vramGb, usdPerHour, secure, region, reliability, asOf}`, cheapest first. `gpu` is Idle's id or null for an Nvidia model Idle has no id for. `count` is how many are returned (`limit`, default 50, at most 200), `total` how many match. A source that is down is named in `errors` and the other still answers. 400 on a bad filter | | `GET /v1/route?minVram=24&prefer=cheapest&gpu=` | idle/auto. `{rule: {prefer, minVram, gpu, description, tierOrder?}, pick, alternatives, considered, marginBps, idleUsdPerHour, idleUsdPerSecond, rentableThroughIdle, rentals, mode, sources, errors, asOf, note}`. `pick` and the `alternatives` (up to 3) are offers as above. `prefer` is `cheapest`, `fastest` or `secure`. 404 `no-offer` with the constraints echoed when nothing fits; 502 `sources-unavailable` when no source answered | | `GET /v1/openapi.json` | An OpenAPI 3.1 document of every route, public and signed-in. Each operation carries `x-idle-access` (public, signed-in, operator) and `x-idle-status` (open, or closed until rentals open) | | `POST /mcp` | The MCP server. JSON-RPC over Streamable HTTP; `GET /mcp` and `DELETE /mcp` answer 405 | | `POST /v1/rent` | 503 `not-open` while closed; 400 `moved` once open (rent with `POST /v1/instances`) | | `POST /v1/auth/challenge` `{address}` | `{address, message, nonce, issuedAt, expiresAt}`. Sign `message` with `personal_sign` | | `POST /v1/auth/verify` `{address, signature}` | `{token, address, expiresAt}`. The token is good for 24 hours | | `POST /rpc` | JSON-RPC. Reads are forwarded to Elysium; `eth_sendRawTransaction` carries only `USDC.transfer(treasury, amount)` or `EQNVDA.transfer(treasury, amount)`, and only when `RELAYER_KEY` is set | ### Signed in Send `Authorization: Bearer `. Routes marked * also take an API key. | Route | Answer | |---|---| | `GET /v1/me` * | `{address, creditsUsd, creditsMicro, sshKeys: [{id, name, type, fingerprint, addedAt}], apiKeys: [{id, name, prefix, capUsdPerDay, spentTodayUsd, stopped, createdAt}], instances: [instance…], via, apiKeyId, mode, limits}` | | `POST /v1/ssh-keys` `{name, publicKey}` | 201 `{id, name, type, fingerprint, addedAt}` | | `DELETE /v1/ssh-keys/:id` | `{ok, id}`. Machines that already carry the key keep it until they end | | `POST /v1/instances` * `{gpu, sshKeyIds?}` | 201, the instance. Without `sshKeyIds`, every key of the account goes on the machine | | `GET /v1/instances` * | `{instances: [instance…]}`, newest first; ended ones stay a week | | `GET /v1/instances/:id` * | the instance, plus `receipt` once it has one | | `POST /v1/instances/:id/end` * | the receipt: `{id, at, type: "charge", usd, deltaUsd, instanceId, gpu, secondsBilled, ratePerHourUsd, startedAt, endedAt, reason, alreadyEnded, instance}` | | `POST /v1/credits/claim` * `{txHash}` | `{ok, txHash, token, amount, priceUsd, creditedUsd, creditsUsd, block, confirmations, entry}`. The token (`USDC` or `EQNVDA`) is read from the receipt; `amount` is a decimal string of that token; `priceUsd` is 1 for USDC | | `GET /v1/ledger?limit=100` * | `{address, creditsUsd, entries: [{id, at, type: "topup" \| "charge" \| "refund", usd, deltaUsd, …}]}`, newest first. A running instance shows as a charge with `open: true`, so the entries always add up to the balance. A `topup` carries `txHash`, `block`, `token`, `amount`, `priceUsd`, and for EQNVDA `poolPriceUsd`, `markUsd` and `haircutBps` | | `POST /v1/api-keys` `{name, capUsdPerDay}` | 201 `{id, name, prefix, capUsdPerDay, spentTodayUsd, stopped, createdAt, secret, note}`. `secret` is shown this once; only its hash is stored | | `POST /v1/api-keys/:id/stop` | the key, plus `ended: [receipt…]` | | `DELETE /v1/api-keys/:id` | `{ok, id, ended: [receipt…]}` | An instance is `{id, gpu, gpuName, status, reason, note, ratePerHourUsd, ratePerSecondUsd, createdAt, startedAt, endedAt, meteredAt, secondsBilled, costUsd, ssh: {host, port, user, command} | null, sshCommand, sshKeyIds, apiKeyId, receiptId}`. `status` is `starting`, `running`, `ended` or `failed`; `startedAt` is when billing started; `ssh` is there only while it runs. `reason` says why it stopped: `user`, `out-of-credits`, `key-cap`, `key-stopped`, `key-deleted`, `provider-lost`, `never-ready`, `no-capacity`, `provider`, `provider-timeout`. Error codes: `not-open`, `unauthorized`, `session-required`, `key-stopped`, `invalid`, `bad-json`, `unknown-gpu`, `no-ssh-key`, `insufficient-credits`, `key-cap`, `limit`, `duplicate`, `not-found`, `no-capacity`, `no-offer`, `sources-unavailable`, `provider`, `already-claimed`, `unconfirmed`, `tx-not-found`, `tx-reverted`, `wrong-token`, `wrong-sender`, `wrong-recipient`, `no-transfer`, `ambiguous-transfer`, `too-small`, `too-old`, `price-unavailable`, `price-unstable`, `chain-unreachable`, `rate-limited`, `too-large`, `busy`, `starting`, `server-error`. `POST /v1/rent` is kept for older clients and only refuses. ### Operator `GET /v1/tick` with `Authorization: Bearer ` settles every running instance, asks the provider about every machine, starts the meter of the ones that became ready, ends what ran out, terminates what is ended, and looks on the provider account for machines nothing tracks. Every signed-in request also settles first, and looks at the caller's own starting machines, so a renter does not wait for the tick to see a machine come up. ## Routing over market offers `/v1/offers` and `/v1/route` read two public sources that answer without a key, at most once a minute each: | Source | What it gives | How it is read | |---|---|---| | `runpod` | **List prices**: the published rate of every GPU type on its secure cloud and its community cloud. A rate, not a promise of stock | `POST https://api.runpod.io/graphql` `{ gpuTypes { id displayName memoryInGb secureCloud communityCloud securePrice communityPrice } }` | | `vast` | **Live offers**: machines rentable this minute, one whole GPU each, verified hosts, with their place and reliability score | `GET https://console.vast.ai/api/v0/bundles/?q=`, five narrow searches | These are other people's machines at other people's prices. Idle holds no GPU of its own, invents no price, and a source that does not answer gives no offers and is named in `errors`. - **Whole Nvidia GPUs only.** AMD cards, Runpod's MIG types (a slice of a GPU) and its placeholder rows are left out, and a Vast offer is kept only when `num_gpus` is exactly 1. Vast's `gpu_frac` is not a slice of a GPU: it is the share of the host's GPUs the offer takes (one GPU of an eight-GPU host is 0.125, and its CPU share is the same fraction), so an offer at 0.125 is one whole GPU with all its memory. - **`secure`** is Runpod's secure cloud, or a datacenter host on Vast (what Vast sells as its own secure cloud). A Vast host being "verified" is not enough: every offer read here is verified. - **`gpu`** is Idle's id when the model and its memory are those of one of Idle's seven GPUs; an RTX 4090 rebuilt with 48 GB, or a 40 GB A100, is kept with `gpu: null`. - **The rules.** `cheapest`: the lowest price that meets the constraints. `secure`: the same among secure offers. `fastest`: the highest tier present, then the lowest price in it. The tiers are Idle's seven GPUs in Idle's own order (`b200, h200, h100, a100, rtx-5090, l40s, rtx-4090`, in `TIER_ORDER`): a ranking by generation and memory, not a benchmark, and models without an Idle id have no tier. - **`idleUsdPerHour`** is the pick's price plus Idle's margin (`MARGIN_BPS`, 20 % when unset). When Idle does rent, its own rate also carries the provider's disk cost, so it is a little higher than this figure. - **`rentableThroughIdle`** is true only on a live deployment, for a pick from Idle's own provider, on its secure cloud, for one of Idle's seven GPUs. It is false on every other pick, and always false while rentals are closed. Idle cannot rent a Vast machine: there is no Vast adapter. Two things learned from Vast's answers: a search returns at most 64 offers whatever `limit` says, so one broad search never shows the large GPUs (hence five searches); and Vast's own documentation describes this search as `POST` with an API key, while the keyless `GET` used here answers today and may stop. ## For agents Idle has an MCP server at `/mcp` (`https://idle-elysium.vercel.app/api/mcp` once deployed): Streamable HTTP, stateless, JSON responses, POST only. ```sh claude mcp add --transport http idle https://idle-elysium.vercel.app/api/mcp # with an API key, for the tools that act on an account: claude mcp add --transport http idle https://idle-elysium.vercel.app/api/mcp --header "Authorization: Bearer idk_..." ``` It follows the current revision of the Model Context Protocol, **2026-07-28** (https://modelcontextprotocol.io/specification/2026-07-28). That revision has no handshake: every request carries its protocol version and the client's capabilities in `_meta`, mirrored in the `MCP-Protocol-Version`, `Mcp-Method` and `Mcp-Name` headers, and `server/discover` says what the server speaks. Clients written for the earlier revisions open with `initialize`; the server answers those too (2025-11-25, 2025-06-18, 2025-03-26: `initialize`, `notifications/initialized`, `ping`, `tools/list`, `tools/call`), which the revision calls a dual-era server. Nothing is remembered between two requests in either era, and no session id is given out. | Tool | Needs | What it does | |---|---|---| | `list_gpus` | nothing | Idle's seven GPUs and their rates | | `find_gpu` | nothing | idle/auto: the same as `GET /v1/route` (`minVram`, `prefer`, `gpu`) | | `quote_rental` | nothing | What `seconds` on one `gpu` costs | | `market` | nothing | The live figures | | `quote_nvda_credits` | nothing | Credits for an `amount` of EQNVDA | | `rental_status` | nothing | Whether renting is open, and what is missing if not | | `get_balance` | an API key, open engine | The account's credits and the key's daily cap | | `list_instances` | an API key, open engine | The account's instances, with the SSH command once running | | `rent_gpu` | an API key, open engine | Rents one GPU and spends credits (`gpu`, `sshKeyIds`) | | `end_instance` | an API key, open engine | Ends an instance and returns the receipt (`id`) | Each tool is one call to a route of the API, so a tool and its route cannot disagree. A result carries the answer twice: as `structuredContent`, and as the same JSON in a text block. What goes wrong inside a tool (bad arguments, no credits, `not-open`) is a tool result with `isError: true` and the API's own error code, so a model can read it and act; an unknown tool or a malformed request is a JSON-RPC error. While rentals are closed the four account tools stay listed and answer `not-open` with the list of what is missing. The key is the API key of the dashboard (`idk_…`, with its daily spend cap), sent as a bearer token; there is no OAuth. `site/llms.txt` says the same in plain text for agents that read a site before they call it. `GET /v1/openapi.json` describes the REST routes. ## Credits The wallet sends USDC (`0xb47c4c8f73f009cc0c0d3f92b388d13e293f0b65`, 6 decimals) or EQNVDA to the treasury on Elysium (chain 99901), then posts the transaction hash to `/v1/credits/claim`. The server reads the receipt from Elysium and credits it when it holds a successful `Transfer` of one of the two tokens from the signed-in wallet to the treasury, under at least 2 confirmations, with a hash never credited before. It must hold exactly one such transfer: a transaction with two (of one token or of both) is refused as `ambiguous-transfer`, and the operator would have to settle it by hand. USDC is credited one for one. Native HYPE top-ups are not read. Elysium takes its transactions through an inbox on HyperEVM, and its public RPC does not carry a user's transaction there. `POST /rpc` is a scoped relayer a wallet can use as its Elysium connection. It posts only when `RELAYER_KEY` (a HyperEVM account that pays the inbox gas) is set; without it, it serves reads and refuses every send. ## Paying with tokenized Nvidia EQNVDA (`0x5CeFf5C7316067b81B537a9aE011d6882f0A558A`, 8 decimals, read on chain) is a tokenized NVIDIA share issued by **EQX**. It trades against USDC in a Uniswap v4 pool on Elysium made by **Pegisium** (pool id `0x6fd22621b9baa37a4162a7893311f45f2ff5847f09565d7b1d1a8d12feb923db`, hook `0xEb7316be9bf3733d34Ec50ee0a8867a0B021a0C8`). Idle made neither the token nor the pool, has reviewed the code of neither, and is not affiliated with EQX or Pegisium. - **The price** of one EQNVDA is the lower of two figures: the pool's price in USDC, and Hyperliquid's `xyz:NVDA` mark. A haircut is taken off (`EQUITY_HAIRCUT_BPS`, default 100, that is 1 %) and the result is rounded down to the micro-dollar. Taking the lower one means that pushing the pool's price up buys nothing; pushing it down only costs the sender. - **Two refusals.** `price-unavailable` when either figure cannot be read. `price-unstable` when they differ by more than `EQUITY_MAX_GAP_BPS` (default 300, that is 3 %) of the mark. A refused claim uses nothing up: the same transaction can be claimed again later. - **Where the pool price comes from.** Uniswap v4 keeps every pool in one PoolManager (`0xE2e105d3F7209A9DA11f83cCf3E7398a753823F1`), which lets anyone read its storage with `extsload(bytes32)`. A pool's first word is at `keccak256(abi.encode(poolId, uint256(6)))`; its low 160 bits are `sqrtPriceX96`. EQNVDA sorts before USDC, so the price is `sqrtPriceX96² / 2¹⁹² × 10^(8 - 6)` USDC per EQNVDA. Read on 29 November 2026 at block 13052391: `0x…103100000000000000013af647c40957225521a9b9a0`, which is 151.368838 USDC, next to an `xyz:NVDA` mid of 151.305. That read is the test fixture `test/fixtures/elysium/eqnvda-pool.json`. - **It is priced when it is claimed, not when it was sent**, from figures at most 20 seconds old. Someone who sent EQNVDA can wait for a better price before claiming. - **The operator ends up holding EQNVDA**, in the treasury, and has to sell it himself. Idle sells nothing and hedges nothing. How much can be sold in the pool, and at what price, is not known here. On 29 November 2026 the PoolManager held 180.96 of the 192.15 EQNVDA in existence, but the pool's ordinary in-range liquidity (`poolLiquidity` in `/v1/market`) amounted to about 25 USD of reserves at the current price: the depth, if any, comes from the Pegisium hook, which was not read. The pool's price did not move in 40 minutes while the mark moved by 0.3 %. The haircut is the only thing that pays for the cost and the risk of selling. - **When the mark runs away from an idle pool**, upward claims are capped at the pool's stale price, and a fall of more than 3 % refuses every EQNVDA claim until someone trades the pool back. ## Runpod Written against the REST API v2, base `https://api.runpod.io/v2`, bearer key. Endpoints used, and where they are documented: | Call | For | Documentation | |---|---|---| | `GET /v2/catalog/gpus?include=AVAILABILITY&product=POD&cloud=SECURE` | prices and stock | https://docs.runpod.io/api-reference-v2/catalog/list-gpu-types | | `POST /v2/pods` | one pod on one GPU type | https://docs.runpod.io/api-reference-v2/pods/create-a-pod | | `GET /v2/pods/{id}` | status, direct SSH host and port | https://docs.runpod.io/api-reference-v2/pods/get-a-pod | | `DELETE /v2/pods/{id}` | terminate | https://docs.runpod.io/api-reference-v2/pods/terminate-a-pod | | `GET /v2/pods` | every pod of the account, to find untracked ones | https://docs.runpod.io/api-reference-v2/pods/list-pods | Also read: the overview (https://docs.runpod.io/api-reference-v2/overview), the SSH guide (https://docs.runpod.io/pods/configuration/use-ssh), pod pricing (https://docs.runpod.io/pods/pricing) and the GPU table (https://docs.runpod.io/references/gpu-types). The fixtures in `test/fixtures/runpod/` are the examples those pages print, copied on 29 November 2026. They are not recordings of live calls. Choices, all in `lib/provider-runpod.mjs`: - **Image**: `runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404` (the official image the reference uses in its examples). **Disk**: 50 GB of container disk, wiped when the pod ends. **Cloud**: `SECURE` only. - **SSH**: Runpod's SSH proxy (`ssh.runpod.io`) only accepts keys registered on the Runpod account, which is Idle's account and not the renter's. So the proxy is never used. The pod publishes `22/tcp`, the renter's keys go in the `PUBLIC_KEY` environment variable (which official images write to `authorized_keys`), and the renter connects straight to the pod (`ssh.direct` in the API: `ssh root@ -p `). That needs a public IP, hence the secure cloud. - **Ready** means status `RUNNING`, a `direct` SSH address, and that address greeting like an SSH server when Idle connects to it. Billing starts there. - **GPU types**: `rtx-4090` → `NVIDIA GeForce RTX 4090`, `rtx-5090` → `NVIDIA GeForce RTX 5090`, `l40s` → `NVIDIA L40S`, `a100` → `NVIDIA A100-SXM4-80GB`, `h100` → `NVIDIA H100 80GB HBM3`, `h200` → `NVIDIA H200`, `b200` → `NVIDIA B200`. Names and memory match the rate card. - **Price**: the catalogue's `price.secure` plus the disk (0.10 USD per GB per month while running, from the pricing page), then the margin. Not verified, because it takes a key and a paid machine: that `PUBLIC_KEY` set in the request really keeps the account's own keys out and lets the renter in; that `startSsh` with an account that has no registered key does not get in the way; how long a pod takes to be reachable; whether the `cost` Runpod bills matches `price.secure` plus the disk; what a capacity failure looks like on the wire (the reference says 400 with a human-readable `detail` and no code). ## Switching it on Only the owner can do the first step. Nothing here creates an account or holds a key. 1. **Create a Runpod account** and fund it. Runpod requires at least one hour of credit for the machine you deploy, and stops every pod when the balance reaches zero. Create an API key with the scopes `catalog:read`, `pods:read` and `pods:write`. Use this account for Idle only: Idle terminates pods named `idle-…` that it does not recognise. Set a spend limit on the account. 2. **Create a Vercel Blob store** linked to the project (that sets `BLOB_READ_WRITE_TOKEN`), then create the empty state once: `node gpu/scripts/init-state.mjs ` (the file's header gives the exact steps). 3. **Set the variables** in Vercel: - `RUNPOD_API_KEY` - `SESSION_SECRET`: 32 random characters or more (a shorter one is treated as absent) - `TREASURY_ADDRESS`: the address on Elysium that receives USDC - `BLOB_READ_WRITE_TOKEN`: set by the Blob store - `CRON_SECRET`: 16 random characters or more, letters and digits - optional `RELAYER_KEY`: the private key of a HyperEVM account that holds a little HYPE for inbox gas and nothing else - optional `EQUITY_HAIRCUT_BPS` (default 100) and `EQUITY_MAX_GAP_BPS` (default 300), for payments in EQNVDA - optional `MARGIN_BPS` (default 2000, that is 20 %), `SITE_DOMAIN` (the host shown in the sign-in message), `ALLOWED_ORIGINS`, `POD_PREFIX`, `CLAIM_MIN_BLOCK` 4. **Merge `vercel.fragment.json`** into the deployment's `vercel.json`: the cron that calls `/api/v1/tick` every minute, and 60 seconds for the function. **A cron every minute needs Vercel's Pro plan.** On Hobby the deployment itself fails ("Hobby accounts are limited to daily cron jobs"). Without Pro, leave the cron out and have any scheduler call `GET /api/v1/tick` with `Authorization: Bearer ` every minute. No rental starts unless a tick ran in the last 5 minutes. 5. **Ship the new files.** The deployment folder must carry all of `lib/`, `api/index.mjs` and a `package.json` with the two dependencies. Never ship `provider-mock.mjs` wiring or a `.dev/` folder; the mock refuses to start on Vercel anyway. 6. **Check**: `/api/v1/health` must say `mode: "live"`, `rentals: true`, `meter.running: true`. Then rent the cheapest GPU yourself for two minutes, connect over SSH, end it, and compare the receipt with what Runpod billed. Until that has been done once, this has never worked. With one variable missing: no `RUNPOD_API_KEY`, `SESSION_SECRET`, `TREASURY_ADDRESS` or `BLOB_READ_WRITE_TOKEN` and the mode is `closed`; no `CRON_SECRET` and the tick answers 503, so no rental can start; no `RELAYER_KEY` and the relayer carries reads only, so a user needs another way to get a transaction onto Elysium. ## Locally `npm run dev` serves the same app on `http://localhost:8791` (also under `/api/…`) with the mock provider, the fake chain, a state file in `gpu/.dev/` and a tick every 5 seconds. One route exists only there, because no wallet can pay a chain that does not exist: `POST /dev/topup {address, usd}` records a USDC transfer on the fake chain and returns its `txHash`, to be claimed like a real one; `POST /dev/topup {address, token: "EQNVDA", amount: "1.5"}` does the same with EQNVDA. The EQNVDA is as fake as the chain, but it is priced from the real pool and the real mark, so that part needs the network. `npm run dev:flow` walks the whole flow with a throwaway wallet. A mock machine's SSH address points at `127.0.0.1`, where nothing listens. ## Not done - **Never run for real.** No provider account, no live call, no machine rented, nothing deployed. - **x402 per request**: not written. An agent pays with an API key that has a daily cap, on credits bought beforehand. - **Renting what the router finds**: `/v1/route` picks among Runpod and Vast offers, but Idle can only rent from its own provider's secure cloud, and only once it is live. There is no Vast adapter. - **MCP beyond tools**: no resources, no prompts, no subscriptions, no SSE stream, no OAuth. The handshake revisions were tried with the official TypeScript SDK client (1.32.2, which speaks 2025-11-25): connect, ping, list, call, tool errors. The 2026-07-28 path has only been tested against a reading of the specification: no client that speaks it was at hand. - **Onchain receipts**: receipts live in the ledger, in the state blob. Nothing is sealed on Elysium. - **HYPE top-ups**: only USDC and EQNVDA are read. No other token, no other tokenized share. - **Selling the EQNVDA received**: nothing sells or hedges it. It sits in the treasury. - **Jupyter**, stopping and resuming a machine, persistent storage, choosing an image or a region, more than one GPU per machine: not offered. One image, one disk size, SSH only. - **Contract wallets** cannot sign in (no EIP-1271). - **The site** does not use any of this yet. - **The two offer sources are not Idle's to rely on.** Both are read without a key and without any agreement; Vast documents its search as needing one. Either can change shape, limit or close, and then that source goes quiet and is named in `errors`. - **Scale**: the whole state is one JSON document read and written on every signed-in request. Fine for hundreds of accounts, not for thousands. The ledger is never trimmed. Rate limits are per serverless instance, in memory. ## Risks - **The provider account's balance is real money.** Every running pod spends it, whether or not a renter pays. Idle pays Runpod from the request; the renter pays Idle from the moment SSH answers, and nothing for a machine that never comes up. Start-up time and failed starts (up to 10 minutes each) are the owner's cost. - **A bug in metering costs the owner.** The engine is tested, not audited. If the tick stops, running machines keep running and nothing ends the ones whose renter ran dry; `/v1/health` shows `meter.running: false` and new rentals are refused, but existing ones are not stopped by anything. Set a spend limit on the Runpod account. - **A lost write can leave a machine running.** A request that dies between creating a pod and recording it leaves a paid pod with no owner. The tick looks for them by name and terminates them; that is a net, not a guarantee. - **EQNVDA is someone else's token in someone else's pool.** Its contract (835 bytes of code, not an EIP-1967 proxy) was not reviewed: whether EQX can pause, freeze or claw back balances is not known here. A credit given for EQNVDA is spent on real machines whatever the token is worth afterwards. The two price sources are trusted: a wrong `xyz:NVDA` mark together with a pool moved to match it would credit at a wrong price. - **Credits trust the RPC node.** A node that lies about a receipt could mint credits. Two confirmations are not finality. If the state is ever reset, every past top-up could be claimed again unless `CLAIM_MIN_BLOCK` is set. - **Whoever holds `SESSION_SECRET`** can sign a session for any wallet; whoever holds the Blob token can write any balance; whoever holds `RUNPOD_API_KEY` can spend the provider balance. - **The sign-in message** names the site, but nothing stops another site from asking a user to sign the same text. A session only lets its holder spend that account's credits; it moves no funds. - **The margin may be wrong.** The rate assumes Runpod bills `price.secure` plus the disk. That has not been compared with a real invoice. - **Renters get root on a machine paid by the owner's account**, with open internet access. What they do there is attributed to that account by the provider. Idle is not affiliated with Nvidia, Runpod, Vast.ai, EQX or Pegisium.