---
name: arvm
description: "Create, connect to, and manage KVM Ubuntu 24.04 Linux VMs with arvm (a 4 vCPU / 8 GB VM for $0.018/hr, $13.14 for a full month, on a $20/month plan in North America). Use for running Claude Code, Codex, OpenCode, Rex, Cursor or VS Code Remote-SSH, Docker, systemd services, CI builds, or parallel coding agents on isolated Linux virtual machines with persistent disks, SSH, HTTPS preview URLs, and automatic idle stop."
---

# arvm

A 4 vCPU / 8 GB Linux VM for $0.018 an hour. In North America. Counted by the second while running; stopped machines cost $0 and keep their disk.

Sign up or manage billing at https://app.advancedruntime.com/sign-in.

## Plan, sizes, and limits

| Size | Machine | Disk | Rate | Full month (730 h) |
|---|---|---|---|---|
| `small` | 2 vCPU / 4 GB | 51 GB | $0.009 | $6.57 |
| `default` | 4 vCPU / 8 GB | 51 GB | $0.018 | $13.14 |
| `large` | 8 vCPU / 16 GB | 111 GB | $0.036 | $26.28 |

- **Monthly plan:** $20/month adds $20 of machine time to the balance. A full month of `default` (4 vCPU / 8 GB / 51 GB disk, $0.018/hr) uses $13.14 of it. What is unused expires at renewal.
- **Stopped machines:** $0/hr. The full disk, name, and SSH address persist across stops.
- **Idle stop:** Automatic stop after 60 minutes without gateway, API, endpoint, or sustained CPU activity. Pass `--idle-timeout <duration|never>` or `PATCH /v1/machines/{id}` with `idle_timeout_seconds`.
- **Top-ups & zero balance:** Top-ups start at $10 at the same hourly rates and never expire. At zero balance, machines keep running for 1 hour, then shut down cleanly keeping their disks.
- **Snapshots:** $0.10 per GB a month. Create with `arvm snapshot create` and boot copies with `arvm new --from-snapshot`.
- **Concurrency tiers:** Free ($0 / $5 starter credit, 14d — up to 2 parallel default VMs, 3 boxes, 8 vCPUs, 16 GB RAM, 222 GB disk); Pro ($20/mo — up to 10 parallel default VMs, 30 boxes, 40 vCPUs, 80 GB RAM, 1530 GB disk); Max ($100/mo — up to 50 parallel default VMs, 150 boxes, 200 vCPUs, 400 GB RAM, 7650 GB disk); Ultra ($500/mo — up to 250 parallel default VMs, 500 boxes, 1000 vCPUs, 2000 GB RAM, 25500 GB disk).

## CLI workflow

```sh
# Install the arvm CLI (Linux and macOS, amd64 and arm64)
curl -fsSL https://arvm.dev/install | sh

# Sign in interactively (or set ARVM_API_KEY for headless agents and CI)
arvm login

# Create a machine and wait until it is running
arvm new
arvm new --name devbox --size large --idle-timeout 4h

# Open SSH, install ~/.ssh/config entries, run a command, or copy files
arvm ssh calm-river-otter
arvm ssh-config --install
arvm exec calm-river-otter -- uname -r
arvm cp ./app.tar.gz calm-river-otter:/tmp/

# Expose a port on HTTPS (private signed URL by default; --public for open)
arvm expose calm-river-otter 8080

# Snapshot, stop ($0 while stopped), or delete
arvm snapshot create calm-river-otter --name before-upgrade
arvm stop calm-river-otter
arvm rm calm-river-otter --yes
```

Run `arvm agent-instructions` to print CLI instructions tailored for `AGENTS.md`. Pass `--json` (or pipe stdout) for machine-readable JSON output.

## HTTP API loop

Base URL: `https://api.arvm.dev`. Authenticate with `Authorization: Bearer $ARVM_API_KEY`. Always send a fresh `Idempotency-Key` header on `POST /v1/machines`.

```sh
# 1. Create a machine and wait until running
curl -s -X POST "https://api.arvm.dev/v1/machines?wait=running&timeout=120" \
  -H "Authorization: Bearer $ARVM_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"size": "default", "labels": {"owner": "agent"}}'

# 2. Execute a command (argument vector; default timeout 30s, max 3600s)
curl -s -X POST "https://api.arvm.dev/v1/machines/{id}/exec" \
  -H "Authorization: Bearer $ARVM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"command": ["sh", "-c", "cd /home/dev && uname -a"], "timeout_seconds": 600}'

# 3. Read or write files
curl -s -X PUT "https://api.arvm.dev/v1/machines/{id}/files?path=/home/dev/.env&make_parents=true&mode=0600" \
  -H "Authorization: Bearer $ARVM_API_KEY" \
  -H "Content-Type: application/octet-stream" \
  --data-binary @.env

# 4. Delete when done
curl -s -X DELETE "https://api.arvm.dev/v1/machines/{id}" \
  -H "Authorization: Bearer $ARVM_API_KEY"
```

