# froog docs (full text)

> froog gives every agent its own Linux VM: full Ubuntu 24.04 or 26.04, Debian 13 or Omarchy (Arch Linux) machines with SSH, Docker, public HTTPS URLs for any port and a desktop, driven by the `froog` CLI or the HTTP API at https://api.froog.tech/v1. This file is generated from https://docs.froog.tech/ (the index is https://froog.tech/llms.txt).

## Install

```sh
curl -fsSL https://froog.tech/install | sh
```

The installer checks the CLI's SHA-256 and puts it in `~/.local/bin` (`FROOG_BIN_DIR` to change it, `FROOG_VERSION=v0.1.0` to pin a version). Windows 10+, in PowerShell: `irm https://froog.tech/install.ps1 | iex`. WSL works with the command above.

## Quickstart

[Sign up](https://froog.tech/signup/) with Google, GitHub or an email code. With a card on file, one [lite sandbox](https://docs.froog.tech/pricing/#free) runs free; bigger ones are billed by the month ([pricing](https://docs.froog.tech/pricing/)).

```sh
$ froog login                # approve this computer; registers ~/.ssh/id_ed25519.pub
$ froog onboard              # or a guided first run: sign-in, SSH key, agent keys, first sandbox
$ froog billing card         # add a card (Stripe Checkout)

$ froog new my-box           # a running VM with everything installed
$ froog ssh my-box
$ froog exec my-box -- 'git clone https://github.com/you/app && cd app && make test'
$ froog run -- make test     # fresh sandbox with this folder, run, delete
$ froog stop my-box          # snapshot the disk and stop; froog start resumes
```

`froog onboard` skips steps already done and can be re-run; `--yes` takes every default. `froog dashboard` opens the dashboard signed in.

`froog new` (and `start`, `fork`, `restore`) returns once the sandbox accepts SSH: under a second for default-size Ubuntu 24.04, about 20 seconds otherwise ([start times](https://docs.froog.tech/snapshots/#start-times)).

## Sandboxes

Each sandbox is a full VM with its own kernel. `froog ssh` logs you in as `user` (home `/home/user`) with your SSH keys; passwordless `sudo` gives root. Password login is off. The CLI pins each sandbox's host key.

### Sizes

| Size | vCPU | Memory | Disk |
| --- | --- | --- | --- |
| `lite` | 1 (shared only) | 2 GB | 51 GB |
| `small` | 2 | 4 GB | 51 GB |
| `default` | 4 | 8 GB | 51 GB |
| `large` | 8 | 16 GB | 111 GB |
| `xlarge` | 16 (shared only) | 32 GB | 251 GB |

Prices: [Pricing](https://docs.froog.tech/pricing/). The disk includes the OS and tools; memory is always reserved. `froog new NAME --size large` picks a size; `froog start NAME --size …` changes a stopped one. `xlarge` (16 vCPU, 32 GB) is on sale with shared vCPUs only. `froog limits` lists the sizes you can start.

vCPUs are shared by default: time on the host's cores, so a busy neighbour can slow you down. `froog new NAME --dedicated` (API: `"cpu": "dedicated"`) gives `small`, `default` or `large` one physical core per vCPU. It stays dedicated through stop, start and fork, and boots a few seconds slower. No host with enough free cores: `409 no_capacity`.

**Adaptive CPU.** `froog new NAME --adaptive [--max-vcpus N]` (API: `"adaptive": true`, `"max_vcpus": N`) runs a shared sandbox on its size's vCPUs and grows its CPU live while it's busy, up to `max_vcpus` (default and at most 16), then shrinks back when it's idle. It takes a normal [setup](https://docs.froog.tech/pricing/#capacity) slot of its size; only vCPU time above that size's vCPUs is extra: **$0.003 per vCPU-hour**, per second from the [wallet](https://docs.froog.tech/pricing/#wallet), listed in `froog usage` as `burst`. At your spending cap, or once an empty wallet's [24-hour grace](https://docs.froog.tech/pricing/#wallet-grace) is over, it keeps running at its size's vCPUs. Memory stays the size's. The sandbox sees `max_vcpus` CPUs from boot (`nproc` says 16), but only gets the CPU time it has grown to; `vcpus_now` in `froog info` and `GET /v1/sandboxes/{name}` shows it. Kept through stop, start and fork; `froog start NAME --size large` moves the floor, `--no-adaptive` turns it off. Shared vCPUs, `small` and up.

### What's installed

OS: **Ubuntu 24.04** (default), **Ubuntu 26.04**, **Debian 13**, **Android** ([Android](https://docs.froog.tech/android/)) or **Omarchy**. `froog new NAME --os debian` (API: `"os": "debian-13"`; `GET /v1/images` lists them). Forks and restores keep their source's OS. Install more with `sudo apt-get install`, `npm i -g`, `pip`, `uv` or `cargo`; it stays on the disk.

**Omarchy.** `--os omarchy` starts [Omarchy](https://omarchy.org) (Arch Linux with Hyprland) at 1920x1080, logged in and never locked. `froog desktop` shows it; the agents' `computer` tools drive it. `--theme dark|light` picks the theme, `~/.config/froog/wallpaper.png` the background. Browser: Chromium. Firewall on, SSH allowed. No GPU, so video is slow.

| Languages | Node.js 24 (npm, pnpm), Bun, Deno, Python 3.12 (pip, venv, pipx, uv), Go, Rust stable, Java 21 (Maven), Ruby, PHP (Composer) |
| --- | --- |
| Build tools | GCC 13, Clang 18, CMake, Ninja, make, pkg-config, autotools, gdb, common `-dev` libraries |
| Containers | Docker with BuildKit, Buildx and Compose; no sudo needed |
| Virtualization | `/dev/kvm` for QEMU/KVM, Firecracker or the Android emulator |
| Coding agents | Claude Code (`claude`), Codex, OpenCode, Gemini CLI, Amp, Cursor CLI (`agent`), pi |
| Browser and desktop | Google Chrome, Xvfb, XFCE for `froog desktop`, xdotool, wmctrl, ffmpeg, `froog-record-desktop` |
| Everyday tools | git, git-lfs, `gh`, ripgrep, fd, jq, tmux, htop, vim, nano, tree, sqlite3, rsync, curl, wget, dig, netcat, strace, lsof |

`cat /etc/froog-image` lists exact versions.

### Auto-stop

The timer counts from each start, not from your last activity, and stops the sandbox even mid-session. Paid sizes default to no auto-stop; `lite` defaults to 1 hour. Max 30 days. Each stop snapshots the disk first. A running `froog prompt` pushes the deadline back one timer length.

```sh
$ froog new box --ttl 4h               # stop 4 hours after each start
$ froog new box --no-auto-stop
$ froog extend box --hours 12          # 12 hours from now, and after each start
$ froog info box                       # auto-stop: at 18:02 (in 3h 59m)
```

API: `ttl_secs` on create, start and fork (`0` = never), `PATCH /sandboxes/{name} {ttl_secs}`; `auto_stop_at` says when.

### Hard lifetime, auto-delete and a deadline

```sh
$ froog new ci-1 --max-lifetime 2h --delete-after 1d
$ froog extend ci-1 --max-lifetime 4h          # 0 removes it
$ froog new eval-7 --expires 3h               # deleted 3 hours after creation
$ froog extend eval-7 --expires 1h            # from now; 0 removes it
```

`--max-lifetime` (`max_lifetime_secs`, up to 30 days) stops the sandbox that long after each start, even while busy; prompts and `extend --hours` don't move it. `--delete-after` (`delete_after_secs`, up to 365 days) deletes it once it has stayed stopped that long; a start cancels the countdown. Forks inherit both. `stop_at` and `delete_at` say when; checks run every minute.

`--expires` (`expires_in_secs`, 60 s to 365 days) deletes the sandbox at that time after creation, whatever it's doing. `PATCH {expires_in_secs}` resets it from now. Forks don't inherit it. `expires_at` says when; the audit log records `sandbox.expire`. Deleting removes automatic snapshots; saved snapshots stay.

### Auto-start

A stopped sandbox with auto-start starts when a [public URL](https://docs.froog.tech/urls/) gets a request, or on an API exec, file, job, prompt or [wait](https://docs.froog.tech/urls/#wait-port) call. Pair it with auto-stop for previews that idle for free.

```sh
$ froog new preview --ttl 15m --auto-start --host 3000:public
$ froog extend preview --no-auto-start
```

- Off by default (API: `auto_start` on create and `PATCH`). Forks keep it.

- A URL request waits up to 20 s, then gets a self-reloading "starting…" page (browsers) or `503` with `Retry-After`. An API call waits up to 60 s, then `503 sandbox_starting`.

- The usual start checks apply: an API call gets the same error (`402 capacity_full`, `429 limit_reached`), a URL visitor a plain `503`.

- Only a dashboard session, a full key, or a key with `sandbox.resume` or `sandbox.update` starts it; narrower keys get `409`. Private URLs check the token first.

- Audit log: `sandbox.auto_start`.

### Stopping safely

A stop runs `~/.froog/pre-stop`, snapshots the disk, then drops the VM.

- **Pre-stop hook.** Your script, run as `user` for up to 60 s on every stop except `--force`. Output goes to the [command history](https://docs.froog.tech/history/). Failure doesn't block the stop.

- **Refused stop.** If the snapshot fails (usually a full disk), the sandbox keeps running, unbilled, with `stop_refused_at` and `stop_error` set, an email and a `sandbox.stop_refused` [webhook](https://docs.froog.tech/webhooks/). froog retries (5, 15, 30 min, then hourly) and forces the stop after 3 days. `froog start NAME` or a new deadline cancels it.

- **`froog stop NAME --force`** (API `{"force": true}`) stops without a new snapshot, keeping the last good one; later writes are lost. Works on hung sandboxes.

A retried stop (`GET /stops/{id}`) shows `failing`, then `completed` or `superseded`. A sandbox in `error` isn't billed. `last_reboot` says when its OS last booted.

### Disk space

`disk_used_percent` in `froog info`. At 85% you get an email; at 95% froog clears re-downloadable caches (apt, journal, untagged Docker images) and emails again. Each also sends `sandbox.disk_low`. Your files are never deleted. A full disk makes stops fail; for more, `froog start NAME --size large`.

### Not answering

After 5 minutes without answering, a sandbox is marked unresponsive (`unresponsive_since`), with an email and `sandbox.degraded`; `sandbox.recovered` when it's back. It's still billed. `froog stop NAME --force && froog start NAME` restores the last snapshot. froog does that itself after 3 days.

### Errored sandboxes

A sandbox goes into `error` (unbilled) when its VM is lost or a start fails. Without a VM but with a snapshot, froog rebuilds it on another machine (3 tries, 10 minutes apart) and emails you; writes after that snapshot are lost. Otherwise `froog start NAME` retries. Turn rebuilds off: `froog alerts off auto-rebuild`.

### Alert emails

Kinds: `disk`, `stop_refused`, `unresponsive`, `rebuilt`, `billing` (stopped for an unpaid setup or the spending cap, 80% of the cap, a declined top-up). All on by default; webhooks are sent either way.

```sh
$ froog alerts
$ froog alerts off disk
```

API: `GET` / `PATCH /v1/account/alerts {"emails": {"disk": false}, "auto_rebuild": true}` (`account.read` / `account.admin`).

### Metrics

```sh
$ froog metrics ci-1
cpu      12.5% of 4 vCPU
memory   1.9 GB of 8.2 GB (23%)
disk     6.0 GB of 52.7 GB (11%)
network  0.3 GB in, 0.0 GB out since boot
io wait  0% of the last minute waiting on disk
$ froog metrics ci-1 --history --since 6h   # CPU, memory, disk every 30 s, kept 7 days
```

API: `GET /v1/sandboxes/{name}/metrics` (live; `409` when stopped) and `…/metrics/history?since=&until=&step=`. With [monitoring off](https://docs.froog.tech/data/): `409 monitoring_off`. Also in the dashboard, and via [OpenTelemetry export](https://docs.froog.tech/telemetry/).

### Labels

```sh
$ froog new ci-1 --label team=web --label job=1234
$ froog label ci-1 tier=gold job-     # set tier, remove job
$ froog list --label team=web --state running
$ froog list --prefix ci-
```

Up to 32 per sandbox. Keys: 1-63 of letters, digits, `. _ - /`. Values: up to 255 characters. Forks keep them.

## Pricing

**Billed by the month, not by the second.** You pick a setup: how many sandboxes of each size, shared or dedicated, resumable or ephemeral. Each runs 24/7 at no extra charge. No plans, no minimum.

| Size | vCPU · memory · disk | Resumable, shared | Resumable, dedicated | Ephemeral, shared | Ephemeral, dedicated |
| --- | --- | --- | --- | --- | --- |
| `lite` | 1 · 2 GB · 51 GB | free ([one, with a card](https://docs.froog.tech/pricing/#free)) | — | — | — |
| `small` | 2 · 4 GB · 51 GB | $4.08 | $10.39 | $3.40 | $9.71 |
| `default` | 4 · 8 GB · 51 GB | $8.16 | $20.78 | $7.48 | $20.10 |
| `large` | 8 · 16 GB · 111 GB | $16.33 | $41.56 | $14.85 | $40.08 |
| `xlarge` | 16 · 32 GB · 251 GB | $32.65 | — | $29.31 | — |

Prices are a month per sandbox. [Shared vCPUs](https://docs.froog.tech/sandboxes/#dedicated) are time on shared host cores; dedicated ones are physical cores of your own. `xlarge` is shared only.

**Resumable** (the default): the disk is kept when the sandbox stops, with hourly and at-stop [snapshots](https://docs.froog.tech/snapshots/), forks, restores and off-site copies. **Ephemeral**: never snapshotted, and a stop erases it, so it costs less. An ephemeral sandbox is one created with `froog new --ephemeral` (an alias of `--no-snapshots`; API `"snapshots": false`). It takes an ephemeral slot, or else a free resumable one; a resumable sandbox can't use an ephemeral slot.

### Your setup

Any account with a card can set up paid sandboxes.

```sh
$ froog billing capacity default=3 small:ephemeral=2 large:dedicated=1 default:dedicated:ephemeral=1   # the whole setup; omitted sizes are 0, "none" clears it
$ froog billing capacity                               # show it
```

API: `PUT /v1/billing/capacity {"slots": [{"size": "default", "count": 3}, {"size": "small", "disk": "ephemeral", "count": 2}, {"size": "large", "cpu": "dedicated", "count": 1}]}` (`disk` is `resumable` or `ephemeral`, default `resumable`); `GET /v1/billing` returns `capacity` and the prices in `rates` (`shared_usd`, `dedicated_usd`, `ephemeral_shared_usd`, `ephemeral_dedicated_usd`). Also the Billing page.

- **Adding** applies now; the rest of the month (UTC) is charged at once, prorated.

- **Removing** applies next month (`capacity.pending`).

- **Each month** the whole setup is charged at the start, wallet credit first. A failed charge marks it unpaid (`capacity.unpaid`, `owed_usd`): its sandboxes stop with disks saved and can't start (`402 capacity_unpaid`). It retries hourly and when you add a card. If your bank wants 3D Secure every time, pay with **Pay now** on the Billing page or `POST /v1/billing/capacity/pay`; adding slots then answers `402 authentication_required` with a link.

- More running than the setup holds: `402 capacity_full`. If a month starts with fewer slots than running, the newest extras stop.

- `froog new` without `--size` uses a free `default` slot, else any free slot, else the free lite.

- A setup must fit on the fleet (`409 no_capacity`); email [hello@froog.tech](mailto:hello@froog.tech) for more.

### The free lite

With a card on file, one `lite` sandbox runs free alongside your setup. Without a card: `402 card_required`; a second one: `429 limit_reached`. It's one per card, too: while a lite runs in another account or organization with the same card, `402 free_lite_in_use`. It's interruptible: when froog needs the room, the longest-running lite stops (disk saved, owner emailed); `froog start NAME` later. We may stop it or end the offer at any time; removing the card stops it.

### Card

`froog billing card` (API `POST /v1/billing/card`) opens Stripe Checkout; froog never sees the number. Adding a card charges nothing. The default card (the newest, or `PUT /v1/billing/cards/{id}/default`) pays the monthly charge and top-ups. Your only card can't be removed while a setup is billed (`409 card_needed`). Payments: Billing page or `GET /v1/billing/history`.

### Wallet (Seaeye)

A prepaid USD balance for usage-billed things only: [Seaeye CI](https://docs.froog.tech/seaeye/) job time ($0.0006 per vCPU-minute, per second), [120 fps desktops](https://docs.froog.tech/desktop/#desktop-fps) ($0.05 an hour while watched), [adaptive CPU](https://docs.froog.tech/sandboxes/#adaptive) above the floor ($0.003 per vCPU-hour) and extra saved snapshots.

```sh
$ froog wallet pay 20          # $5 to $10,000, whole dollars; turns on auto top-up at $20
$ froog wallet pay 20 --no-auto
$ froog wallet auto 50         # or: froog wallet auto off
$ froog wallet quote 500       # bonus: 2% from $200, up to 25% at $10,000
```

Auto top-up recharges that amount when the wallet drops below half of it ($3 minimum); a decline turns it off and emails you. Each CI runner needs an hour of job time in the wallet, counting the ones already running (`402 insufficient_balance`).

**When the wallet runs out** while it pays for something (CI jobs, adaptive CPU, extra saved snapshots), you get an email and **24 hours of grace**: running jobs finish and adaptive sandboxes keep growing. Then running CI jobs stop and adaptive sandboxes stay at their size's vCPUs, unless you owe more than a quarter of your setup's monthly price ($5 at least), which ends the grace sooner. Nothing is deleted and your setup keeps running. New CI jobs still need money up front. Saved snapshots past the included number get a week unpaid; then the newest ones past it are removed and you get an email (the ones you saved first stay).

### Spending cap

`froog billing cap 50` limits wallet spend per calendar month (`off` removes it; API `PUT /v1/billing/spend-cap {"usd": 50}`). Default $10,000. Email at 80%. At the cap CI runners stop and new ones get `402 spend_cap_reached`. Your setup isn't affected.

### Storage

- Stopped sandboxes keep their disk 14 days, free; we email you 3 days before it's deleted. Automatic snapshots are free, plus 10 saved snapshots; each extra is $1.50 a month from the wallet (`402 credit_required` unless the wallet holds a day of every extra one).

- Traffic, public URLs, the desktop and `/dev/kvm` are included.

- `froog billing` shows setup, wallet and usage; `froog usage [--month 2026-10]` breaks it down.

Start and CI-runner limits: [Limits](https://docs.froog.tech/limits/).

## Background commands

Long jobs and servers run in the background and survive your terminal disconnecting.

```sh
$ froog exec my-box --detach -- 'npm run build && npm test'
job_3f2a9c1d8e7b6a50
$ froog logs my-box job_3f2a9c1d8e7b6a50 -f    # follow; exits with its exit code
$ froog jobs my-box                            # running, exited, killed
$ froog kill my-box job_3f2a9c1d8e7b6a50       # and everything it started
$ froog exec my-box --timeout 0 -- ./long.sh   # stream to the end
$ froog exec my-box --cwd app -e NODE_ENV=test -- npm test
```

Output and exit code live in `~/.froog/jobs/` and survive a stop; processes don't (`lost`, or `paused` during a [warm resume](https://docs.froog.tech/snapshots/#warm)). Jobs don't hold off [auto-stop](https://docs.froog.tech/sandboxes/#auto-stop): `froog extend NAME --hours 8`. Each job is also in the [command history](https://docs.froog.tech/history/). `-e` values aren't recorded.

### One-off runs and pushing a folder

```sh
$ froog run -- npm test                       # new sandbox, this folder in ~/FOLDER, run, delete
$ froog run --from web-stack --size large -- make e2e
$ froog run --keep -- ./build.sh
$ froog push my-box                           # this folder to my-box:~/FOLDER
$ froog push my-box ../api --to src/api
```

`froog run` streams output and exits with the command's code. Its last stderr line: `exit 0 · 4m 12s · large · not billed · run-x7k2 deleted`. The sandbox has a 15-minute auto-stop the CLI keeps pushing back, so if `froog run` dies it's erased within 15 minutes. Ctrl-C deletes it. `--keep` leaves it until that auto-stop.

`froog push` uploads one archive over the API (up to 100 MiB compressed): in git, tracked and non-ignored files; elsewhere all but `.git`, `node_modules`, `target`, `.venv`, `dist`, `build` and the like. Same-named files are overwritten.

| `froog run` flag | Default | What it does |
| --- | --- | --- |
| `--push DIR` | this folder | Push it and run there |
| `--no-push` | off | Push nothing; run in `~` |
| `--cwd DIR` | pushed folder | Working directory |
| `--timeout SECS` | none | Stop and exit `124` |
| `-e`, `--env KEY=VALUE` | none | Variable; `KEY` alone copies it from this shell |
| `--from SAVED`, `--size` | `default` | Saved snapshot; size |
| `--no-env` | off | Skip your account's [environment](https://docs.froog.tech/environment/) |
| `--keep` | off | Keep the sandbox, snapshots on |
| `--json` | off | `{"type":"output",…}` lines, then a `summary` with `exit_code`, `elapsed_secs`, `deleted`, `kept` and more |

**Standard input.** Pipe or redirect into `froog exec`:

```sh
$ froog exec my-box -- python3 - < script.py
$ git diff | froog exec my-box --cwd app -- git apply
$ froog exec my-box --detach -- ./import.sh < rows.csv
```

Up to 1 MiB (`413 stdin_too_large`); upload a file for more. A pipe silent for 3 seconds is ignored. `--no-stdin` skips it. API: `stdin` or `stdin_b64` on `POST /exec` and `POST /jobs`.

**Writing to a running job.** Start it with `--stdin-open`:

```sh
$ froog exec my-box --detach --stdin-open -- python3 -i
$ froog stdin my-box job_3f2a9c1d8e7b6a50 'print(6 * 7)'   # adds a newline
$ cat more.py | froog stdin my-box job_3f2a9c1d8e7b6a50
$ froog stdin my-box job_3f2a9c1d8e7b6a50 --close         # end of file
```

API: `stdin_open: true` on `POST /jobs`, then `POST /jobs/{id}/stdin {data?, data_b64?, close?}`, up to 1 MiB per call. Errors: `409 stdin_blocked` (the command isn't reading; 30 s), `stdin_not_open`, `stdin_closed`, `job_ended`.

## Command history

Every command run through `froog exec` or the API is recorded: text, mode, status, exit code, times and output. Kept 90 days, readable while the sandbox is stopped, deleted with the sandbox. Dashboard: **History** on a sandbox.

```sh
$ froog history my-box
cmd_4b1e0c9a7d2f3e18  exit 0      detached  2026-11-10 14:02:11  npm run build
$ froog history my-box cmd_4b1e0c9a7d2f3e18             # stdout; --stderr, --follow
$ froog history my-box --mode detached                  # sync, stream or detached
$ froog ps my-box                                       # live processes, busiest first
$ froog ps my-box --history --since 6h                  # top-12 samples every 30 s, kept 7 days
$ froog ps my-box --records --running                   # every process seen, incl. SSH and services
```

| Status | `running`, `paused`, `exited`, `timed_out`, `failed`, `killed`, `lost` |
| --- | --- |
| Output | Up to 1 MiB per stream for waiting commands, 8 MiB for background ones (copied every 30 s) |
| Cap | 10 MiB compressed per account per hour; beyond that, `output_truncated` |

API reads return up to 1 MiB from `offset`; repeat from `next_offset` until `done`. `encoding=base64` for binary.

Process samples: `GET /v1/sandboxes/{name}/processes/samples`. Process records (`{pid, ppid, user, command, started_at, last_seen_at, ended_at}`, kept 72 hours): `…/processes/records`. Records come from 30-second checks, so short-lived processes can be missed, and they have no output or exit codes. Neither is kept with [monitoring off](https://docs.froog.tech/data/).

A command killed for running out of memory has `oom_killed: true`; the sandbox stays up. A larger size has more memory.

## Public URLs

Give a port in a sandbox an HTTPS address:

```sh
$ froog host my-box 3000
https://my-box-3000-k7f2qx.froogusercontent.com/?_token=pt_9c1e…
$ froog host my-box 3000 --public              # no token
$ froog host my-box 3000 --subdomain acme-demo  # https://acme-demo.froogusercontent.com
$ froog host my-box 3000 --title "API docs"
$ froog host my-box                             # list
$ froog host my-box 3000 --rm
$ froog new web --host 3000:public              # at create; PORT alone is private
```

- The service may listen on `localhost` or `0.0.0.0`. Websockets work. Traffic doesn't hold off [auto-stop](https://docs.froog.tech/sandboxes/#auto-stop).

- The URL survives stop, start and restore. While stopped, visitors see a notice, or it [auto-starts](https://docs.froog.tech/sandboxes/#auto-start).

- **Private** (default): the `_token` becomes a `__Host-froog_url` cookie on first visit. Scripts send that cookie or an `X-Froog-Url-Token` header. Treat the link like a password; re-host the port to rotate the token. Use `--public` for iframes.

- `--public` also opens the port on the sandbox's IPv6 address ([Network](https://docs.froog.tech/network/)).

- `--subdomain`: 3-40 lowercase letters, digits, hyphens (`409 subdomain_taken`); the old address stops working.

- The first visit to a new address takes a few seconds for its certificate.

**Wait for a port.** `froog wait my-box --port 3000 --timeout 2m` returns once something listens, or exits 1 (default 60 s, max 10 min). API: `POST /sandboxes/{name}/wait {port, timeout_secs?}` → `{port, ready, waited_ms}`; needs `sandbox.read`.

**A token per viewer.** Give each viewer a token that expires (default 1 day, 60 s to 30 days) and can be revoked alone:

```sh
$ froog url-token create my-box 3000 --ttl 2h --label alice
https://my-box-3000-k7f2qx.froogusercontent.com/?_token=pvt_51d0…
$ froog url-token list my-box 3000
$ froog url-token revoke my-box 3000 utk_…
```

Checked on every request. API: `POST /sandboxes/{name}/urls/{port}/tokens {ttl_secs?, label?}` (secret shown once), `GET`, `DELETE …/tokens/{id}`. Public URLs have none (`409 url_public`); making a URL public or removing it deletes them.

## Snapshots & forks

A snapshot is a copy of the sandbox's whole disk.

- **Automatic:** every hour while running, and at stop. The 3 newest are kept. Free.

- **Saved:** kept until you delete them.

```sh
$ froog snapshot my-box --name before-upgrade   # save
$ froog snapshots my-box                        # list
$ froog fork my-box@before-upgrade my-box-2     # new sandbox from a snapshot
$ froog fork my-box try --count 5               # try-1 … try-5
$ froog restore my-box@before-upgrade           # roll back in place (snapshots the current state first)
```

The [dashboard](https://dash.froog.tech/)'s **Snapshots** view shows a timeline with forks. In the API, a forked sandbox has `forked_from`.

### Saved snapshots as templates

A saved snapshot belongs to your account and outlives its sandbox. Install your stack once, then start many sandboxes from it.

```sh
$ froog snapshot my-box --name web-stack
$ froog new app --from web-stack --count 5   # app-1 … app-5, same OS and size unless --size
$ froog snapshots                            # your saved snapshots (--all: every snapshot)
$ froog snapshots --rm web-stack
$ froog snapshot my-box --delete-auto        # delete its automatic snapshots
```

- Names are unique per account. Saving a name again replaces it; existing sandboxes don't change. In an organization only the creator, an owner or an admin can replace it (`403 saved_snapshot_name_taken`).

- New sandboxes get your current [environment](https://docs.froog.tech/environment/) (unless `--no-environment`), not the source's settings.

- 10 saved snapshots are included; each extra one is $0.056 a day from the [wallet](https://docs.froog.tech/pricing/#wallet). A new name past the included ones needs a day of every extra one in the wallet, else `402 credit_required`. Share-code copies and Seaeye caches count too.

### Share a saved snapshot with another account

```sh
$ froog snapshot share web-stack              # prints the code once: fsh_…
$ froog snapshot shares web-stack             # its codes and uses
$ froog snapshot unshare web-stack shr_…      # revoke one
$ froog new app --from fsh_…                  # the other account
```

- Only a hash is stored. Up to 20 live codes per snapshot. A revoked or unknown code: `404 share_code_invalid`.

- The code follows the newest save of that name from the same sandbox. Saving the name from another sandbox, deleting it, or `unshare` revokes its codes.

- The recipient gets their own copy (marked `shared`). It stays after you revoke, bills as their saved snapshot, and can't be re-shared.

- Their sandbox starts without their [environment](https://docs.froog.tech/environment/), since your disk could read their secrets. `--environment NAME` opts in; only for disks you trust.

- Before it runs, froog [removes your logins](https://docs.froog.tech/environment/#scrub), your environments' secret files and cloned repos. Everything else on the disk is shared, so keep no other secrets there.

- API: `POST · GET /saved-snapshots/{name}/shares`, `DELETE …/shares/{id}`, `POST /sandboxes {"from": "fsh_…"}`. All need `snapshot.write`.

### Look inside a snapshot

Browse and download files without starting anything.

```sh
$ froog snapshot ls web-stack                    # a saved snapshot's ~
$ froog snapshot ls my-box@latest app/src        # SANDBOX@id, label or latest
$ froog snapshot pull web-stack ~/app -o ./app
$ froog snapshot pull my-box@before-upgrade /etc/nginx/nginx.conf
```

Relative paths are under `~`. Symlinks pointing outside are skipped. Only ext4 and XFS disks (Omarchy is btrfs: `501 not_supported`). API: `GET /sandboxes/{name}/snapshots/{snap}/files?path=P`, `GET /saved-snapshots/{name}/files?path=P`, plus `…/files/download`; needs `snapshot.read` and `file.read`.

### Stops and disks

`froog stop` snapshots the disk and deletes the VM; `froog start` brings it back. The SSH address can change.

**A stopped sandbox keeps its disk for 14 days** (`disk_expires_at`). After that, `start` and `fork` fail with `snapshot_data_expired`. We email you 3 days before. Start the sandbox (stopping it again restarts the 14 days) or save a snapshot to keep it: saved snapshots never expire.

**Warm resume.** For up to 4 hours after a stop, the VM stays paused in memory, so `froog start` resumes in about a second with programs still running. Billing still stops. It can end sooner if the host needs memory (`warm_until` in `froog info`). Don't rely on it: save state to disk.

**Full host.** If the host holding a snapshot has no room, froog copies the disk to another host first. The start takes longer; `progress` shows the copy.

### Start times

The [status page](https://froog.tech/status/) shows median and 95th-percentile start times for the last 7 days (API: `start_times` in `GET /v1/status`). Targets (95th percentile, to SSH-ready):

| What | Target |
| --- | --- |
| New Ubuntu 24.04, default size (pre-booted VM) | 3 s (typically under 1 s) |
| New sandbox, anything else | 45 s |
| Start a stopped sandbox | 45 s |
| Warm resume | 3 s |
| Fork | 60 s |

Not included: a disk copy between hosts, and [environment](https://docs.froog.tech/environment/) setup, which runs after the sandbox is `running`.

## Coding agents

`froog prompt` gives a task to a coding agent in the sandbox and streams its work (text on stdout, tool calls on stderr) until the turn ends:

```sh
$ froog prompt my-box "make the failing tests pass"
$ froog prompt my-box "now add a test for the edge case"      # same conversation: it remembers
$ froog prompt my-box "add a /health endpoint" --agent codex --new
$ froog prompt my-box "review the diff" --model opus --effort high --fast
$ froog prompt my-box "why does this crash?" --attach error.png --attach trace.log
$ froog prompt --list-models                                   # models, effort levels, fast mode per harness
```

Ten harnesses are installed in every sandbox. `--model` and `--effort` pass straight to the harness. API: `GET /v1/provider-models` (no key needed).

| `--agent` | Harness | Key or login | `--model` · `--effort` |
| --- | --- | --- | --- |
| `claude` (default) | Claude Code | `ANTHROPIC_API_KEY`, `CLAUDE_CODE_OAUTH_TOKEN`, a [subscription](https://docs.froog.tech/agents/#subscriptions) or a login | yes · `low` … `max` |
| `codex` | OpenAI Codex | `OPENAI_API_KEY`, a [subscription](https://docs.froog.tech/agents/#subscriptions) or a login | yes · `minimal` … `xhigh` |
| `gemini` | Gemini CLI | `GEMINI_API_KEY` or a Google login | yes · no |
| `opencode` | OpenCode | your provider's key | yes (`provider/model`) · no |
| `pi` | pi | your provider's key | yes · `off` … `max` |
| `amp` | Amp | `AMP_API_KEY` | no · no |
| `cursor` | Cursor CLI | `CURSOR_API_KEY` | yes · no |
| `prime` | Prime Agent | your provider's key (e.g. `PRIME_API_KEY`) | yes · `off` … `max` |
| `kimi` | Kimi Code | `MOONSHOT_API_KEY` or `kimi login` | yes · `low` … `max` |
| `mistral` | Mistral Vibe | `MISTRAL_API_KEY` or `vibe --setup` | yes · no |

Without a key or login the prompt is refused with `400 provider_not_configured`. Set keys once as [variables](https://docs.froog.tech/env/) and every sandbox has them:

```sh
$ froog env set ANTHROPIC_API_KEY      # prompts for the value
$ froog env set OPENAI_API_KEY
```

Or connect a [subscription](https://docs.froog.tech/agents/#subscriptions), or log in once inside (`froog ssh my-box`, run `claude`). That login stays on the disk through restarts and forks.

**Fast mode.** `--fast` (API `fast: true`) uses the provider's faster, pricier tier. Unsupported models answer `400 fast_mode_not_supported`.

### Conversations

A prompt continues the sandbox's most recent conversation. `--new` starts another; `--conversation ID` picks one. Each prompt prints its conversation id first.

```sh
$ froog conversations my-box                                 # list
$ froog conversations my-box conv_3f9a…                      # its turns; --delete removes it
$ froog prompt my-box --conversation conv_3f9a… --agent codex "take it from here"
```

- One turn at a time per conversation; up to 4 conversations run at once per sandbox. Extra prompts are `queued`. Statuses: `queued`, `running`, `done`, `failed`, `interrupted`.

- Switching harness hands the new one the earlier turns (up to 16 KB).

- Conversations survive stop, start and fork. A running prompt holds off [auto-stop](https://docs.froog.tech/sandboxes/#auto-stop).

- `--timeout` per turn: default 3600 s, max 21600. Ctrl+C stops following, not the agent.

**Steer and interrupt.** `froog steer my-box "skip the integration tests"` (API `POST /steer`) messages the running turn. Claude Code takes it mid-turn (mode `native`); other harnesses get it as the next turn (mode `queued`). Nothing running: `409 no_running_turn`. `froog interrupt my-box` (API `POST /interrupt`) stops running turns and cancels queued ones; `--conversation ID` for one. Files and memory stay.

**Events.** `froog events my-box --follow` streams what agents do. Types: `status`, `text`, `tool_call`, `tool_result`, `steer`, `log`, `error`; each has an increasing `id`, `prompt_id`, `conversation_id`. API: `GET /v1/sandboxes/{name}/events` or `/prompts/{id}/events`, as JSON pages (`cursor`), SSE (`Accept: text/event-stream`, resumable with `Last-Event-ID`) or NDJSON. Kept 90 days; with [monitoring off](https://docs.froog.tech/data/) only status changes are stored.

**Attachments.** `--attach FILE` (API `attachments: [{name, content_b64}]`): up to 12 files, 25 MB each, 64 MB total. Saved to `~/attachments/<prompt id>/`, with paths added to the prompt.

**From code.** `POST /v1/sandboxes/{name}/prompts` queues and answers `202` (`id`, `conversation_id`); poll `GET /prompts/{id}` until `done` (`result`, or `error_code`). `POST /v1/sandboxes/{name}/prompt` waits and returns the answer in `stdout`. Both take `prompt`, `agent`, `model`, `effort`, `fast`, `new`, `conversation_id`, `attachments`, `timeout_secs`. SDKs: `sandbox.prompt`, `queue_prompt`, `watch_prompt`, `steer`, `interrupt`.

### Subscriptions

Run Claude Code on a Claude Pro/Max plan and Codex on a ChatGPT plan instead of API keys. Dashboard **Agents** > **Sign in**, or:

```sh
$ froog subscriptions login claude --sandbox my-box     # or chatgpt; runs the vendor's sign-in there
$ froog subscriptions logout claude
```

froog runs the vendor's own sign-in in a running sandbox and stores the result encrypted: Claude as `CLAUDE_CODE_OAUTH_TOKEN` (valid a year), ChatGPT as the secret file `~/.codex/auth.json`. Every sandbox gets it at its next start. froog only shows links to the vendor's hosts and only stores a credential of the vendor's format; the sign-in times out after 15 minutes. Logged in the [audit log](https://docs.froog.tech/audit/).

Your plan's terms and usage limits apply. Anyone with a shell in a sandbox can read these credentials, so keep them out of shared sandboxes (`--no-environment`). They are never [proxied](https://docs.froog.tech/ai-proxy/). API: `GET /v1/subscriptions`, `POST /v1/subscriptions/{claude|chatgpt}/login {sandbox}`, `POST …/login/code`, `DELETE /v1/subscriptions/{provider}`.

### Computer use

Every harness gets an MCP server named `computer` that sees and drives the sandbox's Linux desktop. Watch with `froog desktop`:

```sh
$ froog prompt my-box "open example.com in Chrome and tell me the page title"
```

| Look | `screenshot`, `get_window_state`, `get_screen_size`, `list_windows` |
| --- | --- |
| Point and type | `click`, `double_click`, `right_click`, `move_cursor`, `drag`, `scroll`, `type_text`, `press_key`, `hotkey`, `set_value` |
| Apps and windows | `launch_app`, `kill_app`, `bring_to_front`, `set_window_frame`, `invoke_menu`, `close_window` |
| Browser | `browser_navigate`, `get_browser_state`, `browser_click`, `browser_type`, `browser_download` |
| Clipboard | `clipboard_read`, `clipboard_write` |

The desktop starts on first use. All agents on a sandbox share one screen: give parallel GUI tasks their own sandboxes. Screenshots are big in context; prefer `get_browser_state` or `get_window_state`, which return text. The server is `~/.froog/computer/mcp.py`; froog rewrites only the `computer` entry in each harness's config at start. Prime Agent calls it from Python (`await mcp.call_tool("computer", "screenshot", {})`); Mistral Vibe names the tools `computer_screenshot` etc.

**The browser.** Browser tools drive Chrome over CDP on `127.0.0.1:9222` with its own profile, `~/.config/froog-chrome`, so sign-ins survive stops and forks. `get_browser_state` lists the page's links, buttons and fields with numbers; `browser_click` and `browser_type` take a number, CSS selector or visible text. They work with Chrome behind other windows. `browser_download` saves to `~/Downloads` with the browser's cookies. The port is unreachable from outside, but any program in the sandbox can use it and its sign-ins.

**Accessibility tree.** `get_window_state` returns a window's screenshot plus its AT-SPI tree, each element with a ref like `0.3.1` (`screenshot: false`, `max_nodes` default 300). `click` with a `ref`, `set_value` and `invoke_menu` need no focus or coordinates. GTK, Qt and LibreOffice have trees; Chrome/Electron only with `--force-renderer-accessibility`; Wine none.

**Input without focus.** Pass a `window` to click/type tools to raise it for the action and restore focus after. `"delivery_mode": "background"` sends X11 synthetic events without raising it, but many apps (Chrome, Firefox, GTK, terminals) ignore those: check with a screenshot. Not available on Omarchy (Wayland). Browser tools and accessibility refs always work without focus.

**Android.** On an [Android sandbox](https://docs.froog.tech/android/) the server adds `phone_*` tools: `phone_state` first (screenshot and UI tree), then `phone_tap`, `phone_swipe`, `phone_type`, `phone_key`, `phone_launch`, `phone_open_url`, `phone_install`, `phone_apps`.

### Customize the agents

Harnesses read their config from the sandbox home; `froog prompt` runs from `~`. froog adds a `froog` skill, a short headless system prompt (Claude Code, pi, Prime Agent) and the `computer` server. You add the rest:

| Harness | House rules | MCP servers | Skills |
| --- | --- | --- | --- |
| Claude Code | `~/CLAUDE.md` | `claude mcp add --scope user NAME -- CMD` | `~/.claude/skills/` |
| Codex | `~/AGENTS.md` | `codex mcp add NAME -- CMD` | `~/.codex/skills/` |
| Gemini CLI | `~/GEMINI.md` | `~/.gemini/settings.json` | `~/.gemini/skills/` |
| OpenCode | `~/AGENTS.md` | `~/.config/opencode/opencode.json` | `~/.config/opencode/skills/` |
| pi | `~/AGENTS.md` | `pi mcp add NAME -- CMD` | `~/.pi/agent/skills/` |
| Prime Agent | `~/AGENTS.md` | `prime-agent mcp add NAME -- CMD` | `~/.prime/agent/skills/` |
| Kimi Code | `~/AGENTS.md` | `~/.kimi-code/mcp.json` | `~/.kimi-code/skills/` |
| Mistral Vibe | `AGENTS.md` in a trusted repo | `~/.vibe/config.toml` | `~/.vibe/skills/` |
| Amp, Cursor | `~/AGENTS.md` | see their docs | `~/.agents/skills/` (Amp) |

To give every new sandbox the same rules, add them as account [secret files](https://docs.froog.tech/environment/) (register MCP servers in the setup script):

```sh
$ froog environment add-file AGENTS.md ./house-rules.md
$ froog environment add-file CLAUDE.md ./house-rules.md
```

`froog forward NAME PORT --reverse` exposes a port on your computer at `127.0.0.1:PORT` inside the sandbox while it runs, e.g. for a local MCP server or model. It reconnects if the sandbox restarts.

```sh
$ froog forward my-box 7777 --reverse     # leave running
$ froog exec my-box -- 'claude mcp add --scope user mine --transport http http://127.0.0.1:7777/mcp'
$ froog forward my-box 11434 --reverse    # Ollama
```

Or run the agent on your own machine and give it the sandbox as a tool: `froog exec` and the API return stdout, stderr and the exit code.

## Environment variables

Account variables reach every sandbox: shells, `froog exec`, background commands and agent prompts.

```sh
$ froog env set ANTHROPIC_API_KEY             # prompts for the value
$ echo "$DATABASE_URL" | froog env set DATABASE_URL
$ froog env list                             # names and masked previews
$ froog env rm DATABASE_URL
```

Values are encrypted at rest and never shown again. They're written to `~/.froog/env` at each start (login shells load it; systemd services don't). Changes reach running sandboxes on their next start. Up to 50 variables, 16 KiB total.

### A sandbox's own variables

```sh
$ froog new box -e KEY=VALUE -e OTHER   # -e KEY copies from your shell
$ froog fork box box-2 -e KEY=VALUE     # forks keep them; add or override
```

API: `"env": {"KEY": "VALUE"}`. They override account variables and survive `--no-environment`, so a platform can give each user's sandbox their own keys and none of yours. Names show in `froog info`; values never do.

## AI credentials & proxy

A **credential profile** is a named set of AI provider keys and custom APIs, with several accounts per provider. With the **AI proxy** on (off by default), sandboxes get placeholder keys; the real keys stay encrypted on froog, which forwards requests.

```sh
$ echo "$ANTHROPIC_API_KEY" | froog ai key-add anthropic       # into the default profile
$ echo "$ANTHROPIC_KEY_2" | froog ai key-add anthropic         # second account, used when the first runs out
$ froog ai proxy on                                            # sandboxes started from now on get placeholders
$ froog ai usage                                               # requests, tokens, estimated cost per sandbox
$ froog ai block my-box                                        # refuse its AI requests at once
```

### Credential profiles

Each account has a profile named `default`. A sandbox uses the profile its [environment](https://docs.froog.tech/environment/#environments) names (`froog ai env ci ci-bots`), else the default. `froog ai use my-box ci-bots` overrides one sandbox (proxied requests switch at once, variables at next start). The API never returns a key, only its provider, last four characters and id.

```sh
$ froog ai profile-new ci-bots --copy-from default
$ echo "$OPENAI_API_KEY" | froog ai key-add openai --profile ci-bots
$ echo "$STRIPE_KEY" | froog ai key-add STRIPE_KEY --base-url https://api.stripe.com --profile ci-bots
$ echo "$ACME_KEY" | froog ai key-add ACME_KEY --base-url https://api.acme.dev --secret-header X-Api-Key
$ froog ai profiles
$ froog ai key-rm cred_0123456789abcdef --profile ci-bots
$ froog ai profile-set ci-bots --default
```

| Provider | The sandbox gets |
| --- | --- |
| `anthropic` | `ANTHROPIC_API_KEY`, `ANTHROPIC_BASE_URL` |
| `openai` | `OPENAI_API_KEY`, `OPENAI_BASE_URL` |
| `gemini` | `GEMINI_API_KEY`, `GOOGLE_GEMINI_BASE_URL` |
| `deepseek`, `mistral`, `openrouter`, `xai` | `NAME_API_KEY`, `NAME_BASE_URL` |
| `bedrock` | `AWS_BEARER_TOKEN_BEDROCK`, `ANTHROPIC_BEDROCK_BASE_URL`, `AWS_REGION` (+ `CLAUDE_CODE_USE_BEDROCK=1` without an Anthropic key) |
| a custom API | `NAME`, `NAME_BASE_URL` |

- The CLI reads the key from stdin if omitted. One token, up to 8192 printable characters.

- Bedrock takes a Bedrock API key or `ACCESS_KEY_ID:SECRET_ACCESS_KEY[:SESSION_TOKEN]`, plus `--region` (default `us-east-1`).

- A custom API: name of A-Z, 0-9, `_` (provider prefixes and `*_BASE_URL` are `400 reserved_name`); public `https://` base URL. Its secret goes only where you say: `Authorization: Bearer` by default, or `--secret-header`, `--secret-prefix`, `--secret-query`.

- Up to 20 profiles, 50 keys each. A default or in-use profile can't be deleted (`409 is_default`, `409 in_use`).

- Provider keys set with [`froog env`](https://docs.froog.tech/env/) count as the last account in every profile, so the proxy hides them too (unless you also set their base URL). A sandbox's own `-e` variables are never proxied. `--no-environment` gets no AI credentials.

- Without the proxy, a sandbox gets the real key of the account in use.

### Several accounts per provider

The proxy uses the first account that isn't resting. On a limit it rests that account and retries the next at once: `429` for its `Retry-After` (default 60 s); `402` or a quota error code (`insufficient_quota`, `credit_balance_too_low`, …) for an hour. Error message text is ignored. `froog ai profiles` shows which accounts rest and why; `froog ai switch cred_…` puts one first. Switching needs the proxy.

### The proxy

```sh
 sandbox                                  froog                                 provider
 ANTHROPIC_API_KEY=froog-ph-…
 ANTHROPIC_BASE_URL=https://ai.froog.tech/anthropic
 agent ── request + placeholder ──▶  placeholder of a running sandbox?
                                      blocked?  swap in the real key ── request ──▶  api.anthropic.com
       ◀────── answer, streamed ────  count the tokens ◀──────────── answer ──────
```

`froog ai proxy on` (needs `account.admin`) applies at each sandbox's next start; `froog ai proxy` shows state and URL.

- Placeholders are per sandbox, worthless outside froog, and renewed at each start. A process holding an old one gets `401 ai_placeholder_invalid`.

- Each key goes only to its own provider, in its key header. A placeholder elsewhere in a request is stripped; in the path it's `400 ai_placeholder_in_path`. A custom API's base URL sees its secret: pick one you trust.

- Built-in providers accept only model endpoints (messages, chat/completions, responses, embeddings, models, Gemini `generateContent` etc., Bedrock `invoke`/`converse`); others are `403 ai_path_not_allowed`. Custom APIs take any path.

- Answers stream unbuffered. Limits: 16 MiB per request, body within 60 s, 16 concurrent requests per sandbox and 64 per account.

- Answers are sandboxed against browsers (minimal headers, strict CSP); browser requests are `403 ai_browser_refused`.

- froog never logs prompts, answers or keys: only provider, status and sandbox.

- [Subscription](https://docs.froog.tech/agents/#subscriptions) credentials pass through unproxied. `froog ai proxy on --withhold-subscriptions true` keeps them out of proxied sandboxes.

Proxy errors are JSON `{"error": {"code", "message"}}`: `400 ai_placeholder_in_path`, `401 ai_placeholder_missing` / `ai_placeholder_invalid`, `403 ai_blocked` / `ai_path_not_allowed` / `ai_browser_refused`, `404 ai_no_credential` / `ai_unknown_provider`, `408 request_timeout`, `413 request_too_large`, `429 ai_too_many_requests` / `ip_rate_limited` / `account_rate_limited`, `502 ai_upstream_unreachable`. Anything else is the provider's answer.

### Usage

froog counts requests, errors and tokens (input, output, cache reads and writes) per proxied sandbox, day and model. `cost_usd` is an estimate at list prices, not a froog charge. Kept 400 days.

```sh
$ froog ai usage --days 7          # every sandbox, most expensive first
$ froog ai usage my-box            # per day and model
```

### Block a sandbox

`froog ai block my-box` refuses its AI requests at once (`403 ai_blocked`); `--all` blocks every proxied sandbox. Anyone who may update the sandbox can block it, including its in-sandbox key. Unblocking or changing its profile needs an unrestricted `environment.write` or `account.admin` key (and owner/admin in an org), so a sandbox can't unblock itself. There is no automatic AI spend cap: poll `GET /v1/sandboxes/{name}/ai` and block past your limit.

API: `/v1/ai/proxy`, `/v1/ai/profiles[/{profile}[/credentials[/{id}[/active]]]]`, `PUT /v1/ai/environments/{env}`, `GET /v1/ai/usage`, `GET`/`PUT /v1/sandboxes/{name}/ai`. Changes appear in the [audit log](https://docs.froog.tech/audit/), never with a key.

## Repos, secret files & setup

Besides [variables](https://docs.froog.tech/env/), your environment sets what every new sandbox starts with: GitHub repos in `~`, secret files, and setup scripts.

```sh
$ froog environment add-repo https://github.com/you/app        # optionally #branch
$ froog environment add-file app/.env ./app/.env              # or pipe on stdin
$ echo 'npm ci' | froog environment repo-setup app -         # runs in ~/app after the clone
$ echo 'docker compose up -d' | froog environment setup -    # runs in ~
$ froog environment show
```

At every start (create, start, fork, restore), secret files are written (mode 600) before the sandbox is `running`. Then a [background job](https://docs.froog.tech/jobs/) clones missing repos, runs each repo's setup, then the setup script. The script runs every start, so make it idempotent. Check it with `froog jobs box` and `froog logs box JOB`; `setup_status` in `froog info` is `none`, `running`, `done` or `failed` (with `setup_error`).

**Private repos:** [connect GitHub](https://docs.froog.tech/github/) (short-lived token per sandbox), set a `GH_TOKEN` variable, or add a `.git-credentials` secret file. SSH URLs need a key as a secret file (`.ssh/id_ed25519`).

### Per sandbox

```sh
$ froog new box --file app/.env=.env                         # one sandbox's file (up to 20, 1 MiB)
$ froog new pr-42 --repo https://github.com/you/app#pr-42    # one sandbox's repo, in ~/app (--repo-dir)
$ froog new box --setup-file setup.sh                        # runs once, after first boot
$ froog new box --no-environment                             # none of your variables, repos, files, scripts or froog key
```

Per-sandbox files win over secret files with the same path. A `--repo` is cloned even with `--no-environment`; API: `"repo": {"url", "branch"?, "dir"?}`. Tokens in the URL are refused; pass `-e GH_TOKEN=…`. Forks don't redo any of these (the disk has them). Use `--no-environment` for untrusted code or people; its forks get nothing either.

### Removing your logins

When a sandbox starts without the environment from a disk that had it (`fork`, `start` or `new --from` with `--no-environment`), or from a [share code](https://docs.froog.tech/snapshots/#share), froog first deletes these. If that fails, the start fails.

- git/GitHub: `~/.config/gh`, `~/.git-credentials`, `~/.config/git/credentials`, `~/.config/hub`, `credential` sections of `~/.gitconfig`.

- SSH: all of `~/.ssh` except `authorized_keys` and `known_hosts*`.

- Coding agents: Claude Code (`~/.claude/.credentials.json`, login keys in `~/.claude.json`), Codex, Kimi Code, Mistral Vibe, Gemini, opencode, Amp, pi, Cursor, GitHub Copilot, aider credentials.

- Registries: `.npmrc`, `.yarnrc.yml`, `.pypirc`, `.netrc`, Cargo and gem credentials, `.docker/config.json`.

- Clouds: AWS credentials and SSO cache, gcloud and Azure tokens, `~/.kube`, Vault, Terraform, 1Password CLI, Hugging Face tokens.

- froog's key and `~/.froog/env`; shell and REPL history.

- All of the above under `/root`.

- Every secret file any of your environments ever had, `~/.froog/setup`, and (for share codes) your environments' repo directories.

- Old cloud-init data and logs, and system logs.

Files are overwritten before deletion and free space is trimmed, so root in the sandbox can't recover them. The sandbox gets a new SSH host key. Your variables never reach it. Later starts of it don't scrub again.

### Several environments

Your account starts with `default`. Make more for different kinds of sandboxes and pick one per sandbox.

```sh
$ froog environment create ci --copy-from default    # or empty
$ froog environment add-file ci .npmrc ./ci.npmrc    # or --env ci; default env if omitted
$ froog new job-1 --environment ci
$ froog environment list
$ froog environment default ci                       # used when a sandbox names none
$ froog environment rename ci jobs
$ froog environment rm jobs
```

- Names: 1–40 lowercase letters, digits, dashes. Up to 20 environments.

- Account variables go to every environment.

- Deleting one leaves its sandboxes running. The default can't be deleted (`409 environment_is_default`).

- API: `/environments`, `/environments/{env}`, `/environments/{env}/files`; `environment_name` on `POST /sandboxes`.

### Versions and upgrades

Every change makes a new, immutable version. A sandbox stays on its version until you move it.

```sh
$ froog environment versions ci
$ froog environment upgrade ci            # all of ci's sandboxes to latest
$ froog environment upgrade ci --sandbox job-1
$ froog start job-2 --environment default # switch environment
```

- Upgrades apply at once to running sandboxes (files rewritten, dropped files deleted, setup rerun); stopped ones at next start. API: `POST /environments/{env}/upgrade`.

- A fork keeps its source's version. A sandbox from a saved snapshot gets the latest.

- The last 50 versions are kept, plus any still in use.

Secret files and scripts are encrypted at rest; file contents are never shown again. Limits: 20 repos, 50 files (64 KiB each, 1 MiB total), 64 KiB per script. The [dashboard](https://dash.froog.tech/) edits all of it.

## GitHub

Connect GitHub to clone private repositories without a pasted token. froog uses a GitHub App: you pick the repositories, and each sandbox gets a one-hour token for only those.

```sh
$ froog github connect                      # install the app, pick repositories
$ froog github                              # linked accounts, what the token reaches
$ froog github repos                        # repositories the app sees
$ froog github token-repos acme/api acme/web  # limit the sandbox token (none: all)
$ froog environment add-repo https://github.com/acme/api
$ froog github disconnect 4242              # unlink an installation
```

Open the connect link in a browser signed in to the dashboard with the same account. froog checks you manage the installation (your account, or an org you own). Uninstalling the app on GitHub unlinks it.

**In each sandbox** with your environment, `git` and `gh` work with no setup. The git credential helper refreshes the token automatically; the `gh` login holds the token from the last start. The token has contents, pull requests, issues and workflows (read/write) and metadata (read). It never has Administration. Tokens are stored encrypted. Sandboxes created with `--no-environment` and [CI jobs](https://docs.froog.tech/seaeye/) get no GitHub token.

API: `GET /github`, `POST /github/connect`, `GET /github/repos`, `PUT /github/token-repos`, `DELETE /github/installations/{id}`. Reading needs `account.read`, changes `account.admin`. No installation: `404 github_not_connected`.

## Seaeye: CI

[froog Seaeye](https://seaeye.sh/) runs your CI two ways:

| Way | Setup | Use it when |
| --- | --- | --- |
| [GitHub Actions runners](https://docs.froog.tech/seaeye/#seaeye-runners) | Connect GitHub, change `runs-on` | Your CI is GitHub Actions |
| [The CLI from any CI](https://docs.froog.tech/seaeye/#seaeye-cli) | An API key and `froog run` | GitLab CI, CircleCI, Buildkite, or one step of a GitHub job |

### GitHub Actions runners: `runs-on: seaeye`

Each job gets a fresh VM with Docker, deleted when the job ends. [Connect GitHub](https://docs.froog.tech/github/), then change `runs-on`:

```sh
jobs:
  test:
    runs-on: seaeye          # was: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: npm ci && npm test
```

| Label | Sandbox | Per minute |
| --- | --- | --- |
| `seaeye-small` / `seaeye-2vcpu` | 2 vCPU, 4 GB | $0.0012 |
| `seaeye` / `seaeye-4vcpu` | 4 vCPU, 8 GB | $0.0024 |
| `seaeye-large` / `seaeye-8vcpu` | 8 vCPU, 16 GB | $0.0048 |
| `seaeye-xlarge` / `seaeye-16vcpu` | 16 vCPU, 32 GB | $0.0096 |

Billing is $0.0006 per vCPU per minute of job time, per second, from your [wallet](https://docs.froog.tech/pricing/#wallet). Boot, runner setup and cache saves aren't billed. A kept `debug` VM is billed at the same rate.

Options go after the size with `/`:

```sh
runs-on: seaeye-large/from=ci-base/cache=deps/debug
# from=NAME   start from a saved snapshot
# cache=NAME  warm disk kept between jobs (snapshot cache-NAME)
# debug       keep the VM 30 minutes after a failed job, for froog seaeye ssh
```

**`cache=NAME`.** The job starts from snapshot `cache-NAME` if it exists. A successful push, schedule or manual run on the default branch saves its disk back. Pull requests read but never write it; fork PRs don't read it. Use `clean: false` on `actions/checkout` to keep build outputs. Before saving, froog scrubs credentials (docker, git, gh, npm, pypi, netrc, cloud CLIs, kube, cargo, gem, SSH keys), shell histories, the runner's `_temp` and logs, the checkout token and `/tmp`. An executable `~/.froog/cache-scrub` runs first for anything else. If scrubbing fails, nothing is saved. Don't use `cache=` on jobs with deployment secrets. A cache counts as a [saved snapshot](https://docs.froog.tech/snapshots/); `froog seaeye caches --rm NAME` resets it.

A label with an unknown size or option is refused. Each job's log shows its VM and the `froog seaeye ssh` command. A runner takes one job; CI VMs are deleted after 6 hours 15 minutes at most.

- **Limits.** CI runners don't use your setup slots. Up to 3 at once before your first payment, 10 after, and they count against [start limits](https://docs.froog.tech/limits/). Each start needs an hour of its job time in the wallet and your [spending cap](https://docs.froog.tech/pricing/#spend-cap) not reached. Otherwise the job waits and retries every 15 seconds (`froog seaeye` shows why); froog emails daily while jobs wait for money. After 24 hours it fails.

- **Refused jobs** (unknown label, public repository, missing `from=` snapshot) cancel their workflow run if the GitHub App has Actions: Read and write.

- **Retries.** A VM that fails to start, or a runner that exits early, gets one more try; then the job fails with the reason (`froog seaeye job`).

- **Public repositories** are off by default, since anyone's PR would run on your bill. `froog seaeye public on --users "me,a-teammate"` allows runs by those users (no `--users`: anyone; then require approval for outside collaborators in GitHub). `froog seaeye public off` undoes it. In public repos a runner only takes the job it was started for.

- **Secrets.** CI VMs get none of your environment: no variables, secret files, GitHub token or keys. Use GitHub Actions secrets. The runner-registration token stays on froog's side.

```sh
$ froog seaeye                                   # setup, 7-day stats, last jobs
$ froog seaeye --repo acme/api --state failed    # --state all|active|failed, --limit
$ froog seaeye job seaeye_…                      # state, reason, wait, run time
$ froog seaeye logs seaeye_…                     # the job's log
$ froog seaeye metrics seaeye_…                  # CPU, memory, step times
$ froog seaeye tests seaeye_…                    # test results (--all: passed too)
$ froog seaeye ssh seaeye_…                      # shell on the job's VM
$ froog seaeye search 'level:error timeout'      # search all job logs
$ froog seaeye stats --days 14                   # runs, failures, p50/p90, cost, flaky tests
$ froog seaeye rightsize                         # jobs that fit another size better
$ froog seaeye caches                            # cache=NAME disks; --rm NAME resets one
```

**Dashboard:** [Seaeye](https://app.seaeye.sh/) lists workflow runs with filters and search; a run shows its jobs, annotations, cost and usage; a job shows its log by step, CPU, memory and tests. Log search, Monitors, Caches and Settings have their own pages.

API: `GET /seaeye/runs`, `GET /seaeye/jobs/{id}` (plus `/logs`, `/metrics`, `/tests`), `GET /seaeye/analytics`, `GET /seaeye/logs/search`, `/seaeye/monitors`, `PUT /seaeye/settings`; full list in [API](https://docs.froog.tech/api/). Reading needs `account.read`, settings and monitors `account.admin`. Job states: `queued`, `starting`, `running`, `completed` (with `conclusion`), `refused`, `failed`. Jobs are kept 30 days. [`seaeye.job.*` webhooks](https://docs.froog.tech/webhooks/) are available.

### actions/cache, and what's installed

**Cache.** `actions/cache` and the setup actions that use it save to froog's cache service beside the VMs, with no workflow change. Branch scoping matches GitHub's: a PR can't change what `main` restores. Fork PRs, [zero data retention](https://docs.froog.tech/data/) accounts and workflows that set `NODE_OPTIONS` use GitHub's cache. 10 GB per account, least recently used evicted, unused entries removed after 7 days. Other actions (`upload-artifact`) still use GitHub.

**Image.** What `ubuntu-latest` workflows expect: Docker with Buildx and Compose, Node 24 (pnpm, yarn, bun), Python with uv, Go, Rust, Java 21 with Maven, Ruby, PHP, .NET 8 and 10, AWS CLI, kubectl, helm, gh, Chrome, shellcheck, PostgreSQL and MySQL clients. `setup-python` (3.10-3.13), `setup-node` (20, 22, 24) and `setup-go` (last three) are preinstalled in `/opt/hostedtoolcache`. `cat /etc/froog-image` lists versions. A `cache=` disk keeps its old image until reset.

### Insights: metrics, tests and the right size

Kept 30 days per job:

- **CPU and memory**, sampled every 30 seconds, with OOM kills and step times.

- **Tests** from JUnit XML the job writes in its workspace (up to 900 KB): `pytest --junitxml=report.xml`, `jest --reporters=jest-junit`, `vitest --reporter=junit --outputFile=report.xml`, `gotestsum --junitfile report.xml`, `cargo nextest` with `[profile.ci.junit]`, Maven and Gradle by default. A test that fails and passes on one commit is **flaky**.

- **Log search** over every finished job (last 4 MiB each): words, `"phrases"`, `-exclude`, and `repo:` `branch:` `workflow:` `job:` `conclusion:` `step:` `level:error|warning`. `--oldest` finds where a failure began. Tests and logs aren't kept under [zero data retention](https://docs.froog.tech/data/).

**Monitors** alert by email and the `seaeye.monitor.triggered` webhook when matching jobs fail (optionally N in a row, or matching a log pattern) or run long. Cooldown 60 minutes by default; up to 50 per account.

```sh
$ froog seaeye monitors add "main breaks" --repo acme/api --branch main
$ froog seaeye monitors add slow --duration 20m
$ froog seaeye monitors add oom --log-pattern OutOfMemory --consecutive 2
$ froog seaeye monitors · monitors rm cim_…
```

- **Size advice** after three runs: one size up if it hit 90% memory or 80% CPU, one down if it stayed under 45% CPU and 40% memory. `froog seaeye rightsize` prints the label to use.

### Moving your workflows

`froog seaeye migrate` rewrites `runs-on` in `.github/workflows`: `ubuntu-latest`/`-24.04`/`-22.04` become `seaeye`, Blacksmith and Depot labels the froog size with the same vCPUs. Windows, macOS, Arm and expression labels are left alone.

```sh
$ froog seaeye migrate                   # show the changes
$ froog seaeye migrate --write --cache deps   # --size small|large|xlarge
$ git commit -am "CI on froog" && git push
```

Run local changes on CI's warm disk: `froog run --from cache-NAME -- make test`.

### The CLI from any CI

`froog run` creates a sandbox, pushes the checkout, runs the command, deletes the sandbox and exits with the command's code. Store a `ci` preset key as a secret:

```sh
$ froog api-key create github-ci --preset ci --ttl 90d
$ gh secret set FROOG_API_KEY        # paste the froog_… key
```

```sh
# .github/workflows/froog-tests.yml
name: Tests on froog
on: [push, pull_request]
jobs:
  test:
    runs-on: ubuntu-latest
    timeout-minutes: 30
    env:
      FROOG_API_KEY: ${{ secrets.FROOG_API_KEY }}
    steps:
      - uses: actions/checkout@v4
      - run: curl -fsSL https://froog.tech/install | sh
      - run: froog run --size large -- make test        # or --from ci-base, -e KEY=VALUE
```

Keep a toolchain in a snapshot (`froog snapshot box --name ci-base`) and use `--from ci-base`. The same two lines work in GitLab CI, CircleCI or Buildkite.

## Tokenmail: inboxes

Email addresses for agents, on `froogmail.com` or your own domain. An agent signs up for a service, then reads the one-time code or verification link itself. **$2 per inbox a month**, on its own subscription (not the wallet). See [froog Tokenmail](https://tokenmail.froog.tech/). **Sending isn't on yet:** send, reply, forward and draft-send answer `503 mail_send_off`.

```sh
$ froog inbox create --username signup --name "acme trial"   # signup-k3f9qz@froogmail.com; first time opens Checkout
$ froog inbox wait signup-k3f9qz@froogmail.com --code        # prints just the code
$ froog inbox wait signup-k3f9qz@froogmail.com --link --from acme   # or the verification link
$ froog inbox messages ADDRESS                               # newest first; --label, --sent, --all
$ froog inbox read ADDRESS msg_…                             # --html, --raw
$ froog inbox threads ADDRESS · thread ADDRESS thr_…
$ froog inbox search "invoice" [--inbox ADDRESS]
$ froog inbox label ADDRESS msg_… --add done --remove unread
$ froog inbox attachment ADDRESS msg_… att_0
$ froog inbox events --follow
$ froog inbox list · billing · rm ADDRESS

# in a VM: attach one, and it's $FROOG_EMAIL from the VM's next start
$ froog inbox create --sandbox my-vm          # or: inbox attach ADDRESS my-vm · detach ADDRESS
$ CODE=$(froog inbox wait "$FROOG_EMAIL" --code)   # inside my-vm
```

Each message carries the `codes` and verification `links` found in it, most likely first; footer links are skipped. `wait` counts mail from the last minute, so start it right after submitting the form. Options: `--subject`, `--timeout` seconds (default 300), `--json`. Name an inbox by address, local part or id. `name+anything@` delivers to `name@`.

**Messages, threads, labels.** Messages have headers, text, HTML, `attachments`, and `extracted_text`/`extracted_html` (the reply without quotes or signature). Replies join their thread. System labels: `received`, `sent`, `unread`, `unauthenticated`, `blocked`, `bounced`. Add your own, plus `spam` and `trash`, on messages, threads or up to 100 at once. Lists and waits hide `spam`, `blocked`, `unauthenticated` and `trash` unless asked (`include_spam=true` etc.). Search covers subjects, addresses and bodies.

**Sender checks.** Received mail is checked with SPF, DKIM and DMARC (`auth` on the message). DMARC `reject`/`quarantine` failures are refused. Mail passing neither SPF nor DKIM gets `unauthenticated`, so a forged code never reaches `wait`. See it with `--unverified` or `include_unauthenticated=true`.

**Moving an agent off your Gmail.** An agent signed in to your Google account puts the whole account at risk. Give it an inbox and forward only the mail it needs:

```sh
$ froog inbox create --username invoices
# Gmail: Settings, Forwarding and POP/IMAP, add the address
$ froog inbox wait ADDRESS --from google.com   # enter Google's code back in Gmail
# Gmail: a filter with "Forward it to" the address
```

The agent never has your Google login, and the inbox's key reads only that inbox. Forwarded mail keeps its DKIM signature.

**Inbox settings.** Display name, `client_id` (idempotent create), `metadata`, `signature`, `expiry_hours` (under the 30-day default) and `status` (`deactivated` refuses mail; optionally at `deactivate_at`).

**Events:** `message.received` (and `.spam`, `.blocked`, `.unauthenticated`), `message.sent`, `.delivered`, `.bounced`, `.complained`, `.rejected`, `label.added`, `label.removed`, `domain.verified`. Get them by [webhook](https://docs.froog.tech/webhooks/) (no label events), the feed `GET /v1/inboxes/events?after=CURSOR&wait=55` (kept 30 days), or WebSocket `/v1/inboxes/events/ws`.

**Allow and block lists** for receiving, sending and replying, per account or inbox: `froog inbox rules add receive block spam.example`. Once an allow list has entries, only those pass. Blocked mail is kept with the `blocked` label.

**Your own domain.** `froog inbox domain add example.com` lists the DNS records: MX, an ownership TXT at `_froog-verify.example.com`, SPF, DKIM and DMARC. Only MX and TXT are required while sending is off. If you already have an SPF record, add `include:_spf.froogmail.com` to it instead of a second one. It verifies within about 10 minutes (`froog inbox domain verify` checks now). Then `froog inbox create --username sales --domain example.com`; `--subdomains` allows `name@team.example.com`. `domain zone` prints a zone file, `domain link` a page for your DNS admin.

**Sending (not on yet).** `froog inbox send ADDRESS --to … --subject … --text …`, `reply`, `reply-all`, `forward`, drafts and scheduled `send_at`, DKIM-signed, with `Idempotency-Key`. Hard bounces and complaints go on the suppression list. Limits: 50 recipients, 10 MB attachments, 100 messages per 5 minutes and 1,000 a day per account; 25 new recipients a day in the first week. Auto-forwarding (up to 5 confirmed addresses) also waits for sending; until then use `wait`, the API or a `message.received` webhook.

**Paying.** No free tier or trial. The first create opens Stripe Checkout. Later inboxes add a seat, prorated for the month. A deleted inbox's seat stays paid until renewal and can be reused. If payment lapses, mail is refused. `froog inbox billing` shows seats; cancel or change card in Manage billing.

**Dashboard:** [Tokenmail](https://dash.froog.tech/#email) is a mail client with folders, search, Domains and Settings. HTML mail renders without scripts or remote images.

**In a VM.** Attach one inbox per VM; it's `$FROOG_EMAIL` from the next start. The VM's key uses only that inbox and can't buy, create or delete inboxes or change account settings. Deleting the VM detaches the inbox.

Only mail for existing inboxes is accepted. Messages are kept 30 days. A deleted address is never reissued.

Don't use inboxes to create accounts in bulk, evade bans or bypass CAPTCHAs; solve a CAPTCHA yourself in the VM's [desktop](https://docs.froog.tech/desktop/) (see the [acceptable use policy](https://froog.tech/acceptable-use/)).

API: `/v1/inboxes` and below (messages, threads, drafts, `wait`, events, lists, domains, forwarding, suppressions, billing); see the [OpenAPI document](https://froog.tech/openapi.json). Scopes: `inbox.read`, `inbox.send`, `inbox.write` (creating can add a paid seat).

## Revere: uptime monitors and status pages

froog checks your websites, ports, hosts and cron jobs, emails you on down and up, and hosts a public status page. **5 monitors checked every 5 minutes are free; every other monitor is $1 a month** (beyond 5, or faster, down to 30 seconds). Status pages, custom domains, incidents and subscribers are included. See [froog Revere](https://revere.sh/).

```sh
$ froog revere add https://example.com                     # http, every 5 minutes (free)
$ froog revere add https://api.example.com/health --every 30s --keyword '"ok":true'
$ froog revere add db.example.com:5432 --name db           # tcp
$ froog revere add vpn.example.com --name vpn               # icmp
$ froog revere add --name nightly-backup --every 1d --grace 30m   # heartbeat: prints the URL your job calls
$ froog revere add https://api.example.com/v1/me --header 'Authorization: Bearer …' --method post --body '{}'
$ froog revere contact add https://hooks.slack.com/services/…   # or Discord, Google Chat, ntfy
$ froog revere ls · show NAME · check NAME · edit NAME --every 1m · pause NAME · resume NAME · rm NAME
$ froog revere page create acme --title Acme --monitor example.com=Website --monitor db=Database
$ froog revere page domain acme status.acme.com            # prints the CNAME and TXT records
$ froog revere incident open acme "Slow logins" --impact minor --monitor example.com
$ froog revere incident update acme inc_… identified --body "A bad deploy; rolling back"
$ froog revere incident open acme "Database upgrade" --from +1440 --until +1500   # maintenance, minutes from now
```

**Checks.** `http`: status in `expect_status` (default `200-399`), optional `keyword` (or `keyword_absent`), within `timeout_secs` (10). Bad certificates fail; you're warned `--cert-warn DAYS` (14, 0 = off) before expiry. Add up to 10 request `headers` and a `body`; `method` is any of GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS. `tcp`: the port accepts. `icmp`: one ping answers. `heartbeat`: your job calls its URL (no API key; the URL is the secret) within `interval_secs` + `grace_secs`; `<url>/fail?msg=…` fails it at once. Targets must be public; private addresses get `400`.

**Down and up.** Down after `confirmations` failed checks in a row (default 2); a heartbeat when its deadline passes. Down and up each send an email and the [webhooks](https://docs.froog.tech/webhooks/) `revere.monitor.down` / `revere.monitor.up`; expiring certificates send `revere.cert.expiring`. Turn emails off with `--email off` or in [Alerts](https://dash.froog.tech/#alerts). Checks are kept 7 days; `GET /v1/revere/monitors/{monitor}/history?range=24h|7d|30d|90d` gives uptime and response times (avg, min, max) in buckets, and `?history=true` on the list adds each monitor's last 24 hours.

**Alert contacts** (`/v1/revere/contacts`, [dashboard](https://app.revere.sh/#revere/contacts): Revere → Alert contacts) send down, up and certificate alerts to a Slack, Discord or Google Chat incoming webhook, or an ntfy topic (your phone), for every monitor or the ones you list. `froog revere contact test NAME` sends a test; the last error shows on the contact. **Maintenance** on a status page holds the alerts (email, webhooks, contacts) of the monitors it names while it runs; outages then show `maintenance: true`.

**Status pages** live at `https://status.froogusercontent.com/<slug>`: chosen monitors, 90 days of uptime bars, incidents and maintenance. No JavaScript. `<page>/json` gives JSON, `<page>/badge.svg` a badge. With `auto_incidents` (default on), a monitor going down opens an incident on its pages and resolves it when back up. A renamed slug redirects from the old one.

**Your own domain.** Add a CNAME to `status.froogusercontent.com` and the shown TXT record at `_froog-status.<your name>`. Once found, the page is served there over HTTPS. A TXT record gone for 7 days stops it.

**Incidents** have an impact (`minor`, `major`, `critical`), affected monitors and updates (`investigating`, `identified`, `monitoring`, `resolved`). **Maintenance** has a window and statuses `scheduled`, `in_progress`, `completed`.

**Subscribers** sign up by email on the page (confirmed first) and get every notifying update with an unsubscribe link. `--quiet` skips the email; a quiet incident stays quiet unless an update uses `--notify`. `froog revere subscribers acme` lists them.

**Paying.** Paid monitors are seats on their own Stripe subscription. The first opens Checkout (`froog revere add` does it; without a terminal it prints the link and exits with an error). Later ones are added at once, prorated. A deleted monitor's seat lasts to month end. Unpaid: paid monitors stop being checked, free ones continue. `froog revere billing` shows status.

## Webhooks

Get an HTTPS POST on sandbox, CI, mail and Revere events instead of polling.

```sh
$ froog webhooks add https://example.com/froog --name prod       # every sandbox event; prints the signing secret once
$ froog webhooks add https://example.com/froog --event seaeye.job.failed --event revere.monitor.down   # --help lists every event
$ froog webhooks test wh_…     # send a ping now
$ froog webhooks update wh_… --event sandbox.stopped --disable   # or --url, --name, --enable
$ froog webhooks deliveries wh_…   # attempts and results, 30 days
$ froog webhooks list · rotate wh_… · rm wh_…
```

| Events | Body adds |
| --- | --- |
| `sandbox.running`, `.stopped`, `.error`, `.deleted`, `.expired` (disk deleted after 14 days stopped), `.degraded` ([host or VM trouble](https://docs.froog.tech/sandboxes/#unresponsive)), `.recovered` (also after [rebuild](https://docs.froog.tech/sandboxes/#rebuild)), `.stop_refused` ([snapshot failed](https://docs.froog.tech/sandboxes/#stopping)), `.disk_low` ([85% / 95%](https://docs.froog.tech/sandboxes/#disk)) | `sandbox`, `reason` |
| `sandbox.port_opened`, `.port_closed` (checked every 30 s; for every change use [the port stream](https://docs.froog.tech/api/#watch)) | `sandbox`, `port`, `protocol` |
| `seaeye.job.started`, `.completed`, `.failed`, `.refused`, `seaeye.monitor.triggered` ([CI monitor](https://docs.froog.tech/seaeye/#seaeye-insights)) | `seaeye_job` (+ `monitor`, `reason`) |
| [Tokenmail](https://docs.froog.tech/inboxes/) `message.*`, `domain.verified` (filter with `inboxes`) | `inbox_id`, `message`, `thread` |
| [Revere](https://docs.froog.tech/revere/) `revere.monitor.down`, `.up`, `revere.cert.expiring` | `monitor`, `outage` or `cert_expires_at` |

An endpoint with no event list gets the `sandbox.*` lifecycle events; port, CI, mail and Revere events go only to endpoints that list them. Every body has `{"id", "type", "created_at", …}`; objects are as their `GET` returns them.

Answer 2xx within 10 seconds. Otherwise it retries, up to 8 attempts over about 3 hours. Delivery is at least once and unordered: deduplicate on `id`. Headers: `froog-event`, `froog-delivery` (the event `id`), `froog-attempt`, `froog-webhook`. A disabled endpoint gets nothing.

Every request carries `froog-signature: t=<unix time>,v1=<hex>`, where `v1` is HMAC-SHA256 of `"<t>.<raw body>"` with your signing secret. Check it, and reject old timestamps:

```sh
// Node.js
const crypto = require('crypto');
function verify(rawBody, header, secret) {
  const { t, v1 } = Object.fromEntries(header.split(',').map(p => p.split('=')));
  const want = crypto.createHmac('sha256', secret).update(`${t}.${rawBody}`).digest('hex');
  return Math.abs(Date.now() / 1000 - Number(t)) < 300 &&
    crypto.timingSafeEqual(Buffer.from(want), Buffer.from(v1));
}
```

Endpoints must be HTTPS on port 443 or 8443 at a public address; redirects aren't followed. Up to 10 per account.

## OpenTelemetry

Push sandbox metrics and lifecycle events to Datadog, Grafana Cloud, Honeycomb or any OTLP/HTTP collector. One endpoint per account; nothing is installed in sandboxes. No traces or command output.

```sh
$ froog telemetry set https://otlp.datadoghq.com -H dd-api-key=$DD_API_KEY
saved. test export accepted; metrics arrive within a minute.
$ froog telemetry          # endpoint, last export, last error
$ froog telemetry unset
```

Give the base URL (HTTPS, port 443 or 4318, public); froog adds `/v1/metrics` and `/v1/logs`. Header values are encrypted and never shown again. Grafana Cloud: `Authorization=Basic <base64 instanceId:token>`; Honeycomb: `https://api.honeycomb.io` with `x-honeycomb-team`.

| Metric (gauge, every 60 s) | Unit | Meaning |
| --- | --- | --- |
| `froog.sandbox.cpu.utilization` | 1 | CPU busy |
| `froog.sandbox.memory.utilization` · `.usage` | 1 · By | Memory in use |
| `froog.sandbox.filesystem.utilization` · `.usage` | 1 · By | Disk in use |
| `froog.sandbox.io.pressure` | 1 | Time stalled on disk I/O |
| `froog.account.sandboxes.active` · `.limit` | {sandbox} | Running · allowed |

Resource attributes: `service.name=froog`, `froog.sandbox.id`, `.name`, `.size`, `froog.account.id`. Sandboxes with [monitoring off](https://docs.froog.tech/data/) send none; for one sandbox now, use [`froog metrics`](https://docs.froog.tech/sandboxes/#metrics). Every [webhook event](https://docs.froog.tech/webhooks/) is also an OTLP log record (ERROR for `sandbox.error`, WARN for `sandbox.degraded`). On 429 or 502-504, metrics are resent for up to 10 minutes.

## Desktop

Every sandbox has a Linux desktop (XFCE, 1920x1080, with Chrome) you can watch and use in your browser. Click **Desktop** in the [dashboard](https://dash.froog.tech/), or:

```sh
$ froog desktop my-box                 # opens it in your browser
$ froog desktop my-box --theme light   # dark (default) or light
$ froog desktop my-box --print         # just print the link
$ froog desktop my-box --tunnel        # over an SSH tunnel to localhost
```

The viewer's **☰** menu has fullscreen, connection, keys (Ctrl+Alt+Del), clipboard and view-only. The desktop starts on first open and runs until the sandbox stops.

**Stream.** The desktop streams as H.264 at up to 60 fps ([Selkies](https://github.com/selkies-project/selkies)), falling back to VNC if it doesn't load. Omarchy uses VNC. The first open takes about 20 s longer. Force VNC with **☰ → Connection → Compatible (VNC)** or `transport=vnc` in the link. Encoding uses the sandbox's CPU only while someone watches: about 0.2 vCPU on a still screen, about 1 vCPU for full-screen motion.

**120 fps.** `froog desktop NAME --fps 120` (kept), `froog new NAME --desktop-fps 120`, or `"desktop_fps": 120` on create or `PATCH /v1/sandboxes/{name}`; `60` resets it. Needs 4+ vCPUs. Costs **$0.05 an hour while watched**, by the minute from the [wallet](https://docs.froog.tech/pricing/#wallet). Without an hour's credit under your spend cap it opens at 60 (`fps_note` says why). Listed in `froog usage` as `desktop_120fps`.

**Sound.** Desktop audio plays through the stream (Opus). It starts after your first click. Turn it off under **☰ → Sound** or with `sound=0` in the link. VNC, the browser view and Omarchy have no sound.

**Links.** A link holds a secret token after the `#`. Open it within 10 minutes; open sessions keep working. Treat links as secrets. A desktop link can't open the browser view, or vice versa.

**Embed it.** Call `POST /v1/sandboxes/{name}/desktop` from your server on each page load (returns `{url, expires_at}`), add `overlay=0` before the `#` to hide controls (`viewonly=1` for no input):

```sh
<iframe src="DESKTOP_URL" allow="autoplay; fullscreen; clipboard-read; clipboard-write" style="width:100%;aspect-ratio:16/9;border:0"></iframe>
```

**Wallpaper.** Put a PNG at `~/.config/froog/wallpaper.png` (up to 16 MiB, 8192 px a side): `froog scp ./wallpaper.png my-box:.config/froog/wallpaper.png`.

**Browser only.** Shows just Chrome on its own screen, no desktop, no clipboard.

```sh
$ froog browser my-box                               # profile ~/.config/froog-browser
$ froog browser my-box --profile /data/chrome-work   # another signed-in profile
```

The profile lives on the disk, so it survives snapshots and forks. API: `POST /v1/sandboxes/{name}/browser` with optional `{"profile": …}`. Code in the sandbox can read the profile.

**Record it** to MP4 (H.264, 30 fps, with sound) from inside the sandbox:

```sh
$ froog exec my-box -- froog-record-desktop start /home/user/demo.mp4
$ froog exec my-box -- froog-record-desktop stop      # finish the file before downloading
$ froog scp my-box:demo.mp4 .
```

## Windows apps (Wine)

Sandboxes can run many Windows programs on the desktop with [Wine](https://www.winehq.org). Watch them with `froog desktop`; agents drive them with the [computer tools](https://docs.froog.tech/agents/) (screenshots, clicks, keys). Install once, then snapshot.

**Install Wine.** Save as `install-wine.sh` and run it in the background (several minutes):

```sh
$ froog exec my-box --detach -- bash -s < install-wine.sh
$ froog logs my-box JOB -f
```

```sh
set -e
. /etc/os-release
sudo dpkg --add-architecture i386
sudo mkdir -pm755 /etc/apt/keyrings
sudo wget -qO /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
# WineHQ's packages for this release; the distribution's own Wine if it has none yet
if sudo wget -qNP /etc/apt/sources.list.d/ "https://dl.winehq.org/wine-builds/$ID/dists/$VERSION_CODENAME/winehq-$VERSION_CODENAME.sources"; then
  sudo apt-get update -qq
  sudo DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --install-recommends winehq-stable
else
  sudo apt-get update -qq
  sudo DEBIAN_FRONTEND=noninteractive apt-get install -y -qq wine
fi
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends cabextract p7zip-full mesa-vulkan-drivers
sudo wget -qO /usr/local/bin/winetricks https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
sudo chmod +x /usr/local/bin/winetricks
bash ~/.froog/desktop/desktop.sh >/dev/null      # the desktop, display :1
export DISPLAY=:1
WINEDLLOVERRIDES="mscoree,mshtml=" wineboot -i  # skip the Wine Mono prompt
winetricks -q corefonts vcrun2022
wine --version
```

Add .NET with `winetricks -q dotnet48`, Direct3D with `winetricks -q dxvk` (CPU only, no GPU: light 3D). On Omarchy, use `pacman` (multilib) instead.

**Install and start a program.** Anything that opens a window needs `DISPLAY=:1`:

```sh
# in the sandbox (froog ssh my-box)
export DISPLAY=:1
curl -fsSLo /tmp/7z.exe https://www.7-zip.org/a/7z2501-x64.exe
wine /tmp/7z.exe /S
wine start /unix "$HOME/.wine/drive_c/Program Files/7-Zip/7zFM.exe"
```

- Silent installs: `/S` (NSIS), `/VERYSILENT` (Inno Setup), `msiexec /i app.msi /qn` (MSI). A [winget manifest](https://github.com/microsoft/winget-pkgs/tree/master/manifests)'s `InstallerUrl` is the vendor link.

- `C:\` is `~/.wine/drive_c`; `Z:\` is `/`.

- Pre-accept licence prompts in the registry, e.g. `wine reg add 'HKCU\Software\Sysinternals\Process Explorer' /v EulaAccepted /t REG_DWORD /d 1 /f`.

**Set up once, start many:** `froog snapshot my-box --name wine-apps`, then `froog new task-1 --from wine-apps`. Restart programs after a stop or fork.

**Which programs run.** None verified on froog yet. Good first tries: Notepad++, 7-Zip, WinMerge, HxD, IrfanView, Process Explorer, LTspice. Programs with kernel drivers (anti-cheat, hardware tools, some VPNs) won't run. See [Wine's AppDB](https://appdb.winehq.org).

| Problem | Fix |
| --- | --- |
| `wineboot` never finishes | `WINEDLLOVERRIDES="mscoree,mshtml=" wineboot -i` |
| `Cannot open display` | `export DISPLAY=:1` and start the desktop |
| `unimplemented function msvcp140.dll…` | `winetricks -q vcrun2022` |
| Exits at once with `init_sys_streams` | Start it with `wine start /unix` |
| Windows blank, "Not Responding" | Answer modal dialogs with keys, not `close_window` |
| Old game changes resolution | `wine reg add 'HKCU\Software\Wine\X11 Driver' /v UseXRandR /t REG_SZ /d N /f` |

Install only software you're licensed to use. Don't copy Windows system files into Wine.

## Android

`froog new NAME --os android` (API: `"os": "android"`) starts Ubuntu 24.04 with an Android 14 phone running in it. It's [Redroid](https://github.com/remote-android/redroid-doc) (Android in a container, not an emulator), about 2-3x faster than the emulator. Needs `small` or larger; `lite` is refused. Android is ready about 2 minutes after create.

```sh
$ froog new phone --os android --size small
$ froog ssh phone
user@phone:~$ froog-android wait
Android 14 ready on localhost:5600
user@phone:~$ adb install app.apk
user@phone:~$ adb shell am start -n com.example/.MainActivity
```

**adb.** The phone is `localhost:5600` and `ANDROID_SERIAL` is set, so plain `adb` and Gradle's `installDebug` work. adb listens on 127.0.0.1 only; from your computer: `froog forward phone 5600`, then `adb connect localhost:5600`. Use the serial `localhost:5600`, not `127.0.0.1:5600`. Screen: 720x1280, 320 dpi.

**Managing it.** `froog-android wait`, `status`, and `reset` (wipe apps and data, new Android ID). It's the `froog-android` systemd service. Data lives on the disk, so apps survive stops, snapshots and forks.

**For agents.** Android sandboxes add [computer tools](https://docs.froog.tech/agents/): `phone_state` (screenshot plus UI tree with refs), `phone_tap`, `phone_swipe`, `phone_type`, `phone_key`, `phone_launch`, `phone_open_url`, `phone_install`, `phone_apps`. Tapping by ref is cheaper than repeated screenshots. If a tool says Android is booting, retry shortly.

**Watching it.** `froog desktop phone` shows the phone in a window ([scrcpy](https://github.com/Genymobile/scrcpy)) you can click and type into. `froog-record-desktop` records it.

**Limits.** AOSP only: no Play Store or Play services (Google sign-in, Maps, FCM). For those, run the Android emulator with a Google APIs image (`/dev/kvm` is available; slower). No GPU, camera, sensors or telephony. x86_64 apps only (no ARM-only native code). adb types ASCII only.

## API keys and scopes

A key has a set of **actions** and can be limited to some sandboxes, by name, [label](https://docs.froog.tech/sandboxes/#labels) or environment. Anything outside its scope gets `403 api_key_action_forbidden` or `403 api_key_sandbox_forbidden`. A limited key can't change account-wide settings or read Seaeye runs and logs (`403 api_key_limited`).

```sh
$ froog api-key create ci-bot --preset ci --ttl 30d          # prints the key once
$ froog api-key create watcher --preset read-only
$ froog api-key create box-agent --sandbox my-box            # only my-box
$ froog api-key create team-a --preset ci --label team=a     # only sandboxes labelled team=a
$ froog api-key create ci-bot --preset ci --env ci           # only the ci environment
$ froog api-key create custom --actions sandbox.read,exec,file.read --ttl 7d
$ froog api-key list                                          # scope, expiry, last use
$ froog api-key rotate key_3f2a9c1d8e7b                       # new secret, same id and scope
$ froog api-key revoke key_3f2a9c1d8e7b
$ froog api-key actions                                       # every action and preset
```

| Preset | Can |
| --- | --- |
| `read-only` | Inspect sandboxes, history, files, snapshots, environment |
| `full-sandbox` | Operate existing sandboxes (exec, files, SSH, desktop, URLs, snapshots, stop). No create, start, fork, delete or account changes |
| `ci` | `full-sandbox` plus create, start, fork, and delete what it created |
| `admin` | Everything, including billing, webhooks and new keys |

Actions: `sandbox.create`, `sandbox.read`, `sandbox.update`, `sandbox.stop`, `sandbox.resume`, `sandbox.fork`, `sandbox.delete`, `sandbox.delete-own`, `agent.prompt`, `exec`, `file.read`, `file.write`, `ssh`, `desktop`, `host`, `snapshot.read`, `snapshot.write`, `environment.read`, `environment.write`, `account.read`, `account.admin`, `inbox.read`, `inbox.write`, `inbox.send` ([inboxes](https://docs.froog.tech/inboxes/)), `billing.trial` (read billing, add a card), `*`.

**The key inside each sandbox.** Each sandbox's `froog` CLI is signed in with a key for that sandbox only: exec, files, SSH, desktop, ports, snapshots, rename, stop. It can't create, start, fork or delete sandboxes, reach others, or change the account. It is replaced at each start, revoked on stop or delete, and not listed. `--no-environment` sandboxes get none.

- Keys expire after 90 days by default, at most 365, or `--ttl never`. Expired: `401 api_key_expired`.

- A key can't create a key with more actions, sandboxes or lifetime, or fewer labels, than its own. Full access needs `--preset admin`.

- A sandbox-limited key lists only its sandboxes (and ones it created), and sees no keys or audit log.

- An environment-limited key (`--env`, repeatable; API `environments`) sees only those [environments](https://docs.froog.tech/environment/#environments) and their sandboxes, and creates into its first one. Any other: `403 api_key_environment_forbidden`.

- A label-limited key (`--label KEY=VALUE`, repeatable; API `labels`) reaches only sandboxes with all its labels and stamps them on what it creates. Changing them: `403 api_key_label_forbidden`. The [MCP endpoint](https://docs.froog.tech/mcp/) checks the same.

- Revoking stops a key at once; its sandboxes stay.

- Rotating stops the old secret at once. An expired key can't be rotated (`409 api_key_expired`). For no downtime: create, deploy, then revoke.

## Sign-in and connections

Sign in with Google, GitHub, a 6-digit email code, or [AgentID](https://agentid.com) (for an AI agent with an AgentMail inbox). Each method is a **connection** to the same account. A first sign-in matches an account by verified email, or makes a new one. To add a method, sign in as usual and add it on the Account page.

- You can't remove the last connection (`409 last_connection`).

- The **primary** connection's address gets billing and sandbox notices.

- Email codes work once, for 10 minutes; 5 wrong tries end one. Requests are rate limited per address and network (`429 rate_limited`).

- Signing in gives froog no access to your code; that's the [GitHub connection](https://docs.froog.tech/github/).

```sh
$ froog connections                          # id, method, address, primary
$ froog connections add-email you@work.com   # asks for the emailed code
$ froog connections primary con_…
$ froog connections rm con_…
```

API: `GET /account/connections` (`account.read`). Changes need the dashboard or a full-access key and are [audited](https://docs.froog.tech/audit/).

## Organizations

An **organization** is a team workspace: one wallet and shared sandboxes, environments, snapshots, keys, webhooks, GitHub and CI. Your account stays your **personal** workspace.

```sh
$ froog org create Acme                     # you become owner
$ froog org switch acme                     # CLI, account keys and MCP now act in Acme
$ froog org invite dana@example.com         # emails a link (7 days, one use)
$ froog org members                         # members, caps, usage, invites
$ froog --org personal new scratch          # one command in your own account
$ froog org switch personal
```

**Which workspace a request uses:** an organization key's org; else the `X-Froog-Org` header (id, name or `personal`; CLI `--org` / `FROOG_ORG`); else your active org; else personal. Unknown name: `404 org_not_found`; duplicate name: `409 ambiguous_org`. A sandbox stays in the workspace it was created in.

Personal, never shared: sign-in connections, SSH keys, account API keys, the active org, closing the account.

### Roles

| Role | Can |
| --- | --- |
| `member` | Create and use shared sandboxes, save snapshots, use inboxes and Revere, read billing and the environment, make own org keys |
| `admin` | Also members, caps, environment, AI, webhooks, GitHub/CI, inboxes and Revere monitors (can add paid seats), stop/delete any sandbox, audit log, all org keys |
| `owner` | Also wallet, seats, data controls, roles, admins, rename, transfer, delete. One per org |

Without the role: `403 org_role_forbidden`. The owner can't leave; `froog org transfer EMAIL` first. You can't close your account while you own an org (`409`).

### Members and invites

`froog org invite EMAIL` (`--admin`, owner only) emails a link; the invitee signs in any way and joins, or runs `froog org accept TOKEN`. Links work once for 7 days (`404 invite_not_found`, `410 invite_expired`). Removing a member (`froog org remove EMAIL`) or leaving (`froog org leave`) stops their org keys at once; their sandboxes stay.

### Shared and private sandboxes

Members see every org sandbox. `shared` ones any member can use; `private` ones only the creator (`403 sandbox_private`, including via its snapshots). Default is shared; change it with `froog org default-visibility private` or `froog new --visibility private`, and later with `froog share` / `froog unshare`. Forks of private sandboxes are private.

SSH: shared sandboxes accept every member's keys, private ones only the creator's. Access changes apply to running sandboxes at once. What a member did with `sudo` while they had access stays: rebuild sandboxes you don't trust. See [security](https://docs.froog.tech/security/).

### Organization API keys

A key made in an org (`froog --org acme api-key create ci --preset ci`) acts only there (`403 api_key_org_mismatch`), as its creator, never above their role. It can't touch billing, keys, webhooks, AI settings or personal routes (`403 api_key_org_forbidden`), and stops when its member leaves. Account keys act in an org only when a request names it or it's your active org.

### Seats, limits and per-member caps

An org has its own card, [billing](https://docs.froog.tech/pricing/), [spending cap](https://docs.froog.tech/pricing/#spend-cap) and [limits](https://docs.froog.tech/limits/). Seats aren't billed; they cap membership (`froog org seats 5`).

Owners and admins can cap a member: `froog org cap EMAIL --running 3 --usage 50` (0 removes).

| Cap | Limits | Past it |
| --- | --- | --- |
| `max_running_sandboxes` | Org sandboxes the member runs at once | `429 member_limit_reached` |
| `max_usage_usd` | Member's org usage this month, list prices | `402 team_member_cap_reached` |

A sandbox counts against its creator. Over a cap, froog stops the member's newest org sandboxes within a minute; nothing is lost.

**Audit log.** Each org has its own [audit log](https://docs.froog.tech/audit/) (owners and admins), naming the member on every entry, with `org.*` actions for membership changes. Org emails go to the owner.

**Delete** with `froog org delete` (owner, last member, no sandboxes left). Subscriptions end without refund; data is erased after 30 days like a [closed account](https://docs.froog.tech/data/#close-account).

API: `GET · POST /orgs`, `PATCH /orgs/active`, `/orgs/{org}`, `/orgs/{org}/members`, `/orgs/{org}/invites`, `/orgs/{org}/seats`; full list in [API](https://docs.froog.tech/api/). Reading needs `account.read`, changing `account.admin`.

## Sign up from an agent

An agent can sign you up without you pasting a key, via [auth.md](https://workos.com/auth-md) (WorkOS agent registration). Tell it:

```sh
Follow https://froog.tech/auth.md and sign me up for froog sandboxes.
```

- It discovers the endpoints from a `401`'s `WWW-Authenticate` header and `/.well-known/oauth-authorization-server`.

- It registers: `POST /v1/agent/identity` with `{"type": "anonymous"}` or `{"type": "service_auth", "login_hint": "you@example.com"}`.

- It sends you a link and a 6-digit code. You sign in and type the code (an email-bound registration needs that account: `403 wrong_account`).

- It polls `POST /v1/oauth2/token` for an API key, then can open the add-a-card page for you ([card](https://docs.froog.tech/pricing/#card)).

Before you claim it, an anonymous agent can only read the account; anything else is `403 claim_required`.

A claimed agent's key can create and run sandboxes, snapshots and files and open the add-a-card page. It can't pay, change the [spend cap](https://docs.froog.tech/pricing/#spend-cap) or auto top-up, or create keys (`403 api_key_action_forbidden`). The key expires after 90 days. Revoke it on the API keys page or with `POST /v1/oauth2/revoke`; the agent must then register again. Claim links last 24 hours, codes 10 minutes and 5 tries; 10 registrations per network per hour.

## Audit log

The audit log records every change to the account for 90 days: API keys, sandboxes (including [auto-start](https://docs.froog.tech/sandboxes/#auto-start)), snapshots, public URLs, environment variables and files, webhooks, SSH keys, OpenTelemetry, billing and data controls. Reads, failed requests and command runs ([command history](https://docs.froog.tech/history/)) aren't logged.

Each entry has the actor (API key id and name, or `session`), time, IP and `X-Request-Id`. froog's own actions use actor `system`: `sandbox.auto_stop`, `sandbox.lifetime_stop`, `sandbox.auto_delete`, `sandbox.disk_expired`, `sandbox.billing_stop`, `sandbox.abuse_stop`, `billing.credit`, `billing.spend_cap`.

```sh
$ froog audit --limit 20
$ froog audit --sandbox ci-1 --action sandbox.delete --action sandbox.auto_stop
$ froog audit --export csv > audit.csv      # or ndjson, oldest first
WHEN                 ACTION                 TARGET                   BY                         IP
2026-11-12 09:14:03  api_key.revoke         key_3f2a9c1d8e7b         session (you@example.com)  203.0.113.9
2026-11-12 09:02:41  sandbox.create         ci-1                     key_8b1e0c2d4f6a (ci-bot)  198.51.100.7
```

API: `GET /audit` (filters `action`, `sandbox`, `since`, `until`, `cursor`), `GET /audit/export?format=csv|ndjson`. Needs `account.admin`. `detail` never holds secret values, files, scripts or webhook URLs.

## Data controls

Set these for the account under **Data & privacy** in the dashboard (API keys can only read them: `froog data-retention`), or per sandbox at create. Account settings apply to new sandboxes.

| Setting | froog doesn't keep | Restartable? |
| --- | --- | --- |
| **Monitoring off** · `froog new --no-monitoring` | Command history, process records, metrics history (`409 monitoring_off`) | Yes |
| **Snapshots off** · `froog new --no-snapshots` (or `--ephemeral`) | Any disk copy: no snapshots, fork or restore (`409 snapshots_off`). A stop erases it. It can run in a cheaper [ephemeral slot](https://docs.froog.tech/pricing/#ephemeral) | No |
| **Zero data retention** (account only) | Anything after a stop: disk, snapshots, history, saved snapshots. Turning it on erases all stopped data at once | No |

Deleting a sandbox always erases its history.

### Close your account

`froog account close`, the dashboard, or `POST /v1/account/close` with `X-Froog-Confirm-Close: YOUR_EMAIL`. It ends subscriptions without refund, stops every sandbox, revokes every key and other session, and emails you the erasure date.

For 30 days you can sign in and `froog account reopen`; anything else, MCP included, answers `403 account_closed`. Then froog erases sandboxes, snapshots and personal data, keeping anonymous usage and invoice records.

**Deletion operations.** Closing and turning on zero data retention return an operation id (`dop_…`). Track it with `froog deletion status dop_…` (API `GET /v1/deletion-operations/{id}`).

## Build a platform: a sandbox per user

Products may give each user or project a sandbox with persistent files, a coding agent and a preview URL.

- **Backend key.** `froog api-key create backend --preset ci` manages only what it created, no billing. Per-user component: `--sandbox user-42`. See [API keys](https://docs.froog.tech/api-keys/).

**Nothing of yours inside.** Create with `"environment": false` and pass the user's own variables:

```sh
POST /v1/sandboxes
{"name": "user-42", "from": "web-stack", "environment": false,
 "env": {"TENANT_ID": "42", "ANTHROPIC_API_KEY": "<the user's key>"}}
```

- **Template.** Install your stack and agent rules once, `froog snapshot base --name web-stack`, then create with `"from": "web-stack"`.

- **Ready.** Create answers `202`; wait for state `running` or the `sandbox.running` [webhook](https://docs.froog.tech/webhooks/).

- **Agent.** `POST /v1/sandboxes/{name}/prompts` ([harnesses](https://docs.froog.tech/agents/)); stream [events](https://docs.froog.tech/agents/#conversations) to your UI; `/steer` and `/interrupt` are send and stop.

- **Preview.** `POST /urls {"port": 3000}` gives a private URL (its token is a password); `"public": true` for iframes. Files via [signed URLs](https://docs.froog.tech/api/).

- **Retention.** [Monitoring off](https://docs.froog.tech/data/) and zero data retention keep nothing.

### Patterns and cost

Each [setup](https://docs.froog.tech/pricing/#capacity) slot runs one sandbox 24/7 ($8.16 a month for a resumable `default`, $7.48 ephemeral).

- **Always on:** one slot per user or project.

- **More users than slots:** stop sandboxes when users leave (disk kept 14 days) and start them on return (~15 s); `ttl_secs` auto-stops. Restart servers from the setup script.

- **Per task:** start from the template, run, delete.

Starts are rate limited: see [limits](https://docs.froog.tech/limits/).

## Use froog from your coding agent

Any agent on your computer can drive sandboxes with the `froog` CLI. Give it the signed-in CLI, the docs and a rule. Or connect froog as an [MCP server](https://docs.froog.tech/mcp/).

**1. The CLI.** Sign it in with an API key: `echo "$FROOG_API_KEY" | froog login`, or set `FROOG_API_KEY`.

**2. The docs.** [llms.txt](https://froog.tech/llms.txt) is a short index; [llms-full.txt](https://froog.tech/llms-full.txt) (also [docs.md](https://froog.tech/docs.md)) is this page as Markdown. Or the docs MCP server (no key):

```sh
$ claude mcp add --transport http froog-docs --scope user https://api.froog.tech/docs-mcp
$ codex mcp add froog-docs --url https://api.froog.tech/docs-mcp
$ claude mcp add froog-docs -- froog mcp --docs    # stdio, offline
```

Tools: `search_docs`, `read_docs`, `list_docs`.

**Skills.** `npx skills add https://froog.tech` installs `froog-cli`, `froog-seaeye`, `froog-sandbox-per-user`, `froog-desktop` and `froog-parallel-agents` (`--skill NAME` for one). Index at [/.well-known/agent-skills/](https://froog.tech/.well-known/agent-skills/index.json). Main skill by hand:

```sh
$ mkdir -p ~/.claude/skills/froog && curl -fsSL https://froog.tech/skill.md -o ~/.claude/skills/froog/SKILL.md
```

**3. A rule.** Put this in `AGENTS.md` or `CLAUDE.md`:

```sh
## Cloud sandboxes (froog)

Use a froog sandbox for builds, tests, untrusted code, Docker and long jobs. Don't run them on this computer.
Docs: https://froog.tech/llms.txt. Prices and limits: run `froog limits`; never quote prices from memory.

- Create: `froog new task-1` (returns when SSH works; `--json` prints the sandbox as JSON)
- Run: `froog exec task-1 -- 'cd app && npm test'` (exits with the command's exit code; `--timeout` up to 3600 s)
- Long job or server: `froog exec task-1 --detach -- 'npm run dev'`, then `froog logs task-1 JOB -f`, `froog kill task-1 JOB`
- Past output, also while stopped: `froog history task-1`, `froog history task-1 CMD_ID`
- One-off: `froog run -- npm test` (a fresh sandbox with this folder; deleted after, exits with the command's code)
- Files: `froog push task-1` (this folder to ~/FOLDER), `froog scp -r ./app task-1:app`, or `git clone` inside the sandbox
- Public URL for a port: `froog host task-1 3000`
- Always pass the sandbox name.
- When done: `froog stop task-1` (keeps the disk 14 days) or `froog delete task-1 --yes` (erases it)
```

## Use froog as an MCP server

Every froog product is an MCP tool: Quicksand sandboxes, Tokenmail inboxes, Seaeye CI, and the account itself. 42 core tools are listed by default; the other 216 come in [toolsets](https://docs.froog.tech/mcp/#mcp-toolsets). Every call obeys your API key's scope.

- **Local:** `froog mcp` on stdio, signed in like the CLI (`froog login` or `FROOG_API_KEY`).

- **Hosted:** `https://api.froog.tech/mcp` (Streamable HTTP) with `Authorization: Bearer froog_…`, or [OAuth sign-in](https://docs.froog.tech/mcp/#mcp-oauth).

```sh
# Claude Code (add --scope user for every project)
$ claude mcp add froog -- froog mcp
$ claude mcp add --transport http froog https://api.froog.tech/mcp --header "Authorization: Bearer $FROOG_API_KEY"
# Codex
$ codex mcp add froog -- froog mcp
```

Codex hosted, in `~/.codex/config.toml`:

```sh
[mcp_servers.froog]
url = "https://api.froog.tech/mcp"
bearer_token_env_var = "FROOG_API_KEY"
```

**Cursor** (`~/.cursor/mcp.json` or `.cursor/mcp.json`), one of:

```sh
{ "mcpServers": { "froog": { "command": "froog", "args": ["mcp"] } } }

{ "mcpServers": { "froog": {
    "url": "https://api.froog.tech/mcp",
    "headers": { "Authorization": "Bearer ${env:FROOG_API_KEY}" } } } }
```

**Claude Desktop**: Settings, Developer, Edit Config. Use the full path from `which froog`; it doesn't see your `PATH`.

```sh
{ "mcpServers": { "froog": {
    "command": "/Users/you/.local/bin/froog",
    "args": ["mcp"],
    "env": { "FROOG_API_KEY": "froog_…" } } } }
```

### Connect with a sign-in (OAuth)

Clients that can't send a header (claude.ai and Claude Desktop custom connectors, ChatGPT) add just the URL `https://api.froog.tech/mcp`. froog follows the MCP authorization spec (OAuth 2.1, PKCE, dynamic client registration).

- Your browser opens froog's sign-in, then a consent page naming the client. Pick a scope: `ci` (default), `full-sandbox` or `read-only`.

- On **Allow**, the client gets a new [API key](https://docs.froog.tech/api-keys/) labeled `mcp: CLIENT NAME`, valid 30 days, with no refresh token. It shows in `froog api-key list` and the [audit log](https://docs.froog.tech/audit/); revoke it there.

For every toolset, add `https://api.froog.tech/mcp?toolsets=all` (or `?toolsets=billing,orgs`). API keys still work as bearer tokens on the same URL.

| Core tool | Does |
| --- | --- |
| `list_sandboxes`, `sandbox_info` | List (filter by `label`, `state`, `name_prefix`); one in full |
| `create_sandbox` | New sandbox (`name`, `size`, `os`, `from`, `env`, `labels`, `ttl_secs`, `setup`) |
| `exec` | Run bash (`timeout_secs` up to 3600): exit code, stdout, stderr |
| `start_sandbox`, `stop_sandbox`, `delete_sandbox` | Start, stop (keeps disk), delete |
| `fork_sandbox` | Copy a sandbox or snapshot into `new_name` |
| `save_snapshot`, `list_snapshots` | Save (with `label`), list |
| `read_file`, `write_file`, `list_dir` | Files; binary as base64 |
| `host_port`, `desktop_link` | HTTPS URL for a port; 10-minute desktop link |
| `prompt_agent` | Run a coding agent in the sandbox on a prompt |
| `start_job`, `list_jobs`, `job_logs`, `kill_job` | Background commands; read logs from `offset` / `next_offset` |
| `list_inboxes`, `create_inbox` | [Tokenmail](https://docs.froog.tech/inboxes/) inboxes (a paid seat) |
| `wait_for_email` | Next email (up to 120 s) with `codes` and `links` extracted |
| `list_messages`, `get_message`, `search_messages`, `list_threads`, `get_thread` | Read and search mail |
| `send_email`, `reply_to_email`, `forward_email`, `create_draft`, `send_draft` | Send mail (sent once on retry). Not on yet: `mail_send_off` |
| `update_labels`, `list_mail_events` | Labels (remove `unread`); events since a `cursor` |
| `list_seaeye_runs`, `get_seaeye_run`, `get_seaeye_job`, `seaeye_job_logs`, `seaeye_job_tests` | [Seaeye](https://docs.froog.tech/seaeye/) runs and jobs: why it failed, log tail, failed tests |
| `search_seaeye_logs`, `seaeye_analytics` | Search logs; failure rates, timings, cost, flaky tests |

### The rest of the API: toolsets

Every other API route is a tool too, grouped in toolsets a client lists on request. Any tool can be called by name, listed or not.

```sh
$ claude mcp add --transport http froog "https://api.froog.tech/mcp?toolsets=all" --header "Authorization: Bearer $FROOG_API_KEY"
$ claude mcp add froog -- froog mcp --toolsets billing,orgs   # or FROOG_MCP_TOOLSETS=all
```

| Toolset | Tools |
| --- | --- |
| `sandboxes` | File search and edits, ports, metrics, processes, history, prompts, snapshots, shares. 59 tools: `close_port`, `create_download_url`, `create_upload_url`, `create_url_token`, `delete_auto_snapshots`, `delete_conversation`, `delete_file`, `delete_saved_snapshot`, `delete_snapshot`, `download_from_saved_snapshot`, `download_from_snapshot`, `find_in_files`, `get_browser_link`, `get_command`, `get_conversation`, `get_prompt`, `get_sandbox_metrics`, `get_sandbox_metrics_history`, `get_sandbox_usage`, `get_saved_snapshot`, `get_snapshot`, `get_ssh_info`, `get_stop`, `interrupt`, `list_account_snapshots`, `list_commands`, `list_conversations`, `list_ports`, `list_process_records`, `list_process_samples`, `list_processes`, `list_prompts`, `list_snapshot_shares`, `list_url_tokens`, `list_urls`, `make_directory`, `move_file`, `open_port`, `queue_prompt`, `read_command_logs`, `remove_url`, `replace_in_files`, `restore_sandbox`, `revoke_snapshot_share`, `revoke_url_token`, `sandbox_provider_models`, `saved_snapshot_file_info`, `search_files`, `set_file_permissions`, `set_ports`, `share_sandbox`, `share_saved_snapshot`, `snapshot_file_info`, `steer`, `touch_sandbox`, `unshare_sandbox`, `update_sandbox`, `wait_for_port`, `write_job_stdin` |
| `mail` | Inbox settings, drafts, domains, forwarding, allow/block lists, suppressions, metrics. 51 tools: `add_inbox_list_entry`, `add_mail_list_entry`, `batch_get_inbox_messages`, `batch_update_inbox_messages`, `buy_inboxes`, `confirm_forwarding_verification`, `create_mail_domain`, `delete_inbox`, `delete_inbox_draft`, `delete_inbox_forwarding`, `delete_inbox_message`, `delete_inbox_thread`, `delete_mail_domain`, `delete_mail_forwarding`, `get_any_inbox_thread`, `get_inbox`, `get_inbox_attachment`, `get_inbox_billing`, `get_inbox_draft`, `get_inbox_draft_attachment`, `get_inbox_forwarding`, `get_inbox_list_entry`, `get_inbox_message_raw`, `get_inbox_metrics`, `get_mail_domain`, `get_mail_domain_setup_link`, `get_mail_domain_zone_file`, `get_mail_forwarding`, `get_mail_list_entry`, `get_mail_metrics`, `list_all_inbox_drafts`, `list_all_inbox_messages`, `list_all_inbox_threads`, `list_inbox_drafts`, `list_inbox_list_entries`, `list_mail_domains`, `list_mail_list_entries`, `list_mail_suppressions`, `remove_inbox_list_entry`, `remove_mail_list_entry`, `remove_mail_suppression`, `search_inboxes`, `send_inbox_welcome`, `set_inbox_forwarding`, `set_mail_forwarding`, `start_forwarding_verification`, `update_inbox`, `update_inbox_draft`, `update_inbox_thread`, `update_mail_domain`, `verify_mail_domain` |
| `seaeye` | CI settings, monitors, job metrics. 6 tools: `create_seaeye_monitor`, `delete_seaeye_monitor`, `get_seaeye_job_metrics`, `get_seaeye_overview`, `list_seaeye_monitors`, `set_seaeye_settings` |
| `revere` | Revere: uptime monitors, checks, outages, alert contacts, status pages, incidents, subscribers. 31 tools: `add_status_incident_update`, `check_revere_monitor`, `create_revere_checkout`, `create_revere_contact`, `create_revere_monitor`, `create_status_incident`, `create_status_page`, `delete_revere_contact`, `delete_revere_monitor`, `delete_status_incident`, `delete_status_page`, `get_revere_billing`, `get_revere_contact`, `get_revere_history`, `get_revere_monitor`, `get_status_incident`, `get_status_page`, `list_revere_checks`, `list_revere_contacts`, `list_revere_monitors`, `list_revere_outages`, `list_status_incidents`, `list_status_pages`, `list_status_subscribers`, `remove_status_subscriber`, `test_revere_contact`, `update_revere_contact`, `update_revere_monitor`, `update_status_incident`, `update_status_page`, `verify_status_page_domain` |
| `account` | Account, usage, limits, alerts, data retention, audit log. 17 tools: `close_account`, `create_dashboard_link`, `export_audit`, `get_account`, `get_alert_settings`, `get_data_retention`, `get_deletion_operation`, `get_limits`, `get_status`, `get_usage`, `list_audit_events`, `list_connections`, `list_images`, `reopen_account`, `send_feedback`, `update_alert_settings`, `update_data_retention` |
| `billing` | Wallet, card, auto top-up, spending cap. 8 tools: `add_card`, `billing_portal`, `get_billing`, `set_auto_topup`, `set_extra_starts`, `set_spend_cap`, `wallet_pay`, `wallet_quote` |
| `keys` | API keys and SSH keys. 7 tools: `add_ssh_key`, `create_api_key`, `list_api_keys`, `list_ssh_keys`, `remove_ssh_key`, `revoke_api_key`, `rotate_api_key` |
| `orgs` | Organizations, members, invitations, seats. 15 tools: `create_org`, `delete_org`, `get_org`, `invite_org_member`, `leave_org`, `list_org_members`, `list_orgs`, `preview_org_invite`, `remove_org_member`, `revoke_org_invite`, `set_active_org`, `set_org_seats`, `transfer_org`, `update_org`, `update_org_member` |
| `environments` | Environments and environment variables. 16 tools: `create_environment`, `delete_environment`, `get_environment`, `get_named_environment`, `list_env`, `list_environment_versions`, `list_environments`, `remove_env`, `remove_environment_file`, `remove_named_environment_file`, `set_env`, `set_environment_file`, `set_named_environment_file`, `update_environment`, `update_named_environment`, `upgrade_environment` |
| `github` | GitHub connection and repositories. 5 tools: `connect_github`, `disconnect_github_installation`, `get_github`, `list_github_repos`, `set_github_token_repos` |
| `webhooks` | Webhooks and OpenTelemetry. 11 tools: `add_webhook`, `get_telemetry`, `get_webhook`, `list_webhook_deliveries`, `list_webhooks`, `remove_telemetry`, `remove_webhook`, `rotate_webhook`, `set_telemetry`, `test_webhook`, `update_webhook` |
| `ai` | AI credentials, profiles, proxy, subscriptions. 21 tools: `add_ai_credential`, `cancel_subscription_login`, `create_ai_profile`, `delete_ai_profile`, `get_ai_profile`, `get_ai_proxy`, `get_ai_usage`, `get_sandbox_ai`, `get_subscription_login`, `list_ai_profiles`, `list_subscriptions`, `provider_models`, `remove_ai_credential`, `send_subscription_code`, `set_ai_environment_profile`, `sign_out_subscription`, `start_subscription_login`, `switch_ai_credential`, `update_ai_profile`, `update_ai_proxy`, `update_sandbox_ai` |

- Each tool is one API route: same arguments, answer and [key scope](https://docs.froog.tech/api-keys/). Its name is the route's operation id in [openapi.json](https://froog.tech/openapi.json), in snake case.

- Deletes and tools that spend money or can't be undone (`wallet_pay`, `close_account`, `rotate_api_key`, `transfer_org`, `set_org_seats`, …) need `confirm: true` and carry `destructiveHint`.

- Not tools: accepting org invites, approving CLI logins, changing sign-in methods, live streams, binary uploads (use `create_upload_url`).

- `create_sandbox`, `fork_sandbox` and `start_sandbox` wait up to 120 s (`wait: false` returns at once). `exec` and `read_file` return at most 256 KiB.

- Errors come back as the API's `{"error":{"code","message","request_id"}}`.

- **Give the agent a scoped key**: with `froog api-key create agent --preset ci` it deletes only what it created; with `--preset read-only` it only looks.

- `exec` with `_meta.progressToken` streams output as `notifications/progress` (server-sent events on the hosted endpoint).

- The hosted endpoint is stateless (no session id, `GET` is 405), speaks MCP 2025-06-18, 2025-03-26 and 2024-11-05, and shares the API's per-IP [rate limit](https://docs.froog.tech/limits/).

## Agent frameworks

Use a sandbox as your agent's code tool: bind three tools to one sandbox: run (`POST /sandboxes/{name}/exec`), write and read a file (`PUT`/`GET /sandboxes/{name}/files/content`). One sandbox per conversation or user; let auto-stop pause it. Runnable guides on the [SDKs](https://docs.froog.tech/sdks/):

- [OpenAI Agents SDK](https://froog.tech/integrations/openai-agents-sdk/) (Python)

- [Claude Agent SDK](https://froog.tech/integrations/claude-agent-sdk/) (Python, TypeScript)

- [Vercel AI SDK](https://froog.tech/integrations/vercel-ai-sdk/) (TypeScript)

- [LangChain and LangGraph](https://froog.tech/integrations/langchain/) (Python)

- [Mastra](https://froog.tech/integrations/mastra/) (TypeScript)

- [Harbor and Terminal-Bench](https://froog.tech/integrations/harbor/) (Python): evals

- [AgentEnv](https://froog.tech/integrations/agentenv/) (Python): RL environments

All at [froog.tech/integrations](https://froog.tech/integrations/).

## Recipes

### A coding agent on your repo

```sh
$ froog env set ANTHROPIC_API_KEY                        # once per account
$ froog env set GH_TOKEN                                 # git and gh use it
$ froog environment add-file .gitconfig ~/.gitconfig
$ froog environment add-repo https://github.com/you/app
$ echo 'cd ~/app && npm ci' | froog environment setup -

$ froog new fix-login
$ froog jobs fix-login                                   # wait for the setup job to exit
$ froog prompt fix-login "In ~/app: fix the login redirect bug, run the tests, commit on a new branch, push it and open a pull request with gh"
$ froog stop fix-login
```

The agent keeps working if you disconnect; `froog events NAME` shows what it did. Or run it as a [background command](https://docs.froog.tech/jobs/) with [history](https://docs.froog.tech/history/):

```sh
$ froog exec fix-login --detach -- 'cd ~/app && claude -p "fix the login redirect bug and open a PR" --dangerously-skip-permissions'
$ froog logs fix-login JOB -f
```

The agent has root and reads every secret you give it: use narrowly scoped tokens.

### Parallel agents

```sh
$ froog new base
$ froog exec base -- 'git clone https://github.com/you/app && cd app && npm ci && npm test'
$ froog snapshot base --name app-ready
$ froog new try --from app-ready --count 3               # try-1, try-2, try-3 (or froog fork base try --count 3)

$ froog prompt try-1 "In ~/app: make the search page faster" < /dev/null > try-1.log 2>&1 &
$ froog prompt try-2 "In ~/app: make the search page faster" --agent codex < /dev/null > try-2.log 2>&1 &
$ froog prompt try-3 "In ~/app: make the search page faster" --agent gemini < /dev/null > try-3.log 2>&1 &
$ wait

$ froog exec try-2 -- 'cd app && git diff --stat && npm test'   # compare
$ froog delete try-1 -y && froog delete try-3 -y                # keep the best
```

Each copy has its own disk and your [variables](https://docs.froog.tech/env/); processes don't carry over. How many run at once is your [setup](https://docs.froog.tech/pricing/#capacity)'s slots.

## VS Code and Cursor over SSH

`froog ssh-config` adds your sandboxes to `~/.ssh/config` as `froog-NAME`, for Remote-SSH, plain `ssh`, `scp`, `rsync` and `git`:

```sh
$ froog ssh-config                 # all sandboxes, or name some; rerun after creating new ones
$ ssh froog-my-box
```

In the editor, run **Remote-SSH: Connect to Host**, pick `froog-my-box`, open `/home/user/app`. It uses the key `froog login` registered.

Entries use `ProxyCommand froog ssh-proxy`, which looks up the current address on each connection and starts a stopped sandbox (billed like any start; `--no-start` to fail instead). Host keys are checked against `~/.config/froog/known_hosts`. `--print` shows the block, `--file PATH` writes elsewhere, `--remove` deletes it.

- **Auto-stop counts from start, not activity.** An editor connection doesn't keep it running: `froog extend my-box --hours 8` or `--no-auto-stop`.

- Editor-forwarded ports work like `froog forward`. For a shareable URL use [`froog host`](https://docs.froog.tech/urls/).

## Private registries

Give every sandbox registry credentials with account [variables](https://docs.froog.tech/env/) and [secret files](https://docs.froog.tech/environment/). `--no-environment` sandboxes get none.

| Registry | Set up |
| --- | --- |
| npm, pnpm | `.npmrc` secret file with `//npm.pkg.github.com/:_authToken=${NPM_TOKEN}`, plus `froog env set NPM_TOKEN` |
| pip, uv | `froog env set PIP_INDEX_URL` / `UV_DEFAULT_INDEX` as `https://user:token@host/simple`, or a `.config/pip/pip.conf` secret file |
| Docker | In the setup script: `echo "$GHCR_TOKEN" \| docker login ghcr.io -u you --password-stdin`, or a `.docker/config.json` secret file |
| Cargo | `.cargo/config.toml` secret file, plus `froog env set CARGO_REGISTRIES_NAME_TOKEN` |
| Go modules | `froog env set GOPRIVATE` and `GH_TOKEN`; other hosts: `.git-credentials` secret file |
| Maven, Gradle | `.m2/settings.xml` or `.gradle/gradle.properties` secret file |

The registry must be publicly reachable (see [Network](https://docs.froog.tech/network/)). Sandbox outbound IPs aren't fixed, so use tokens, not IP allowlists.

## Network and outbound traffic

Outbound traffic is open. Inbound reaches a sandbox only through SSH, [public URLs](https://docs.froog.tech/urls/) and ports you open.

| Outbound | Any port, TCP and UDP, no egress charges. Port 25 (SMTP) is dropped: send email via an API or port 587/465. |
| --- | --- |
| Blocked | Other sandboxes, the host, `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`, `169.254.0.0/16`, `100.64.0.0/10`; IPv6 `fc00::/7`, `fe80::/10`, multicast and the host's range. |
| Outbound address | IPv4: the host's shared public address (no static outbound IPs). IPv6: the sandbox's own. |
| IPv6 address | One public address per sandbox (`froog info`, `ipv6` in the API). Kept across a [warm resume](https://docs.froog.tech/snapshots/#warm); a cold start or fork gets a new one. |
| Inbound | SSH (keys only), ports you open, ping (IPv6) and replies. Everything else is refused, so a server on `0.0.0.0` stays private until you open its port. For HTTPS with a hostname, use `froog host NAME PORT`. |
| DNS | 1.1.1.1 and 8.8.8.8. |
| Your computer | No route back. `froog forward NAME PORT --reverse` tunnels one port over SSH. |

### Open ports

```sh
$ froog port open my-box 27015/udp    # TCP if no protocol given
$ froog port list my-box             # 27015/udp at 203.0.113.7:40002
$ froog port close my-box 27015/udp
```

Rules live in froog's firewall, outside the VM, and survive stops, starts and restores; forks inherit them. Max 64 per sandbox, public URL ports included. Inside a sandbox use `"$(hostname)"` as the name. API: `GET`/`PUT`/`POST /v1/sandboxes/{name}/ports`, `DELETE /v1/sandboxes/{name}/ports/{port}/{protocol}` (key scope `sandbox.update`).

- **IPv6:** same port number on the sandbox's address, e.g. `[2a01:4f8:…::1:2]:27015`. A `--public` URL also opens its port here.

- **IPv4:** a forwarded public port (40000-49999) on the host's address, shown by `froog port list`, `froog info` and `ipv4.address`. It can change when the sandbox starts on another host, so look it up after each start. Max 16 per sandbox and 64 per account across running sandboxes; ports past that stay IPv6-only (`ipv4_note` says why). Public URL ports get none. Up to 4,096 tracked inbound IPv4 connections per sandbox.

### Restricting outbound traffic

froog doesn't filter egress further. `user` has passwordless `sudo` and could undo your rules, so run untrusted code as a second user without `sudo` or `docker`, and limit that user. This allows only DNS and HTTPS:

```sh
$ froog ssh my-box
user@my-box:~$ command -v nft || sudo apt-get install -y nftables   # sudo pacman -S nftables on Omarchy
user@my-box:~$ sudo useradd -m -s /bin/bash agent
user@my-box:~$ sudo nft -f - <<EOF
table inet egress {
  chain out {
    type filter hook output priority 0; policy accept;
    meta skuid $(id -u agent) oifname "lo" accept
    meta skuid $(id -u agent) udp dport 53 accept
    meta skuid $(id -u agent) tcp dport 443 accept
    meta skuid $(id -u agent) drop
  }
}
EOF
user@my-box:~$ sudo -u agent -H bash -lc 'cd ~ && ./run-task.sh'
```

Rules reset at every start; put them in your [setup script](https://docs.froog.tech/environment/) to reapply. The second user can't read `~/.froog` or froog's mode-600 files (secret files, the in-sandbox key). To allow hosts rather than ports, route that user through a filtering HTTP proxy.

## Security and isolation

### What separates sandboxes

- **A VM each:** QEMU/KVM with its own kernel, memory and disk. No shared kernel.

- **A confined VM process:** unprivileged, no capabilities, seccomp-sandboxed, read-only system, writes only its own VM directory.

- **Its own network port:** no access to other sandboxes, the host or private ranges; no spoofing. See [Network](https://docs.froog.tech/network/).

- **Its own disk:** copied from a base image scrubbed of keys, machine ids and logs.

- **Shared CPU and memory:** vCPUs are shared (unless dedicated); identical memory pages are deduplicated (KSM).

### Inside a sandbox

You are `user` with passwordless `sudo`. `froog prompt` runs agents with permission prompts off, because the VM is the boundary. Anything in the sandbox, including code an agent downloads, can read your [variables](https://docs.froog.tech/env/) (`~/.froog/env`), [secret files](https://docs.froog.tech/environment/), logins and its `froog` key. Give a sandbox only the credentials it needs; use `--no-environment` for untrusted code.

`--no-environment` only controls what froog writes at start. A fork or saved snapshot keeps everything on the source disk, secrets included. Build templates for untrusted code from a sandbox that never held credentials.

### Who can get in

- **SSH:** keys only, no password or root login. froog rewrites `~/.ssh/authorized_keys` from `froog keys` at every start and on every key change, so removed keys stop working at once and hand-added keys are dropped. Each sandbox's host key is pinned by the CLI.

- **API keys:** [scoped](https://docs.froog.tech/api-keys/), expiring, stored only as SHA-256 hashes.

- **The in-sandbox key:** reaches only its own sandbox; can't create, start, fork or delete. Replaced each start, revoked at stop.

- **froog's control plane:** holds its own key per sandbox for `exec`, files, setup, URLs and the desktop. Commands and their `env` values go over SSH stdin, never a command line. froog's operators can reach any sandbox.

- **Public URLs:** private by default (token, then a per-host cookie), on `froogusercontent.com` so they never share cookies with froog.tech. **Desktop links** keep their token after `#` and expire in 10 minutes.

### Secrets and data

Variables, secret files, setup scripts, telemetry headers and sandbox SSH keys are encrypted at rest (XChaCha20-Poly1305). Inside a sandbox they are plain files, so also in its snapshots.

| Data | Kept |
| --- | --- |
| Running sandbox's disk | Until stop or delete. Snapshots hourly and at stop, newest 3 kept. |
| Stopped sandbox's disk | 14 days (`snapshot_data_expired`). |
| Saved snapshots | Until you delete them, even after the sandbox. |
| Command history and output | 90 days, 512 MiB per account; none with [monitoring off](https://docs.froog.tech/data/). |
| Process samples, metrics | 7 days. |
| Process records | 72 hours after exit. |
| Deleted sandbox | VM, disk and automatic snapshots deleted; history and metrics too. |

Saved snapshots, stop snapshots and the newest automatic snapshot are copied off-host, encrypted, within minutes; a failed host restores from them. Work since the last snapshot is not copied, so keep what matters in git. Nothing is copied with [zero data retention](https://docs.froog.tech/data/). The control-plane database is backed up hourly, encrypted, off-site, kept 12 months.

Report security issues to [hello@froog.tech](mailto:hello@froog.tech); abuse from a sandbox to the same address with "Abuse" in the subject.

## Concepts, coming from other sandboxes

| froog | What it is | Similar to |
| --- | --- | --- |
| Sandbox | A full Linux VM with its own disk; runs until stopped or [auto-stopped](https://docs.froog.tech/sandboxes/#auto-stop), no session limit. | An E2B, Daytona or Modal sandbox |
| Saved snapshot (`new --from`) | A named disk new sandboxes start from, made by saving a set-up sandbox. | E2B template, Daytona snapshot, Modal image |
| Fork | A new sandbox from another's snapshot or current state. | Create from snapshot |
| Stop and start | Stop snapshots the disk and ends the VM. A start within 4 hours resumes with programs running; later ones boot from disk. | Pause and resume |
| The disk | Persists across stops. No separate volumes. | A volume |
| `exec`, background commands | Run and wait (up to 1 hour), or run in the background and follow output. | Running commands |
| Environment | Variables, repos, secret files and a setup script for every new sandbox. | Env vars and secrets |
| Public URL (`froog host`) | HTTPS for a port; private with a token unless public. | Preview links, tunnels |

Comparisons: [E2B](https://froog.tech/vs/e2b/), [Daytona](https://froog.tech/vs/daytona/), [Fly.io Sprites](https://froog.tech/vs/sprites/), [Modal](https://froog.tech/vs/modal/). From Runloop: [migration guide](https://froog.tech/blog/switching-from-runloop/).

## CLI reference

| `froog login` | Approve a code in the [dashboard](https://dash.froog.tech/), then register your SSH key. `--paste`, `--key KEY` or stdin for an API key. |
| --- | --- |
| `froog onboard [--yes]` | Guided first run: sign-in, SSH key, agent keys, first sandbox, first prompt. |
| `froog new [NAME]` | Start a sandbox. `--os ubuntu\|debian\|omarchy\|android`, `--size`, `--count N`, `--no-wait`, `-e KEY=VALUE`, `--label K=V`, `--file PATH=LOCAL`, `--host PORT[:public]`, `--setup-file FILE`, `--repo URL[#BRANCH]`, `--repo-dir DIR`, `--environment NAME`, `--no-environment`, `--from SAVED\|fsh_…` ([share code](https://docs.froog.tech/snapshots/#share)), `--visibility shared\|private`, `--no-snapshots` (`--ephemeral`: an [ephemeral](https://docs.froog.tech/pricing/#ephemeral) sandbox), `--no-monitoring`. Timers: `--ttl 4h` ([auto-stop](https://docs.froog.tech/sandboxes/#auto-stop), default 1h), `--no-auto-stop`, `--max-lifetime`, `--delete-after`, `--expires`, `--auto-start`. |
| `froog run -- CMD` | [One-off run](https://docs.froog.tech/jobs/): push this folder, run, print the cost, delete. `--push DIR`, `--no-push`, `--cwd`, `--timeout`, `--from`, `--size`, `-e`, `--keep`, `--json`. |
| `froog push NAME [DIR]` | Upload git-tracked files to `~/FOLDER` (`--to PATH`). |
| `froog list` · `froog info NAME` | Sandboxes and their cost this period (`--label`, `--prefix`, `--state`) · details of one (also `froog status NAME`). |
| `froog status [--check]` | API health and the signed-in account. `--check` exits 1 if either fails. |
| `froog label NAME KEY=VALUE KEY-` | Set or remove labels. |
| `froog ssh NAME [-- CMD]` · `froog scp SRC DEST` | Shell or command over SSH · copy files (`box:~/f`, `-r`). |
| `froog exec NAME -- CMD` | Run through the API, streaming output. `--timeout SECS` (max 3600, exit 124), `--cwd`, `-e`, `--detach`, `--no-stdin`. Piped stdin is sent (1 MiB). |
| `froog jobs` · `logs NAME JOB [-f]` · `kill` · `stdin NAME JOB [TEXT] [--close]` | Background commands: list, follow, stop, write input (started with `--detach --stdin-open`). |
| `froog wait NAME --port P` | [Wait](https://docs.froog.tech/urls/#wait-port) for a listening port. `--timeout` (default 60s, max 10m), exit 1 on timeout. |
| `froog history NAME [ID] [-f]` · `froog ps NAME [--history\|--records]` | Past commands and output (90 days) · processes now or sampled. |
| `froog metrics NAME [--history]` | CPU, memory, disk, network. |
| `froog host NAME [PORT] [--public] [--subdomain S] [--rm]` | HTTPS URL for a port, private unless `--public`. No PORT lists them. |
| `froog url-token create\|list\|revoke NAME PORT` | [Per-viewer tokens](https://docs.froog.tech/urls/#url-tokens) (`--ttl`, `--label`). |
| `froog port open\|close\|list NAME PORT[/udp]` | Raw port on the IPv6 address ([Network](https://docs.froog.tech/network/)). |
| `froog forward NAME [LOCAL:]PORT` | Port to `localhost` over SSH. `--bind ADDR`, `--reverse`. |
| `froog ssh-config [NAME…]` | Add sandboxes to `~/.ssh/config` as `froog-NAME` ([VS Code and Cursor](https://docs.froog.tech/editor/)). `--no-start`, `--print`, `--remove`. |
| `froog desktop NAME` · `froog browser NAME` | Desktop or Chrome only in your browser. `--theme`, `--print`, `--tunnel`, `--profile DIR`. |
| `froog stop NAME` · `--all` · `--force` | Pre-stop hook, snapshot, stop. `--force` keeps the last good snapshot if this fails ([Stopping safely](https://docs.froog.tech/sandboxes/#stopping)). `--no-wait`, `--status ID`. |
| `froog start NAME` | Resume. `--size`, `--ttl`, `-e`, `--environment [NAME]`, `--no-environment` ([logins removed](https://docs.froog.tech/environment/#scrub)). Kept for later starts. |
| `froog extend NAME [TTL]` | Move [auto-stop](https://docs.froog.tech/sandboxes/#auto-stop) (`12h`, `0` off). `--max-lifetime`, `--delete-after`, `--expires` ([deadline](https://docs.froog.tech/sandboxes/#expires)), `--[no-]auto-start` ([auto-start](https://docs.froog.tech/sandboxes/#auto-start)). |
| `froog rename NAME NEW` · `froog delete NAME [-y]` | Rename · delete (saved snapshots stay). |
| `froog snapshot NAME [--name L] [--delete S]` | Save or delete a snapshot. |
| `froog snapshots [NAME] [--rm SAVED]` | A sandbox's snapshots, or your saved ones. |
| `froog snapshot share\|shares\|unshare SAVED` | [Share codes](https://docs.froog.tech/snapshots/#share). |
| `froog snapshot ls\|pull SNAPSHOT [PATH]` | [Files inside a snapshot](https://docs.froog.tech/snapshots/#snapshot-files) (`SANDBOX@SNAP`), `-o DIR`. |
| `froog fork NAME[@SNAP] NEW` | Copy. `--count`, `--size`, `-e`, `--ttl`, `--no-snapshots` (`--ephemeral`), `--no-environment` ([logins removed](https://docs.froog.tech/environment/#scrub)), `--environment NAME`. |
| `froog restore NAME@SNAP` | Roll back in place (`@latest` recovers from `error`). |
| `froog prompt NAME "TEXT"` | Run a coding agent turn (exit 0 done, 1 failed, 130 interrupted). `--agent claude\|codex\|gemini\|opencode\|pi\|amp\|cursor\|prime\|kimi\|mistral`, `--model`, `--effort`, `--fast`, `--new`, `--conversation`, `--attach`, `--detach`, `--list-models`. |
| `froog conversations` · `events` · `steer` · `interrupt` | Agent conversations (`--delete`) · events (`--follow`) · message the running turn · stop turns. |
| `froog ai` | [AI credentials](https://docs.froog.tech/ai-proxy/): `proxy`, `profiles`, `key-add`, `key-rm`, `switch`, `env`, `use`, `usage`, `block\|unblock`. |
| `froog subscriptions` | Claude and ChatGPT sign-ins: `login\|logout claude\|chatgpt`. |
| `froog mcp [--docs]` | [MCP server](https://docs.froog.tech/mcp/) on stdio: `claude mcp add froog -- froog mcp`. `--docs`: the [docs server](https://docs.froog.tech/ai-tools/). |
| `froog env list\|set\|rm` | [Variables](https://docs.froog.tech/env/) for new sandboxes (`set NAME` reads stdin). |
| `froog environment show\|add-repo\|rm-repo\|repo-setup\|setup\|add-file\|rm-file` | Repos, files, setup scripts (`--env NAME`). |
| `froog environment list\|create\|rm\|rename\|default\|versions\|upgrade` | [Named environments](https://docs.froog.tech/environment/#environments) and [versions](https://docs.froog.tech/environment/#versions). |
| `froog keys list\|add\|rm` | SSH keys. |
| `froog api-key list\|create\|rotate\|revoke\|actions` | [Scoped keys](https://docs.froog.tech/api-keys/): `--preset`, `--actions`, `--sandbox`, `--label`, `--env` ([environment](https://docs.froog.tech/api-keys/#env-keys)), `--ttl 30d\|never`. |
| `froog github connect\|repos\|token-repos\|disconnect` | [GitHub connection](https://docs.froog.tech/github/). |
| `froog seaeye` · `job` · `logs` · `public on\|off` | [Seaeye](https://docs.froog.tech/seaeye/) jobs and settings. |
| `froog webhooks list\|add\|update\|deliveries\|rm\|rotate\|test` | Signed state-change notifications. |
| `froog inbox create\|list\|rm\|messages\|read\|wait\|attach\|detach\|billing` | [Tokenmail](https://docs.froog.tech/inboxes/), $2/month. `wait ADDR --code` (or `--link`). |
| `froog inbox threads\|thread\|search\|label\|attachment\|events` | Read a mailbox. |
| `froog inbox send\|reply\|forward\|drafts` | Send (not turned on yet). |
| `froog inbox domain\|rules\|forwarding\|settings\|metrics` | Domains, allow/block lists, forwarding, inbox settings. |
| `froog billing` | Setup, wallet, usage, prices. |
| `froog billing capacity [default=3 small:ephemeral=2 large:dedicated=1\|none]` | Show or set your [setup](https://docs.froog.tech/pricing/#capacity). |
| `froog billing card` · `cap N\|off` · `portal` | [Card](https://docs.froog.tech/pricing/#card) · [spending cap](https://docs.froog.tech/pricing/#spend-cap) · Stripe portal. |
| `froog wallet [pay N\|quote N\|auto N\|off]` | [Wallet](https://docs.froog.tech/pricing/#wallet) balance, top-up, auto top-up. |
| `froog usage [--month M]` · `froog usage NAME [--since] [--until]` | Month's cost · one sandbox's hours and cost. |
| `froog limits` | Sandboxes at once, sizes, [start limits](https://docs.froog.tech/limits/), saved snapshots. |
| `froog alerts [on\|off KIND...]` | [Emails](https://docs.froog.tech/sandboxes/#alerts): `disk`, `stop_refused`, `unresponsive`, `rebuilt`, `plan_nudge`, `billing`, and `auto-rebuild`. |
| `froog audit` | [Audit log](https://docs.froog.tech/audit/). `--action`, `--sandbox`, `--limit`, `--cursor`, `--export csv\|ndjson`. |
| `froog telemetry [set URL -H K=V\|unset]` | [OpenTelemetry export](https://docs.froog.tech/telemetry/). |
| `froog data-retention` | [Data controls](https://docs.froog.tech/data/). |
| `froog connections` · `add-email` · `primary` · `rm` | [Sign-in methods](https://docs.froog.tech/sign-in/). |
| `froog org [list\|create\|switch]` | [Organizations](https://docs.froog.tech/organizations/). `--org ORG` (or `FROOG_ORG`) on any command. |
| `froog org members\|invite\|revoke-invite\|accept\|remove\|leave` | Members and [invites](https://docs.froog.tech/organizations/#org-invites). |
| `froog org role\|cap\|transfer\|seats\|default-visibility\|rename\|delete` | Roles, [caps](https://docs.froog.tech/organizations/#org-seats), owner, seats, settings. |
| `froog share NAME` · `unshare NAME` | Share with the organization · make [private](https://docs.froog.tech/organizations/#org-sandboxes). |
| `froog dashboard` | Open the dashboard signed in (one-time link, full-access key). |
| `froog account [close\|reopen]` · `froog deletion status ID` | Account, [close](https://docs.froog.tech/data/#close-account) or reopen within 30 days · deletion progress. |
| `froog feedback "TEXT"` | Message the froog team. |

Without a name, `ssh` and `exec` use the last sandbox you created or started here. Inside a sandbox, `self` means that sandbox in the CLI, the API (`/v1/sandboxes/self/…` with the in-sandbox key), the SDKs and [MCP](https://docs.froog.tech/mcp/).

Every command takes `--json`. `FROOG_API_KEY` and `FROOG_API_URL` override `~/.config/froog/config.json`. Also: `froog completions bash|zsh|fish`, `froog self-update`, `froog logout`.

## HTTP API

Base URL `https://api.froog.tech/v1`. Send an API key from the [dashboard](https://dash.froog.tech/) as a bearer token. Keys expire after 90 days by default (`401 api_key_expired`) and can be [scoped](https://docs.froog.tech/api-keys/). JSON in and out. Errors: `{"error": {"code", "message", "request_id"}}`; the id is also in `X-Request-Id`. Quote it when reporting a problem.

**Rate limit.** 10,000 requests per 60 seconds per account (all keys and sessions together), or per IP without a valid key. Responses carry `RateLimit-Limit`, `-Remaining`, `-Reset` and `-Policy`. Past it: `429 account_rate_limited` or `429 ip_rate_limited`, with `Retry-After`.

```sh
$ curl -s https://api.froog.tech/v1/sandboxes \
    -H "Authorization: Bearer $FROOG_API_KEY" -H "Content-Type: application/json" \
    -d '{"name": "ci-1", "size": "small"}'
$ curl -s https://api.froog.tech/v1/sandboxes/ci-1/exec \
    -H "Authorization: Bearer $FROOG_API_KEY" -H "Content-Type: application/json" \
    -d '{"command": "uname -a", "timeout_secs": 60}'
{"exit_code":0,"stdout":"Linux froog-… 6.8.0 …\n","stderr":""}
```

**Lifecycle.** Create, stop, start, fork and restore return `202` and continue in the background; poll `GET /sandboxes/{name}` until `state` is `running` or `stopped`. Errors on starting a sandbox:

- `402 capacity_full`: no free [setup](https://docs.froog.tech/pricing/#capacity) slot of that size and vCPU kind. `402 capacity_unpaid`: this month's charge failed.

- `409 no_capacity` on a create, fork or start: every host is full right now, so nothing was made or started. Try again in a few minutes or at a smaller size.

- `402 card_required` / `429 limit_reached` / `402 free_lite_in_use`: free lite without a card / a second lite / that card's lite runs in another account.

- `403 xlarge_coming_soon`, `403 account_closed`.

- `429 member_limit_reached`, `402 team_member_cap_reached`: [organization caps](https://docs.froog.tech/organizations/#org-seats).

- `429 limit_reached` with `Retry-After`: a [start limit](https://docs.froog.tech/limits/) (`GET /limits`).

**Retries.** Send `Idempotency-Key` (up to 255 characters) with `POST /sandboxes` and `/fork`. A retry with the same key within 24 hours replays the first response (`Idempotent-Replayed: true`). Same key, different body: `422 idempotency_key_reused`; first still running: `409 idempotency_key_in_use`. Errors aren't replayed. The CLI does this for you.

```sh
$ KEY=$(uuidgen)   # reuse for every retry
$ curl -s --retry 3 https://api.froog.tech/v1/sandboxes \
    -H "Authorization: Bearer $FROOG_API_KEY" -H "Idempotency-Key: $KEY" \
    -H "Content-Type: application/json" -d '{"name": "ci-2"}'
```

**Streamed exec.** `"stream": true` (or `Accept: application/x-ndjson`) on `/exec` returns one JSON object per line: `started`, then `stdout`/`stderr` chunks, then one `exit` (or `error` if the connection broke). Hanging up stops the command.

```sh
$ curl -sN https://api.froog.tech/v1/sandboxes/ci-1/exec \
    -H "Authorization: Bearer $FROOG_API_KEY" -H "Content-Type: application/json" \
    -d '{"command": "make test", "stream": true}'
{"type":"started","command_id":"cmd_…"}
{"type":"stdout","data":"ok  build\n"}
{"type":"exit","exit_code":0,"timed_out":false}
```

**Watching files and ports.** NDJSON streams open up to `timeout_secs` (default 3600), then reconnect. `/files/watch` sends `ready`, then `{"type":"change","event":"create"|"modify"|"delete","path"}`. `/ports/watch` sends `{"type":"open"|"close","port","protocol":"tcp"}`, listening ports first. Each holds one of the sandbox's 8 command slots.

| GET | `/sandboxes?label=&name=&name_prefix=&state=&sort=&limit=&cursor=` | List, oldest first. With `limit` (1-200), page with `X-Next-Cursor` |
| --- | --- | --- |
| POST | `/sandboxes` | Create: `{name?, size?, cpu?, adaptive?, max_vcpus?, os?, count?, ttl_secs?, auto_start?, max_lifetime_secs?, delete_after_secs?, expires_in_secs?, setup?, environment?, environment_name?, from?, snapshots?, monitoring?, env?, files?, labels?, repo?}`. See [cpu](https://docs.froog.tech/sandboxes/#dedicated), [adaptive](https://docs.froog.tech/sandboxes/#adaptive), [ttl](https://docs.froog.tech/sandboxes/#auto-stop), [lifetime](https://docs.froog.tech/sandboxes/#lifetime), [repo](https://docs.froog.tech/environment/#sandbox-repo), [from](https://docs.froog.tech/snapshots/#share) |
| GET · PATCH · DELETE | `/sandboxes/{name}` | Show · change `{name?, ttl_secs?, labels?, max_lifetime_secs?, delete_after_secs?, expires_in_secs?, auto_start?}` · delete (saved snapshots stay) |
| GET | `/sandboxes/{name}/metrics` · `/metrics/history` | CPU, memory, disk, network now · 30-second samples, 7 days |
| GET | `/sandboxes/{name}/usage?since=&until=` | Running time and cost |
| POST | `/sandboxes/{name}/exec` | `{command, timeout_secs?, cwd?, env?, stream?, stdin?, stdin_b64?}` → `{exit_code, stdout, stderr, timed_out}`. Max 3600 s, then exit 124. [stdin](https://docs.froog.tech/jobs/#stdin) up to 1 MiB |
| POST | `/sandboxes/{name}/wait` | [Wait for a port](https://docs.froog.tech/urls/#wait-port): `{port, timeout_secs?}` (up to 600) |
| GET · POST | `/sandboxes/{name}/jobs` | List · start a background command `{command, cwd?, env?, stdin?, stdin_open?}` |
| GET | `/sandboxes/{name}/jobs/{id}?offset=N` | State, exit code, output from `offset` |
| POST | `/sandboxes/{name}/jobs/{id}/stop` · `/stdin` | Stop · [write or close input](https://docs.froog.tech/jobs/#job-stdin) `{data?, data_b64?, close?}` |
| GET | `/sandboxes/{name}/command-history[/{id}[/logs]]` | Past commands, newest first · one · its stored output |
| GET | `/sandboxes/{name}/processes[/samples\|/records]` | Processes now · 30-second samples (7 days) · every process seen (72 hours) |
| GET · POST | `/sandboxes/{name}/urls` | List · add a URL `{port, public?, subdomain?, title?}`, private unless `public` |
| DELETE | `/sandboxes/{name}/urls/{port}` | Remove a URL |
| GET · POST · DELETE | `/sandboxes/{name}/urls/{port}/tokens[/{id}]` | [Viewer tokens](https://docs.froog.tech/urls/#url-tokens): list · make `{ttl_secs?, label?}` · revoke |
| GET · DELETE | `/sandboxes/{name}/files?path=P` | File details or folder entries · delete (`&recursive=true`) |
| GET · PUT | `/sandboxes/{name}/files/content?path=P` | Download · upload raw bytes (100 MiB, `&mode=755`) |
| PUT | `/sandboxes/{name}/files/archive?path=DIR` | Unpack a `.tar.gz` into a folder |
| POST | `/sandboxes/{name}/files/move` · `/mkdir` · `/permissions` | `{from, to}` · `{path, mode?}` · `{path, mode, recursive?}` |
| POST | `/sandboxes/{name}/files/download-url` · `/upload-url` | A link that needs no auth: `{path, expires_in?}` (default 15 min, up to 24 h) |
| GET | `/sandboxes/{name}/files/search?pattern=&path=` | Paths matching a glob |
| GET | `/sandboxes/{name}/files/find?pattern=&path=&regex=` | Lines containing text or a regex |
| POST | `/sandboxes/{name}/files/replace` | `{paths, pattern, new_value}`: plain-text replace in up to 100 files |
| GET | `/sandboxes/{name}/files/watch` · `/ports/watch` | [Stream changes](https://docs.froog.tech/api/#watch) |
| POST | `/sandboxes/{name}/stop` | Run `~/.froog/pre-stop`, snapshot, stop: `{force?}` → `stop_id` |
| GET | `/stops/{id}` | `status`: `pending`, `failing`, `completed`, `superseded`, `failed` (see [Stopping safely](https://docs.froog.tech/sandboxes/#stopping)) |
| POST | `/sandboxes/{name}/start` | From the latest snapshot: `{size?, ttl_secs?, environment?, environment_name?, env?}`, kept for later starts |
| POST | `/sandboxes/{name}/fork` | `{name, snapshot?, count?, size?, env?, ttl_secs?, snapshots?, environment?, environment_name?}`; `environment: false` [removes your logins](https://docs.froog.tech/environment/#scrub) |
| POST | `/sandboxes/{name}/restore` | `{snapshot}` (id or label) |
| GET · POST · DELETE | `/sandboxes/{name}/snapshots` | List · save `{label?}` (`402 credit_required` past 10 saved without a day of the extras in the wallet) · delete all automatic ones |
| GET · DELETE | `/sandboxes/{name}/snapshots/{snap}` | One snapshot (`latest` works) · delete |
| GET | `/sandboxes/{name}/snapshots/{snap}/files[/download]` | [Files inside](https://docs.froog.tech/snapshots/#snapshot-files), sandbox may be stopped |
| GET | `/snapshots` | Every snapshot of the account, newest first |
| GET | `/saved-snapshots` | Saved snapshots. Start one with `POST /sandboxes {"from": NAME}` |
| GET · DELETE | `/saved-snapshots/{name}` | One (poll `status` until `available`) · remove |
| GET · POST · DELETE | `/saved-snapshots/{name}/shares[/{id}]` | [Share codes](https://docs.froog.tech/snapshots/#share): list · make (code shown once) · revoke |
| GET | `/saved-snapshots/{name}/files[/download]` | Files inside a saved snapshot |
| POST | `/sandboxes/{name}/desktop` · `/browser` | A viewer link (desktop, or Chrome only), `?theme=dark\|light` |
| GET | `/sandboxes/{name}/ssh` | SSH host, user, port, host key |
| POST | `/sandboxes/{name}/touch` | Record activity (doesn't move auto-stop) |
| POST | `/sandboxes/{name}/share` · `/unshare` | Share with the organization · make private |
| POST | `/sandboxes/{name}/github-token` | A one-hour GitHub token `{owner?}` |
| POST | `/sandboxes/{name}/prompt` · `/prompts` | Prompt an agent and wait · queue (`202`): `{prompt, agent?, model?, effort?, fast?, new?, conversation_id?, attachments?, timeout_secs?}`. `400 provider_not_configured` without credentials |
| GET | `/sandboxes/{name}/prompts/{id}[/events]` | Status and result · its events (JSON, SSE, NDJSON) |
| GET | `/sandboxes/{name}/events` · `/conversations[/{id}]` | All agent events · conversations (`DELETE` one) |
| POST | `/sandboxes/{name}/steer` · `/interrupt` | `{message, conversation_id?}` · `{conversation_id?}` |
| GET | `/provider-models` · `/subscriptions` | Harnesses and models (no key) · Claude and ChatGPT sign-ins |
| GET · PUT · DELETE | `/env[/{name}]` | [Environment variables](https://docs.froog.tech/env/) (masked) · set `{value}` · remove |
| GET · PATCH | `/environment` | Default [environment](https://docs.froog.tech/environment/) · change `{repos?, setup?, repo_setup?}` (new [version](https://docs.froog.tech/environment/#versions)) |
| GET · POST | `/environments` | [Environments](https://docs.froog.tech/environment/#environments) · create `{name, copy_from?, default?}` |
| GET · PATCH · DELETE | `/environments/{env}` | One · change (also `name`, `default`) · delete |
| PUT · DELETE | `/environment/files`, `/environments/{env}/files` | Add `{path, content}` · remove `?path=` |
| GET · POST | `/environments/{env}/versions` · `/upgrade` | Versions · move sandboxes to the latest `{sandboxes?}` |
| GET · POST · DELETE | `/ssh-keys[/{id}]` | List · add `{name, public_key}` · remove |
| GET · POST · DELETE | `/api-keys[/{id}]` | List · create `{label?, ttl_days?, never_expires?, preset? \| actions?, sandboxes?, labels?, environments?}` (secret once; see [scopes](https://docs.froog.tech/api-keys/)) · revoke |
| POST | `/api-keys/{id}/rotate` | New secret, same scope and expiry |
| GET · POST · PATCH · DELETE | `/webhooks[/{id}]` | List · add `{url, events?, name?}` (secret once) · change · remove |
| GET · POST | `/webhooks/{id}/deliveries` · `/rotate` · `/test` | Delivery log (30 days) · new secret · ping |
| GET · POST | `/inboxes` | [Tokenmail](https://docs.froog.tech/inboxes/) inboxes, $2/month · create `{username?, name?, sandbox?}` |
| GET · PATCH · DELETE | `/inboxes/{inbox}` | Show · `{name?, sandbox?}` · delete |
| GET · DELETE | `/inboxes/{inbox}/messages[/{id}[/raw]]` | Messages with `codes` and `links` · one · delete |
| GET | `/inboxes/{inbox}/wait?sender=&subject=&timeout=` | Next matching message (up to 120 s) |
| GET · POST | `/inboxes/billing[/checkout]` | Inbox subscription · buy more `{quantity?}` |
| GET · POST | `/github` · `/github/connect` | [GitHub connection](https://docs.froog.tech/github/) · install link |
| GET · PUT · DELETE | `/github/repos` · `/github/token-repos` · `/github/installations/{id}` | Repos the app sees · limit the sandbox token · unlink |
| GET · PUT | `/seaeye` · `/seaeye/settings` | [Seaeye](https://docs.froog.tech/seaeye/) overview · public repos |
| GET | `/seaeye/runs[/{id}]` · `/seaeye/jobs/{id}[/logs]` | Runs · jobs and logs |
| GET | `/account` | Account and limits |
| GET · PATCH | `/account/alerts` | [Email alerts](https://docs.froog.tech/sandboxes/#alerts), `auto_rebuild` |
| GET · DELETE | `/account/connections[/{id}]` | [Sign-in methods](https://docs.froog.tech/sign-in/) · remove (not the last: `409 last_connection`) |
| POST · PUT | `/account/connections/email[/verify]` · `/account/primary` | Add an email by code · choose the address for emails |
| GET · PATCH | `/account/data-retention` | [Data controls](https://docs.froog.tech/data/) (changing needs a dashboard session) |
| POST | `/account/close` · `/account/reopen` | [Close](https://docs.froog.tech/data/#close-account) (header `X-Froog-Confirm-Close: EMAIL`) · reopen within 30 days |
| GET | `/deletion-operations/{id}` | Progress of a deletion |
| GET | `/audit` · `/audit/export?format=csv\|ndjson` | [Audit log](https://docs.froog.tech/audit/) (`account.admin`) · 90 days as a file |
| GET · POST · PATCH · DELETE | `/orgs[/{org}]`, `/orgs/active` | [Organizations](https://docs.froog.tech/organizations/): list · create · change · delete · switch |
| GET · PATCH · DELETE · POST | `/orgs/{org}/members[/{m}]` · `/invites[/{id}]` | Members and [caps](https://docs.froog.tech/organizations/#org-seats) · invite `{email, role?}` · revoke |
| POST · PUT | `/orgs/{org}/leave` · `/transfer` · `/seats` | Leave · new owner · seats |
| GET · POST | `/org-invites/{token}` · `/accept` | See · accept an invite |
| GET | `/usage?month=YYYY-MM` | Month's setup charge and usage-billed lines |
| GET | `/billing` | Card, setup, rates, free lite, wallet, cap; `stopped_for` explains a billing stop |
| PUT | `/billing/capacity` | Set the whole [setup](https://docs.froog.tech/pricing/#capacity) `{slots: [{size, cpu, count}]}`. Adding charges now (`402` if declined) |
| POST | `/billing/capacity/pay` | Stripe page to pay an unpaid setup charge |
| POST · GET | `/billing/card` · `/billing/cards` | [Add a card](https://docs.froog.tech/pricing/#card) (Checkout URL) · list |
| DELETE · PUT | `/billing/cards/{id}` · `/default` | Remove (`409 card_needed` if the only card on a billed setup) · make default |
| GET | `/billing/history?limit=` | Wallet history |
| PUT | `/billing/spend-cap` | [Cap](https://docs.froog.tech/pricing/#spend-cap) `{usd}`, `null` removes |
| GET · POST · PUT | `/billing/wallet/quote` · `/pay` · `/auto-topup` | [Wallet](https://docs.froog.tech/pricing/#wallet): bonus quote · add `{amount_usd, auto_topup?, card_id?}` · auto top-up `{amount_usd}` |
| POST | `/billing/portal` | Stripe portal for cards and address |
| POST | `/dashboard-link` | One-time dashboard sign-in link, 15 minutes (full-access key) |
| GET · PUT · DELETE | `/telemetry` | [OpenTelemetry](https://docs.froog.tech/telemetry/) endpoint `{endpoint, headers}` |
| POST | `/feedback` | `{message}` |

## SDKs and OpenAPI

The API is described in [froog.tech/openapi.json](https://froog.tech/openapi.json) (OpenAPI 3.1). Three dependency-free clients are generated from it, one file each (download again to update):

```sh
# Python 3.8+, imported as froogdev
$ curl -fsSL https://froog.tech/sdk/froog.py -o froogdev.py
# TypeScript: Node 18+, Deno, Bun or a browser (also as ../sdk/froog.ts)
$ npm install froogdev
# Go 1.21+, package froog
$ mkdir -p froog && curl -fsSL https://froog.tech/sdk/froog.go -o froog/froog.go
```

Files: [froog.py](https://froog.tech/sdk/froog.py), [froog.ts](https://froog.tech/sdk/froog.ts), [froog.go](https://froog.tech/sdk/froog.go). `create` waits until the sandbox runs. Leaving the `with` / `await using` scope (or Go's `Delete`) deletes it, unless created with `keep=True`.

```sh
# Python
from froogdev import Froog
froog = Froog()                                   # FROOG_API_KEY from the environment
with froog.sandboxes.create(size="small", env={"TENANT_ID": "42"}) as sb:
    sb.files.write("app.py", "print('hi')")
    print(sb.exec("python3 app.py", check=True).stdout)   # check=True raises CommandError on non-zero exit
    for e in sb.exec_stream("make test"):
        print(e.get("data", ""), end="")

// TypeScript
import { Froog } from "froogdev";
const froog = new Froog({ apiKey: process.env.FROOG_API_KEY });
await using sb = await froog.sandboxes.create({ size: "small" });
const r = await sb.exec("uname -a", { cwd: "/tmp", timeout: 60 });
for await (const e of sb.execStream("make test")) if (e.type === "stdout") process.stdout.write(e.data);

// Go
c := froog.New("")
sb, err := c.Sandboxes.Create(ctx, froog.CreateSandbox{Size: froog.Ptr(froog.SizeSmall)})
if err != nil { return err }
defer sb.Delete(context.Background())
r, err := sb.Exec(ctx, "uname -a", &froog.ExecOptions{Cwd: "/tmp", Timeout: time.Minute})
```

The sandbox object has:

- `exec(cmd, cwd=, env=, stdin=, timeout=)`, `exec_stream(...)`

- `files.read`, `read_text`, `write`, `list`, `info`, `exists`, `remove`, `mkdir`, `move`, `watch(path)`

- `start`, `stop` (both wait), `fork(name)`, `delete`

- `snapshot(label)`, `host(port)` (the URL), `metrics`, `refresh`

- `wait_for_port(port, timeout)`: up to 600 s, then a `408 timeout` error

`froog.sandboxes.get(name)` and `froog.sandboxes.list(label=["team=a", "tier"])` (all labels must match) return sandboxes that are never deleted at block end. Go: `c.Sandbox(name)` makes a handle without a request.

Background commands run as [jobs](https://docs.froog.tech/jobs/) and survive the connection:

```sh
server = sb.spawn("npm run dev", cwd="app", env={"PORT": "3000"})
sb.wait_for_port(3000)
print(sb.host(3000), server.logs())
server.kill()

build = sb.spawn("make build")
for chunk in build.follow(): print(chunk, end="")
print(build.wait())                                # exit code
p = sb.process("job_…")                            # reconnect later
sb.processes()                                     # all, newest first

repl = sb.spawn("python3 -i", stdin_open=True)    # TS stdinOpen, Go StdinOpen
repl.write("print(6 * 7)\n")
repl.close_stdin()
```

Python also has `AsyncFroog`, the same methods as coroutines.

Each client also has one flat method per `operationId` (`create_sandboxes(body, idempotency_key=)`, `wait_until`, `exec`…): path parameters, then body, then query.

Errors raise `FroogError` (Go: `*froog.Error`) with the HTTP status, error `code`, message and request id. TypeScript and Go include types for every request and response.

## Limits

`froog limits` shows yours and what you've used.

- Running sandboxes: your [setup](https://docs.froog.tech/pricing/#capacity) plus the free lite.

- Starts: 20 a minute, 100 an hour, 500 a day (5, 25, 75 before your first payment), and at least as many a minute as your setup holds.

- CI runners at once: 3 before your first payment, 10 after. Ask for more.

- Names: 1–40 lowercase letters, digits and dashes. Up to 100 sandboxes per `new` or `fork` call, 20 SSH keys, 32 labels per sandbox.

- API: 10,000 requests per 60 s per IP (per /64 on IPv6).

- `exec`: 1 MiB output per stream, 1 MiB stdin, 1-hour timeout, 8 at once per sandbox.

- Hard lifetime up to 30 days; auto-delete up to 365 days after a stop. Pre-stop hook: 60 s.

- Public URLs: 50 per sandbox, 100 live viewer tokens each, 20 new names a day per account.

- Command output kept 90 days, up to 512 MiB per account. Process samples kept 7 days.

- Webhooks: 10 endpoints, 8 tries per event.

- Tokenmail: 100 inboxes per account, one per VM; messages up to 10 MB and 50 recipients, 100 an hour per inbox, kept 30 days.

- GitHub: sandbox token lasts 1 hour, up to 100 repositories. CI jobs run up to 6 h 15 min, listed 30 days.

- Email codes: 5 per address and network, 20 per network and 30 per address an hour, 5 tries each. Agent registrations: 10 per network an hour.

- Abuse (mining, spam, scanning) or a disputed payment suspends the account: keys stop working, sandboxes stop, disks are kept.

## Troubleshooting

Start with `froog info NAME` and `froog status --check`. Full error list: [API](https://docs.froog.tech/api/).

| Problem | Fix |
| --- | --- |
| `Permission denied (publickey)` | `froog keys add ~/.ssh/id_ed25519.pub`. |
| `Host key verification failed` (plain ssh, editor) | Old hand-written `~/.ssh/config`. Use `froog ssh-config` ([editors](https://docs.froog.tech/editor/)). |
| `409 conflict` | Sandbox isn't running: `froog start NAME`. |
| Sandbox in `error` | `froog info NAME` says why. froog rebuilds a lost VM from its last snapshot; else `froog start NAME` or `froog restore NAME@latest`. Never ran: delete and recreate. See [Errored sandboxes](https://docs.froog.tech/sandboxes/#rebuild). |
| Stopped by itself | Auto-stop timer (counts from start: `froog extend NAME --hours 8`), failed monthly charge, or the free lite was interrupted. `froog billing` says which. |
| `sandbox.degraded`, processes ended | Host or VM restarted; disk intact. Run services from the [setup script](https://docs.froog.tech/environment/). |
| `409 no_capacity` | Every host is full right now; nothing was created. Retry in a few minutes, or use a smaller size or shared vCPUs. |
| `402 capacity_full` · `402 card_required` | No free slot: stop one or add one (`froog billing capacity default=2`). Lite needs a card (`froog billing card`). See [slots](https://docs.froog.tech/pricing/#capacity). |
| `402 capacity_unpaid` | Monthly charge failed: **Pay now** on Billing, or `froog billing card`. Retried hourly. |
| `402 authentication_required` | Bank wants confirmation: pay on the linked Stripe page, or use another card. |
| `402 insufficient_balance` · `402 spend_cap_reached` · `402 credit_required` | Wallet empty or at cap: `froog wallet pay 20`, `froog billing cap 100`, or remove a saved snapshot. See [wallet](https://docs.froog.tech/pricing/#wallet). |
| `404 org_not_found` · `403 org_role_forbidden` · `403 sandbox_private` | Wrong [org](https://docs.froog.tech/organizations/), role too low, or a teammate's private sandbox. `froog org` shows the scope. |
| `429 member_limit_reached` · `402 team_member_cap_reached` | Org cap: stop an org sandbox or ask an admin (`froog org cap`). |
| `429 limit_reached` | Message names the limit. `froog limits`; see [Limits](https://docs.froog.tech/limits/). |
| `snapshot_data_expired` | Stopped over 14 days. Restore from a saved snapshot, or delete. |
| `fast_mode_not_supported` | `froog prompt --list-models`. |
| `no_running_turn` | Nothing to steer. Send a prompt. |
| `provider_not_configured` (exit 78) | `froog env set ANTHROPIC_API_KEY` ([agents](https://docs.froog.tech/agents/)) and restart, or log in inside. |
| Variable, secret or repo missing | Applied at next start; none with `--no-environment`. Non-login shells: `set -a; . ~/.froog/env; set +a`. |
| Setup or clone failed | `froog jobs NAME`, `froog logs NAME JOB`. Private repos need `GH_TOKEN`. |
| Public URL doesn't answer | Check the port listens: `froog exec NAME -- 'ss -ltn'`. First visit waits for a certificate. Iframes: use `--public`. |
| Private IP or port 25 unreachable | Blocked. See [Network](https://docs.froog.tech/network/). |
| Stop refused (`stop_refused_at`) | Snapshot failed, usually full disk. Free space, or `froog stop NAME --force`. See [Stopping safely](https://docs.froog.tech/sandboxes/#stopping). |
| Exit 137 | SIGKILL; `oom_killed: true` means out of memory. Use a larger `--size`. |
| Not answering (`unresponsive_since`) | Wait a few minutes, then `froog stop NAME --force && froog start NAME`. No snapshot yet: email us. See [Not answering](https://docs.froog.tech/sandboxes/#unresponsive). |
| Disk 85% / 95% email | `froog exec NAME -- 'sudo du -xh / 2>/dev/null \| sort -h \| tail -n 20'`. See [Disk space](https://docs.froog.tech/sandboxes/#disk). |
| Desktop link won't open | Expired (10 min) or sandbox stopped: `froog desktop NAME`. |
| `500 internal` `(ref …)` | Send the ref: `froog feedback "…"` or [hello@froog.tech](mailto:hello@froog.tech). |

## FAQ

**Is a sandbox a container?** No, a KVM VM with its own kernel. Docker, systemd and `/dev/kvm` work. See [Security](https://docs.froog.tech/security/).

**Do I get root?** Yes, via passwordless `sudo`.

**How long can a sandbox run?** No limit. Auto-stop defaults to 1 hour after start, up to 30 days or off (`--ttl`, `--no-auto-stop`, `froog extend`).

**Do programs survive a stop?** Only on a [warm resume](https://docs.froog.tech/snapshots/#warm) (start within 4 hours). Files always survive.

**What does a stopped sandbox cost?** Nothing; its disk is kept 14 days. Save a snapshot to keep it longer.

**Is my data backed up?** Snapshots are copied off-host within minutes. Keep what you can't lose in git.

**Does a sandbox have its own IP?** Its own IPv6 address; IPv4 is shared, with forwarded ports. See [Open ports](https://docs.froog.tech/network/#ports).

**Can it send email?** Not on port 25. Use an API or port 587/465.

**Can I run a web server?** `froog host NAME PORT` gives HTTPS. Raw TCP/UDP: `froog port open`.

**GPUs?** No.

**Change size?** While stopped: `froog start NAME --size large`.

**Use my Claude or ChatGPT subscription?** Yes: log in once inside (`claude` or `codex`). Forks keep the login.

**Move files?** `froog scp`, git, or the [file API](https://docs.froog.tech/api/).

**Can froog see my sandbox?** Its control plane and operators can. See [Security](https://docs.froog.tech/security/).

**Which OSes?** Ubuntu 24.04 (default) or 26.04, Debian 13, Omarchy, [Android](https://docs.froog.tech/android/) 14. No Windows or macOS.
