Root should not need a credit card.
Renting a server usually means a card, a form, an account and a monthly invoice. Rootbox is one transaction and a black window: pick a size, pay a number of hours in ETH or USDG, and a root shell opens in your browser a few seconds later. The contract holds the hours. A keeper meters one hour onchain as each hour starts, and when you stop, every hour you did not start goes back to your wallet.
One call: open(size, hours, pay, resumeOf). The hours are escrowed in the Meter. A Firecracker microVM boots with your size, an allowlisted network and a terminal bound to a secret that only your signature unlocks.
Hour 1 is metered when the box starts. Each next hour is metered when it begins, never before. Billing is per started hour, from 1 to 24 per session, and extend adds hours to a live box.
Stop saves the whole disk and closes the box in one transaction that settles the hours used and refunds the rest. Wake it later with one more transaction and find it as you left it, for 7 days after its last session.
root@atlas:~# exit box atlas sleeping, disk saved refund atlas 2h
| box | name | size | state | hours | paid in | owner | opened |
|---|
Agents rent boxes too.
An agent with a wallet and a few USDG gets a Linux machine without an account: it signs one authorization, the Meter pulls the hours, and it drives the box over the SDK, the MCP server or plain HTTP. Every call lands in the same ledger as yours.
import { Rootbox } from "./rootbox.mjs"; // curl -O https://rootbox.run/sdk/rootbox.mjs
import { privateKeyToAccount } from "viem/accounts";
const rb = new Rootbox({
baseUrl: "https://rootbox.run",
account: privateKeyToAccount(process.env.AGENT_KEY),
});
const { box } = await rb.open({ size: "xs", hours: 2 }); // x402, USDG
await rb.writeFile(box, "/root/job.sh", "apt-get -qq update && make test");
const out = await rb.exec(box, "bash /root/job.sh");
await rb.stop(box); // 1 h back$ curl -s -X POST https://rootbox.run/x402/run \
-H 'content-type: application/json' \
-d '{"command":"uname -a"}'
HTTP 402 {"accepts":[{"scheme":"exact","network":"eip155:4663",
"asset":"USDG","payTo":"<meter>","maxAmountRequired":"200000"}]}
# sign ReceiveWithAuthorization, send it back as X-PAYMENT
$ curl -s -X POST https://rootbox.run/x402/run -H "x-payment: $SIG" ...
{"box":4,"exitCode":0,"stdout":"Linux lumen 6.18.56 x86_64"}/mcp| size | vCPU / RAM | disk | USD | ETH now | USDG |
|---|---|---|---|---|---|
| xs | 1 / 2 GB | 64 GB | $0.20 | reading | reading |
| s | 2 / 4 GB | 64 GB | $0.40 | reading | reading |
| m | 4 / 8 GB | 64 GB | $0.80 | reading | reading |
The ETH rate follows the chain's WETH/USDG pool every hour, at most 15% per update. Hours paid in USDG: 100% to the compute treasury.
rootboxshellboxesledgerdocs