### Error codes

Switch on the Problem JSON `code` field, never on `title` or `detail`.

| Code | Status | Action |
|---|---|---|
| `insufficient_balance` | 402 | Stop and ask the account owner to top up. |
| `subscription_required` | 402 | Stop and ask the account owner to subscribe. |
| `limit_exceeded` | 403 | Stop or delete unused machines, then retry. |
| `name_taken` | 409 | Omit `name` to receive a generated name. |
| `machine_not_running` | 409 | Start the machine (`POST /v1/machines/{id}/start?wait=running`), then retry. |
| `rate_limited` | 429 | Sleep for `Retry-After` seconds, then retry. |
| `no_capacity` | 503 | Sleep for `Retry-After` seconds, then retry. |
| `machine_unreachable` | 503 | Pause and retry. For `exec`, nothing ran. |
| `exec_outcome_unknown` | 502 | Command may have run or still be running. Inspect state before retrying. |
| `internal` | 500 | Retry with the same `Idempotency-Key`. |

## Machine environment

- **OS and privileges:** Ubuntu 24.04 LTS x86-64 on KVM with its own Linux kernel, `systemd`, Docker Engine, and passwordless `sudo` for user `dev`.
- **Background jobs under exec:** Any process left behind when an `exec` command exits is killed. Do not use `nohup` or `&`. Start long jobs with `sudo systemd-run --unit=<name> --uid=dev --gid=dev ...` and turn off idle stop first (`idle_timeout_seconds: null`).
- **Output limits:** `stdout` and `stderr` from `exec` truncate at 8 MiB each. Redirect larger output to a file and fetch it through the files endpoint.
- **Networking and storage:** Outbound IPv4 and IPv6 plus a dedicated public IPv6 address (`inbound` open by default). Outbound TCP port 25 is blocked. Disks live on one drive with no automatic backups; keep code in Git.

## Guides

- [Use Rex with a cloud Linux VM](https://arvm.dev/docs/guides/rex.md): Install a persistent Rex server on an Ubuntu 24.04 cloud VM over SSH so terminal sessions and builds survive laptop sleep.
- [Run Claude Code in the cloud](https://arvm.dev/docs/guides/run-claude-code-in-the-cloud.md): Run autonomous Claude Code sessions with --dangerously-skip-permissions inside an isolated KVM Ubuntu 24.04 VM with a persistent 51 GB disk.
- [Run Codex CLI in the cloud](https://arvm.dev/docs/guides/run-codex-in-the-cloud.md): Run interactive or headless Codex CLI on an isolated Ubuntu 24.04 Linux VM using arvm ssh, arvm exec, and arvm cp.
- [Use OpenCode and OpenCode Desktop over SSH](https://arvm.dev/docs/guides/opencode-desktop.md): Run OpenCode on a cloud Ubuntu 24.04 VM and connect from OpenCode Desktop over SSH port forwarding or a private HTTPS endpoint.
- [Connect Cursor or VS Code with Remote-SSH](https://arvm.dev/docs/guides/cursor-remote-ssh.md): Configure arvm ssh-config to edit code on a cloud Linux VM from Cursor or VS Code and preview dev servers over HTTPS.
- [Run parallel coding agents across isolated VMs](https://arvm.dev/docs/guides/parallel-agents.md): Fan out coding agents across separate KVM Linux VMs, choose between default and large sizes, and stay within the $20 monthly plan.

## Documentation

- [Index of all docs](https://arvm.dev/llms.txt)
- [Home page as Markdown](https://arvm.dev/index.md)
- [Quickstart](https://arvm.dev/docs/quickstart.md)
- [Machines, sizes, idle stop, limits](https://arvm.dev/docs/machines.md)
- [SSH, SSH config, port forwarding, IPv6](https://arvm.dev/docs/connect.md)
- [Exec and file operations](https://arvm.dev/docs/exec-and-files.md)
- [For agents](https://arvm.dev/docs/agents.md)
- [CLI reference](https://arvm.dev/docs/cli.md)
- [HTTP API reference](https://arvm.dev/docs/api/index.md)
- [Price comparison](https://arvm.dev/docs/compare.md)
