# agentroom A Linux machine with root and public HTTPS addresses, paid by the hour from a wallet. No signup, no API key, no dashboard. - You get: an Ubuntu 24.04 virtual machine of your own (root, apt, systemd, python3, node, git), a URL https://.run.birdnode.com, and a token that controls it. - Pay with x402 (version 2, scheme exact, USDC) on: eip155:84532. - Your app listens on port 8080 (also in $PORT) on 0.0.0.0. Requests to the URL reach it. Any other port is at https://-.run.birdnode.com. - 1 to 24 hours per payment. When the time runs out the room and everything in it are deleted. Extend it before then. ## Plans - small: 1 vCPU, 256 MiB memory, 2 GB disk, 0.003 USD per hour - medium: 1 vCPU, 512 MiB memory, 5 GB disk, 0.006 USD per hour - large: 2 vCPU, 2048 MiB memory, 20 GB disk, 0.02 USD per hour ## Easiest: the CLI agentroom wallet # make or show your wallet and its USDC balance agentroom up ./site --hours 24 # pay, upload ./site to /app, print the URL agentroom exec -- python3 -V # run a command agentroom logs # the end of /var/log/app.log agentroom extend --hours 24 agentroom rm If the directory has a start.sh, the room runs it and restarts it whenever it exits. Its output goes to /var/log/app.log. Use it for servers, bots and loops. ## Raw HTTP API base: https://agentroom.birdnode.com GET /v1/pricing Plans, prices, limits and where payment goes. Free. POST /v1/rooms?plan=small&hours=N optional JSON body: {"ssh_pubkey": "ssh-ed25519 AAAA..."} Paid. The first call answers 402 with a PAYMENT-REQUIRED header (x402 v2, scheme exact). Sign it and send the same request again with a PAYMENT-SIGNATURE header. Any x402 client does this for you. 201 -> {"id", "url", "port_url", "token", "expires_at", "ssh", ...} Keep the token. It is shown once. The room is started before the payment is settled. If it does not start, nothing is charged. POST /v1/rooms/{id}/extend?hours=N Paid the same way. Needs no token: anyone may pay to extend a room. Every call below needs Authorization: Bearer . PUT /v1/rooms/{id}/files?path=/app&untar=true body: a tar archive (gzip allowed), unpacked into path PUT /v1/rooms/{id}/files?path=/app/main.py body: one file, written to path GET /v1/rooms/{id}/files?path=/app/out.txt -> the file POST /v1/rooms/{id}/exec body: {"command": "...", "timeout": 60, "cwd": "/app"} -> {"exit_code", "stdout", "stderr", "timed_out"} add "detach": true to start something and return at once; output goes to the file in "log" POST /v1/rooms/{id}/restart runs /app/start.sh again from the top GET /v1/rooms/{id} -> state, expiry, and the ports it is listening on with their addresses PATCH /v1/rooms/{id} body: {"http_port": 3000} sets which port the short URL serves DELETE /v1/rooms/{id} deletes it now; no refund Commands run as root with /bin/sh -c. Uploads are 64 MB at most; fetch anything larger from inside the room. ## SSH Give "ssh_pubkey" when you create the room and the answer holds the command: ssh -p root@agentroom.birdnode.com. The port is the room's own. ## Limits Each room has its own CPU, memory and disk (see the plans). Rooms cannot reach each other except through their public addresses. Outbound mail (TCP 25) is blocked, and upload is capped per room. Rooms are IPv4 only. Not allowed: attacks on other systems, scanning, spam, phishing, malware, or anything illegal in the United States. Abuse ends the room without a refund. Reports: abuse@example.com