Boot
your first
run
DOCS
CLI
One command per run. Output streams back, the receipt goes to stderr.
npx kidou run --python -- python3 -c "print(6*7)" npx kidou run --shell --budget 0.05 -- "curl --version; ls -la" npx kidou browse https://example.com --text --screenshot shot.png npx kidou gpu models npx kidou gpu qwen2.5-7b-instruct "Explain x402 in one sentence" --max 0.05 npx kidou topup 5 # pay 5 USDG over x402 npx kidou balance | sessions | verify <session-id> | login
SDK
TypeScript. Sessions hold a budget while they run and return what they did not use.
import { Kidou, loadOrCreateKey } from "@kidou/sdk";
const t = new Kidou({ baseUrl: "https://<node>", account: loadOrCreateKey() });
await t.trial();
const s = await t.open({ kind: "code", runtime: "python", budget: "0.05" });
await t.exec(s.id, "python3 -c 'print(42)'", (_, text) => process.stdout.write(text));
const done = await t.stop(s.id);
console.log(await t.verifyReceipt(done.receipt)); // true
const b = await t.open({ kind: "browser", budget: "0.05" });
const { results } = await t.browse(b.id, [{ type: "goto", url: "https://example.com" }, { type: "text", selector: "h1" }]);
await t.stop(b.id);MCP for agents
Tools: run_code, browse, gpu_run, balance, pricing.
// Claude Code / Desktop (stdio, signs with your local key)
{ "mcpServers": { "kidou": { "command": "npx", "args": ["kidou-mcp"], "env": { "KIDOU_URL": "https://<node>" } } } }
// Hosted (streamable HTTP): get a token with `npx kidou login`
POST https://<node>/mcp Authorization: Bearer <token>HTTP API
GET /v1/pricing /v1/node /v1/stats /v1/gpu/models public
POST /v1/trial GET /v1/me signed or Bearer
POST /v1/sessions {kind:"code",runtime,budget} | {kind:"browser",budget}
POST /v1/sessions/:id/exec code: {cmd} -> NDJSON browser: {actions:[...]}
POST /v1/sessions/:id/stop -> receipt
POST /v1/gpu/:model/run {input, maxCost}
POST /v1/run one-shot, x402 (price = maxSeconds x rate)
POST /v1/credits?amount=5 top-up, x402
Signed requests: x-kidou-address, x-kidou-ts, x-kidou-nonce, x-kidou-sig
sig = personal_sign("KIDOU\n{METHOD}\n{PATH}\n{TS}\n{NONCE}\n{sha256(body)}")Paying with x402
USDG on Robinhood Chain has no gasless permit, so Kidou uses the x402 v2 exact scheme with Permit2. Approve Permit2 for USDG once from your own wallet (you pay that small gas in ETH), then each payment is a signature. Payments go straight to the node operator's wallet.
Receipts
Every session and GPU run returns an EIP-712 receipt (domain Kidou, version 1, chain 4663) with seconds, rate, charge, hold, times and an output hash, signed by the node key published at /v1/node.