# Soulsand docs (full text)
> Soulsand gives every AI agent its own Linux VM (a sandbox): Ubuntu, Debian, Omarchy or Android, with root, SSH, Docker, Chrome, a desktop and coding agents preinstalled, hourly snapshots and forks, and an HTTPS URL for any port. Driven by the `soulsand` CLI or the HTTP API at https://api.soulsand.ai/v1; billed by the month from $4.08, and a 1 vCPU sandbox is free with a card.
This file is generated from https://docs.soulsand.ai/ (the index is https://docs.soulsand.ai/llms.txt).
## Soulsand: a Linux VM for every agent
[Soulsand](https://soulsand.ai/) gives every AI agent a whole computer: a full Linux VM (a sandbox) with root, SSH, Docker, Chrome, a desktop and coding agents preinstalled, on bare metal that froog runs itself. Its disk persists across stops, with hourly snapshots and forks, and any port gets an HTTPS URL. Sandboxes run 24/7, billed by the month; one 1 vCPU sandbox is free with a card.
```sh
$ curl -fsSL https://soulsand.ai/install | sh
$ soulsand login
$ soulsand new my-box # about 20 s to SSH
$ soulsand ssh my-box
```
| Size | vCPU · memory · disk | A month |
| --- | --- | --- |
| `lite` | 1 · 2 GB · 51 GB | free, one per card |
| `small` | 2 · 4 GB · 51 GB | $4.08 |
| `default` | 4 · 8 GB · 51 GB | $8.16 |
| `large` | 8 · 16 GB · 111 GB | $16.33 |
New here? [Get started](https://docs.soulsand.ai/get-started/) installs the CLI, signs you in and starts a first sandbox. Then:
- [Sandboxes](https://docs.soulsand.ai/sandboxes/): operating systems, sizes, timers, starting, stopping and labels; [pricing](https://docs.soulsand.ai/pricing/) and your setup.
- [Background commands](https://docs.soulsand.ai/jobs/), [command history](https://docs.soulsand.ai/history/), [public URLs](https://docs.soulsand.ai/urls/) and [snapshots and forks](https://docs.soulsand.ai/snapshots/).
- [Environment variables](https://docs.soulsand.ai/env/) and [repos, files and setup scripts](https://docs.soulsand.ai/environment/) for every new sandbox.
- The [desktop](https://docs.soulsand.ai/desktop/), [Windows apps](https://docs.soulsand.ai/windows-apps/), [Android](https://docs.soulsand.ai/android/) and [VS Code and Cursor](https://docs.soulsand.ai/editor/).
- [Coding agents](https://docs.soulsand.ai/agents/) in a sandbox, [AI credentials](https://docs.soulsand.ai/ai-proxy/), [agent frameworks](https://docs.soulsand.ai/integrations/) and [a sandbox per user](https://docs.soulsand.ai/platform/) of your own product.
- Reference: the [CLI](https://docs.soulsand.ai/cli/), [security and isolation](https://docs.soulsand.ai/security/), [troubleshooting](https://docs.soulsand.ai/troubleshooting/) and the [FAQ](https://docs.soulsand.ai/faq/).
Soulsand is part of [froog](https://froog.tech/): one account and API for Soulsand, [Tokenmail](https://tokenmail.froog.tech/) inboxes, [Seaeye](https://seaeye.sh/) CI runners and [Revere](https://revere.sh/) monitors. Account-wide things (API keys, sign-in methods, organizations, the audit log, webhooks, the HTTP API reference and the MCP server) are in [froog's docs](https://docs.froog.tech/). Soulsand was called Quicksand until November 2026.
## Soulsand: Get started
One froog account works everywhere: Soulsand, its dashboard at [dash.soulsand.ai](https://dash.soulsand.ai/), the `soulsand` CLI and the API. Signing in the first time makes it (Google, GitHub or a code by email). With a card on file, one [lite sandbox](https://docs.soulsand.ai/pricing/#free) runs free; bigger ones are billed by the month ([pricing](https://docs.soulsand.ai/pricing/)).
### Install the CLI
```sh
$ curl -fsSL https://soulsand.ai/install | sh
```
Windows 10 or later, in PowerShell:
```sh
PS> irm https://soulsand.ai/install.ps1 | iex
```
The installer checks the CLI's SHA-256 and puts `soulsand` in `~/.local/bin` (`SOULSAND_BIN_DIR` to change it, `SOULSAND_VERSION=v0.1.0` to pin a version). WSL works with the first command. `soulsand update` keeps it current.
### Sign in
```sh
$ soulsand login # approve this computer in the dashboard; registers ~/.ssh/id_ed25519.pub
$ soulsand onboard # or a guided first run: sign-in, SSH key, agent keys, first sandbox
$ soulsand billing card # add a card (Stripe Checkout): the lite sandbox is free from then on
```
`soulsand onboard` skips steps already done and can be re-run; `--yes` takes every default. `soulsand dashboard` opens the dashboard signed in.
### Your first sandbox
```sh
$ soulsand new my-box # a running VM with everything installed
$ soulsand ssh my-box
$ soulsand exec my-box -- 'git clone https://github.com/you/app && cd app && make test'
$ soulsand run -- make test # fresh sandbox with this folder, run, delete
$ soulsand stop my-box # snapshot the disk and stop; soulsand start resumes
```
`soulsand 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.soulsand.ai/snapshots/#start-times)).
### API keys
Scripts, CI and agents use an API key instead of a sign-in. Make one in the dashboard ([API keys](https://dash.soulsand.ai/#keys)) or with the CLI, and give it only what it needs ([scopes](https://docs.froog.tech/api-keys/)):
```sh
$ soulsand api-key create ci-bot --preset ci --ttl 30d # prints the key (froog_…) once
$ export SOULSAND_API_KEY=froog_… # the CLI uses it instead of its sign-in
```
### The API
Everything the CLI does is the HTTP API at `https://api.soulsand.ai/v1`, with the key as a bearer token (the same API answers on `api.froog.tech`; one account behind both):
```sh
$ curl -s https://api.soulsand.ai/v1/sandboxes \
-H "Authorization: Bearer $SOULSAND_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "ci-1", "size": "small"}'
```
Every endpoint is in [the API reference](https://docs.froog.tech/api/); there are Python, TypeScript and Go [SDKs](https://docs.froog.tech/sdks/), and an [MCP server](https://docs.froog.tech/mcp/) for coding agents (`soulsand mcp`).
### Next
- [Sandboxes](https://docs.soulsand.ai/sandboxes/): sizes, operating systems, timers, starting and stopping.
- [Snapshots and forks](https://docs.soulsand.ai/snapshots/), [public URLs](https://docs.soulsand.ai/urls/) and the [desktop](https://docs.soulsand.ai/desktop/).
- [Coding agents](https://docs.soulsand.ai/agents/) in a sandbox, and [AI credentials](https://docs.soulsand.ai/ai-proxy/).
- Coming from E2B, Daytona or Modal: [what maps to what](https://docs.soulsand.ai/concepts/).
## Soulsand: Sandboxes
Each sandbox is a full VM with its own kernel. `soulsand 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.soulsand.ai/pricing/). The disk includes the OS and tools; memory is always reserved. `soulsand new NAME --size large` picks a size; `soulsand start NAME --size …` changes a stopped one. `xlarge` (16 vCPU, 32 GB) is on sale with shared vCPUs only. `soulsand 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. `soulsand 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.** `soulsand 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.soulsand.ai/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.soulsand.ai/pricing/#wallet), listed in `soulsand usage` as `burst`. At your spending cap, or once an empty wallet's [24-hour grace](https://docs.soulsand.ai/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 `soulsand info` and `GET /v1/sandboxes/{name}` shows it. Kept through stop, start and fork; `soulsand 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.soulsand.ai/android/)) or **Omarchy**. `soulsand 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. `soulsand 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 `soulsand 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 `soulsand prompt` pushes the deadline back one timer length.
```sh
$ soulsand new box --ttl 4h # stop 4 hours after each start
$ soulsand new box --no-auto-stop
$ soulsand extend box --hours 12 # 12 hours from now, and after each start
$ soulsand 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
$ soulsand new ci-1 --max-lifetime 2h --delete-after 1d
$ soulsand extend ci-1 --max-lifetime 4h # 0 removes it
$ soulsand new eval-7 --expires 3h # deleted 3 hours after creation
$ soulsand 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.soulsand.ai/urls/) gets a request, or on an API exec, file, job, prompt or [wait](https://docs.soulsand.ai/urls/#wait-port) call. Pair it with auto-stop for previews that idle for free.
```sh
$ soulsand new preview --ttl 15m --auto-start --host 3000:public
$ soulsand 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.soulsand.ai/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. `soulsand start NAME` or a new deadline cancels it.
- **`soulsand 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 `soulsand 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, `soulsand 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. `soulsand stop NAME --force && soulsand 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 `soulsand start NAME` retries. Turn rebuilds off: `soulsand 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
$ soulsand alerts
$ soulsand alerts off disk
```
API: `GET` / `PATCH /v1/account/alerts {"emails": {"disk": false}, "auto_rebuild": true}` (`account.read` / `account.admin`).
### Metrics
```sh
$ soulsand 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
$ soulsand 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
$ soulsand new ci-1 --label team=web --label job=1234
$ soulsand label ci-1 tier=gold job- # set tier, remove job
$ soulsand list --label team=web --state running
$ soulsand list --prefix ci-
```
Up to 32 per sandbox. Keys: 1-63 of letters, digits, `. _ - /`. Values: up to 255 characters. Forks keep them.
## Soulsand: 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.soulsand.ai/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.soulsand.ai/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.soulsand.ai/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 `soulsand 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
$ soulsand billing capacity default=3 small:ephemeral=2 large:dedicated=1 default:dedicated:ephemeral=1 # the whole setup; omitted sizes are 0, "none" clears it
$ soulsand 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.
- `soulsand 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); `soulsand start NAME` later. We may stop it or end the offer at any time; removing the card stops it.
### Card
`soulsand 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.seaeye.sh/) job time ($0.0006 per vCPU-minute, per second), [120 fps desktops](https://docs.soulsand.ai/desktop/#desktop-fps) ($0.05 an hour while watched), [adaptive CPU](https://docs.soulsand.ai/sandboxes/#adaptive) above the floor ($0.003 per vCPU-hour) and extra saved snapshots.
```sh
$ soulsand wallet pay 20 # $5 to $10,000, whole dollars; turns on auto top-up at $20
$ soulsand wallet pay 20 --no-auto
$ soulsand wallet auto 50 # or: soulsand wallet auto off
$ soulsand 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
`soulsand 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.
- `soulsand billing` shows setup, wallet and usage; `soulsand usage [--month 2026-10]` breaks it down.
Start and CI-runner limits: [Limits](https://docs.froog.tech/limits/).
## Soulsand: Concepts, coming from other sandboxes
| Soulsand | What it is | Similar to |
| --- | --- | --- |
| Sandbox | A full Linux VM with its own disk; runs until stopped or [auto-stopped](https://docs.soulsand.ai/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 (`soulsand 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/).
## Soulsand: Background commands
Long jobs and servers run in the background and survive your terminal disconnecting.
```sh
$ soulsand exec my-box --detach -- 'npm run build && npm test'
job_3f2a9c1d8e7b6a50
$ soulsand logs my-box job_3f2a9c1d8e7b6a50 -f # follow; exits with its exit code
$ soulsand jobs my-box # running, exited, killed
$ soulsand kill my-box job_3f2a9c1d8e7b6a50 # and everything it started
$ soulsand exec my-box --timeout 0 -- ./long.sh # stream to the end
$ soulsand 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.soulsand.ai/snapshots/#warm)). Jobs don't hold off [auto-stop](https://docs.soulsand.ai/sandboxes/#auto-stop): `soulsand extend NAME --hours 8`. Each job is also in the [command history](https://docs.soulsand.ai/history/). `-e` values aren't recorded.
### One-off runs and pushing a folder
```sh
$ soulsand run -- npm test # new sandbox, this folder in ~/FOLDER, run, delete
$ soulsand run --from web-stack --size large -- make e2e
$ soulsand run --keep -- ./build.sh
$ soulsand push my-box # this folder to my-box:~/FOLDER
$ soulsand push my-box ../api --to src/api
```
`soulsand 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 `soulsand run` dies it's erased within 15 minutes. Ctrl-C deletes it. `--keep` leaves it until that auto-stop.
`soulsand 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.
| `soulsand 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.soulsand.ai/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 `soulsand exec`:
```sh
$ soulsand exec my-box -- python3 - < script.py
$ git diff | soulsand exec my-box --cwd app -- git apply
$ soulsand 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
$ soulsand exec my-box --detach --stdin-open -- python3 -i
$ soulsand stdin my-box job_3f2a9c1d8e7b6a50 'print(6 * 7)' # adds a newline
$ cat more.py | soulsand stdin my-box job_3f2a9c1d8e7b6a50
$ soulsand 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`.
## Soulsand: Command history
Every command run through `soulsand 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
$ soulsand history my-box
cmd_4b1e0c9a7d2f3e18 exit 0 detached 2026-11-10 14:02:11 npm run build
$ soulsand history my-box cmd_4b1e0c9a7d2f3e18 # stdout; --stderr, --follow
$ soulsand history my-box --mode detached # sync, stream or detached
$ soulsand ps my-box # live processes, busiest first
$ soulsand ps my-box --history --since 6h # top-12 samples every 30 s, kept 7 days
$ soulsand 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.
## Soulsand: Public URLs
Give a port in a sandbox an HTTPS address:
```sh
$ soulsand host my-box 3000
https://my-box-3000-k7f2qx.froogusercontent.com/?_token=pt_9c1e…
$ soulsand host my-box 3000 --public # no token
$ soulsand host my-box 3000 --subdomain acme-demo # https://acme-demo.froogusercontent.com
$ soulsand host my-box 3000 --title "API docs"
$ soulsand host my-box # list
$ soulsand host my-box 3000 --rm
$ soulsand 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.soulsand.ai/sandboxes/#auto-stop).
- The URL survives stop, start and restore. While stopped, visitors see a notice, or it [auto-starts](https://docs.soulsand.ai/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.soulsand.ai/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.** `soulsand 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
$ soulsand url-token create my-box 3000 --ttl 2h --label alice
https://my-box-3000-k7f2qx.froogusercontent.com/?_token=pvt_51d0…
$ soulsand url-token list my-box 3000
$ soulsand 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.
## Soulsand: 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
$ soulsand snapshot my-box --name before-upgrade # save
$ soulsand snapshots my-box # list
$ soulsand fork my-box@before-upgrade my-box-2 # new sandbox from a snapshot
$ soulsand fork my-box try --count 5 # try-1 … try-5
$ soulsand restore my-box@before-upgrade # roll back in place (snapshots the current state first)
```
The [dashboard](https://dash.soulsand.ai/)'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
$ soulsand snapshot my-box --name web-stack
$ soulsand new app --from web-stack --count 5 # app-1 … app-5, same OS and size unless --size
$ soulsand snapshots # your saved snapshots (--all: every snapshot)
$ soulsand snapshots --rm web-stack
$ soulsand 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.soulsand.ai/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.soulsand.ai/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
$ soulsand snapshot share web-stack # prints the code once: fsh_…
$ soulsand snapshot shares web-stack # its codes and uses
$ soulsand snapshot unshare web-stack shr_… # revoke one
$ soulsand 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.soulsand.ai/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.soulsand.ai/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
$ soulsand snapshot ls web-stack # a saved snapshot's ~
$ soulsand snapshot ls my-box@latest app/src # SANDBOX@id, label or latest
$ soulsand snapshot pull web-stack ~/app -o ./app
$ soulsand 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
`soulsand stop` snapshots the disk and deletes the VM; `soulsand 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 `soulsand 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 `soulsand 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.soulsand.ai/environment/) setup, which runs after the sandbox is `running`.
## Soulsand: Environment variables
Account variables reach every sandbox: shells, `soulsand exec`, background commands and agent prompts.
```sh
$ soulsand env set ANTHROPIC_API_KEY # prompts for the value
$ echo "$DATABASE_URL" | soulsand env set DATABASE_URL
$ soulsand env list # names and masked previews
$ soulsand 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
$ soulsand new box -e KEY=VALUE -e OTHER # -e KEY copies from your shell
$ soulsand 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 `soulsand info`; values never do.
## Soulsand: Repos, secret files & setup
Besides [variables](https://docs.soulsand.ai/env/), your environment sets what every new sandbox starts with: GitHub repos in `~`, secret files, and setup scripts.
```sh
$ soulsand environment add-repo https://github.com/you/app # optionally #branch
$ soulsand environment add-file app/.env ./app/.env # or pipe on stdin
$ echo 'npm ci' | soulsand environment repo-setup app - # runs in ~/app after the clone
$ echo 'docker compose up -d' | soulsand environment setup - # runs in ~
$ soulsand 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.soulsand.ai/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 `soulsand jobs box` and `soulsand logs box JOB`; `setup_status` in `soulsand info` is `none`, `running`, `done` or `failed` (with `setup_error`).
**Private repos:** [connect GitHub](https://docs.seaeye.sh/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
$ soulsand new box --file app/.env=.env # one sandbox's file (up to 20, 1 MiB)
$ soulsand new pr-42 --repo https://github.com/you/app#pr-42 # one sandbox's repo, in ~/app (--repo-dir)
$ soulsand new box --setup-file setup.sh # runs once, after first boot
$ soulsand 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.soulsand.ai/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
$ soulsand environment create ci --copy-from default # or empty
$ soulsand environment add-file ci .npmrc ./ci.npmrc # or --env ci; default env if omitted
$ soulsand new job-1 --environment ci
$ soulsand environment list
$ soulsand environment default ci # used when a sandbox names none
$ soulsand environment rename ci jobs
$ soulsand 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
$ soulsand environment versions ci
$ soulsand environment upgrade ci # all of ci's sandboxes to latest
$ soulsand environment upgrade ci --sandbox job-1
$ soulsand 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.soulsand.ai/) edits all of it.
## Soulsand: 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.soulsand.ai/), or:
```sh
$ soulsand desktop my-box # opens it in your browser
$ soulsand desktop my-box --theme light # dark (default) or light
$ soulsand desktop my-box --print # just print the link
$ soulsand 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.** `soulsand desktop NAME --fps 120` (kept), `soulsand 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.soulsand.ai/pricing/#wallet). Without an hour's credit under your spend cap it opens at 60 (`fps_note` says why). Listed in `soulsand 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
```
**Wallpaper.** Put a PNG at `~/.config/froog/wallpaper.png` (up to 16 MiB, 8192 px a side): `soulsand scp ./wallpaper.png my-box:.config/froog/wallpaper.png`.
**Browser only.** Shows just Chrome on its own screen, no desktop, no clipboard.
```sh
$ soulsand browser my-box # profile ~/.config/froog-browser
$ soulsand 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
$ soulsand exec my-box -- froog-record-desktop start /home/user/demo.mp4
$ soulsand exec my-box -- froog-record-desktop stop # finish the file before downloading
$ soulsand scp my-box:demo.mp4 .
```
## Soulsand: Windows apps (Wine)
Sandboxes can run many Windows programs on the desktop with [Wine](https://www.winehq.org). Watch them with `soulsand desktop`; agents drive them with the [computer tools](https://docs.soulsand.ai/agents/) (screenshots, clicks, keys). Install once, then snapshot.
**Install Wine.** Save as `install-wine.sh` and run it in the background (several minutes):
```sh
$ soulsand exec my-box --detach -- bash -s < install-wine.sh
$ soulsand 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 (soulsand 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:** `soulsand snapshot my-box --name wine-apps`, then `soulsand 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.
## Soulsand: Android
`soulsand 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
$ soulsand new phone --os android --size small
$ soulsand 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: `soulsand 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.soulsand.ai/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.** `soulsand 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.
## Soulsand: VS Code and Cursor over SSH
`soulsand ssh-config` adds your sandboxes to `~/.ssh/config` as `soulsand-NAME`, for Remote-SSH, plain `ssh`, `scp`, `rsync` and `git`:
```sh
$ soulsand ssh-config # all sandboxes, or name some; rerun after creating new ones
$ ssh soulsand-my-box
```
In the editor, run **Remote-SSH: Connect to Host**, pick `soulsand-my-box`, open `/home/user/app`. It uses the key `soulsand login` registered.
Entries use `ProxyCommand soulsand 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/soulsand/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: `soulsand extend my-box --hours 8` or `--no-auto-stop`.
- Editor-forwarded ports work like `soulsand forward`. For a shareable URL use [`soulsand host`](https://docs.soulsand.ai/urls/).
## Soulsand: Coding agents
`soulsand 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
$ soulsand prompt my-box "make the failing tests pass"
$ soulsand prompt my-box "now add a test for the edge case" # same conversation: it remembers
$ soulsand prompt my-box "add a /health endpoint" --agent codex --new
$ soulsand prompt my-box "review the diff" --model opus --effort high --fast
$ soulsand prompt my-box "why does this crash?" --attach error.png --attach trace.log
$ soulsand 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.soulsand.ai/agents/#subscriptions) or a login | yes · `low` … `max` |
| `codex` | OpenAI Codex | `OPENAI_API_KEY`, a [subscription](https://docs.soulsand.ai/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.soulsand.ai/env/) and every sandbox has them:
```sh
$ soulsand env set ANTHROPIC_API_KEY # prompts for the value
$ soulsand env set OPENAI_API_KEY
```
Or connect a [subscription](https://docs.soulsand.ai/agents/#subscriptions), or log in once inside (`soulsand 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
$ soulsand conversations my-box # list
$ soulsand conversations my-box conv_3f9a… # its turns; --delete removes it
$ soulsand 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.soulsand.ai/sandboxes/#auto-stop).
- `--timeout` per turn: default 3600 s, max 21600. Ctrl+C stops following, not the agent.
**Steer and interrupt.** `soulsand 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`. `soulsand interrupt my-box` (API `POST /interrupt`) stops running turns and cancels queued ones; `--conversation ID` for one. Files and memory stay.
**Events.** `soulsand 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//`, 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
$ soulsand subscriptions login claude --sandbox my-box # or chatgpt; runs the vendor's sign-in there
$ soulsand 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.soulsand.ai/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 `soulsand desktop`:
```sh
$ soulsand 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.soulsand.ai/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; `soulsand 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.soulsand.ai/environment/) (register MCP servers in the setup script):
```sh
$ soulsand environment add-file AGENTS.md ./house-rules.md
$ soulsand environment add-file CLAUDE.md ./house-rules.md
```
`soulsand 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
$ soulsand forward my-box 7777 --reverse # leave running
$ soulsand exec my-box -- 'claude mcp add --scope user mine --transport http http://127.0.0.1:7777/mcp'
$ soulsand forward my-box 11434 --reverse # Ollama
```
Or run the agent on your own machine and give it the sandbox as a tool: `soulsand exec` and the API return stdout, stderr and the exit code.
## Soulsand: 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" | soulsand ai key-add anthropic # into the default profile
$ echo "$ANTHROPIC_KEY_2" | soulsand ai key-add anthropic # second account, used when the first runs out
$ soulsand ai proxy on # sandboxes started from now on get placeholders
$ soulsand ai usage # requests, tokens, estimated cost per sandbox
$ soulsand 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.soulsand.ai/environment/#environments) names (`soulsand ai env ci ci-bots`), else the default. `soulsand 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
$ soulsand ai profile-new ci-bots --copy-from default
$ echo "$OPENAI_API_KEY" | soulsand ai key-add openai --profile ci-bots
$ echo "$STRIPE_KEY" | soulsand ai key-add STRIPE_KEY --base-url https://api.stripe.com --profile ci-bots
$ echo "$ACME_KEY" | soulsand ai key-add ACME_KEY --base-url https://api.acme.dev --secret-header X-Api-Key
$ soulsand ai profiles
$ soulsand ai key-rm cred_0123456789abcdef --profile ci-bots
$ soulsand 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 [`soulsand env`](https://docs.soulsand.ai/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. `soulsand ai profiles` shows which accounts rest and why; `soulsand 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 ──────
```
`soulsand ai proxy on` (needs `account.admin`) applies at each sandbox's next start; `soulsand 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.soulsand.ai/agents/#subscriptions) credentials pass through unproxied. `soulsand 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
$ soulsand ai usage --days 7 # every sandbox, most expensive first
$ soulsand ai usage my-box # per day and model
```
### Block a sandbox
`soulsand 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.
## Soulsand: 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/).
## Soulsand: Use Soulsand from your coding agent
Any agent on your computer can drive sandboxes with the `soulsand` CLI. Give it the signed-in CLI, the docs and a rule. Or connect it as an [MCP server](https://docs.froog.tech/mcp/) (`soulsand mcp`).
**1. The CLI.** Sign it in with an API key: `echo "$SOULSAND_API_KEY" | soulsand login`, or set `SOULSAND_API_KEY`.
**2. The docs.** [llms.txt](https://docs.soulsand.ai/llms.txt) is a short index; [llms-full.txt](https://docs.soulsand.ai/llms-full.txt) is all of these docs as Markdown (froog's, for accounts and the API: [froog.tech/llms.txt](https://froog.tech/llms.txt)). 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 soulsand-docs -- soulsand 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://docs.soulsand.ai/llms.txt. Prices and limits: run `soulsand limits`; never quote prices from memory.
- Create: `soulsand new task-1` (returns when SSH works; `--json` prints the sandbox as JSON)
- Run: `soulsand exec task-1 -- 'cd app && npm test'` (exits with the command's exit code; `--timeout` up to 3600 s)
- Long job or server: `soulsand exec task-1 --detach -- 'npm run dev'`, then `soulsand logs task-1 JOB -f`, `soulsand kill task-1 JOB`
- Past output, also while stopped: `soulsand history task-1`, `soulsand history task-1 CMD_ID`
- One-off: `soulsand run -- npm test` (a fresh sandbox with this folder; deleted after, exits with the command's code)
- Files: `soulsand push task-1` (this folder to ~/FOLDER), `soulsand scp -r ./app task-1:app`, or `git clone` inside the sandbox
- Public URL for a port: `soulsand host task-1 3000`
- Always pass the sandbox name.
- When done: `soulsand stop task-1` (keeps the disk 14 days) or `soulsand delete task-1 --yes` (erases it)
```
## Soulsand: 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.** `soulsand 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": ""}}
```
- **Template.** Install your stack and agent rules once, `soulsand 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.soulsand.ai/agents/)); stream [events](https://docs.soulsand.ai/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.soulsand.ai/get-started/#api).
- **Retention.** [Monitoring off](https://docs.froog.tech/data/) and zero data retention keep nothing.
### Patterns and cost
Each [setup](https://docs.soulsand.ai/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/).
## Soulsand: Recipes
### A coding agent on your repo
```sh
$ soulsand env set ANTHROPIC_API_KEY # once per account
$ soulsand env set GH_TOKEN # git and gh use it
$ soulsand environment add-file .gitconfig ~/.gitconfig
$ soulsand environment add-repo https://github.com/you/app
$ echo 'cd ~/app && npm ci' | soulsand environment setup -
$ soulsand new fix-login
$ soulsand jobs fix-login # wait for the setup job to exit
$ soulsand 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"
$ soulsand stop fix-login
```
The agent keeps working if you disconnect; `soulsand events NAME` shows what it did. Or run it as a [background command](https://docs.soulsand.ai/jobs/) with [history](https://docs.soulsand.ai/history/):
```sh
$ soulsand exec fix-login --detach -- 'cd ~/app && claude -p "fix the login redirect bug and open a PR" --dangerously-skip-permissions'
$ soulsand logs fix-login JOB -f
```
The agent has root and reads every secret you give it: use narrowly scoped tokens.
### Parallel agents
```sh
$ soulsand new base
$ soulsand exec base -- 'git clone https://github.com/you/app && cd app && npm ci && npm test'
$ soulsand snapshot base --name app-ready
$ soulsand new try --from app-ready --count 3 # try-1, try-2, try-3 (or soulsand fork base try --count 3)
$ soulsand prompt try-1 "In ~/app: make the search page faster" < /dev/null > try-1.log 2>&1 &
$ soulsand prompt try-2 "In ~/app: make the search page faster" --agent codex < /dev/null > try-2.log 2>&1 &
$ soulsand prompt try-3 "In ~/app: make the search page faster" --agent gemini < /dev/null > try-3.log 2>&1 &
$ wait
$ soulsand exec try-2 -- 'cd app && git diff --stat && npm test' # compare
$ soulsand delete try-1 -y && soulsand delete try-3 -y # keep the best
```
Each copy has its own disk and your [variables](https://docs.soulsand.ai/env/); processes don't carry over. How many run at once is your [setup](https://docs.soulsand.ai/pricing/#capacity)'s slots.
## Soulsand: Private registries
Give every sandbox registry credentials with account [variables](https://docs.soulsand.ai/env/) and [secret files](https://docs.soulsand.ai/environment/). `--no-environment` sandboxes get none.
| Registry | Set up |
| --- | --- |
| npm, pnpm | `.npmrc` secret file with `//npm.pkg.github.com/:_authToken=${NPM_TOKEN}`, plus `soulsand env set NPM_TOKEN` |
| pip, uv | `soulsand 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 `soulsand env set CARGO_REGISTRIES_NAME_TOKEN` |
| Go modules | `soulsand 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.soulsand.ai/network/)). Sandbox outbound IPs aren't fixed, so use tokens, not IP allowlists.
## Soulsand: Network and outbound traffic
Outbound traffic is open. Inbound reaches a sandbox only through SSH, [public URLs](https://docs.soulsand.ai/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 (`soulsand info`, `ipv6` in the API). Kept across a [warm resume](https://docs.soulsand.ai/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 `soulsand host NAME PORT`. |
| DNS | 1.1.1.1 and 8.8.8.8. |
| Your computer | No route back. `soulsand forward NAME PORT --reverse` tunnels one port over SSH. |
### Open ports
```sh
$ soulsand port open my-box 27015/udp # TCP if no protocol given
$ soulsand port list my-box # 27015/udp at 203.0.113.7:40002
$ soulsand 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 `soulsand port list`, `soulsand 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
$ soulsand 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 - </dev/null \| sort -h \| tail -n 20'`. See [Disk space](https://docs.soulsand.ai/sandboxes/#disk). |
| Desktop link won't open | Expired (10 min) or sandbox stopped: `soulsand desktop NAME`. |
| `500 internal` `(ref …)` | Send the ref: `soulsand feedback "…"` or [hello@froog.tech](mailto:hello@froog.tech). |
## Soulsand: FAQ
**Is a sandbox a container?** No, a KVM VM with its own kernel. Docker, systemd and `/dev/kvm` work. See [Security](https://docs.soulsand.ai/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`, `soulsand extend`).
**Do programs survive a stop?** Only on a [warm resume](https://docs.soulsand.ai/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.soulsand.ai/network/#ports).
**Can it send email?** Not on port 25. Use an API or port 587/465.
**Can I run a web server?** `soulsand host NAME PORT` gives HTTPS. Raw TCP/UDP: `soulsand port open`.
**GPUs?** No.
**Change size?** While stopped: `soulsand start NAME --size large`.
**Use my Claude or ChatGPT subscription?** Yes: log in once inside (`claude` or `codex`). Forks keep the login.
**Move files?** `soulsand scp`, git, or the [file API](https://docs.soulsand.ai/get-started/#api).
**Can froog see my sandbox?** Its control plane and operators can. See [Security](https://docs.soulsand.ai/security/).
**Which OSes?** Ubuntu 24.04 (default) or 26.04, Debian 13, Omarchy, [Android](https://docs.soulsand.ai/android/) 14. No Windows or macOS.