Cloud agents are great in theory: run hundreds of coding tasks in parallel, close your laptop, and come back to finished PRs. In practice, most of them suck to set up because you're constantly re-configuring environments and credentials.
That’s why we built Sailboxes: persistent cloud VMs with no runtime cap that auto-sleep when idle (so you aren't paying for compute while nothing's running) and preserve your full disk, memory, and running processes when they wake back up. This means you set up your environment once and keep it forever. In this guide, you’ll spin up a preconfigured devbox, wire up zero-secret API access, and checkpoint your setup to clone across as many agents as needed.
Set up a devbox #
A cloud coding agent needs somewhere to work. A devbox is a persistent remote workstation running in an isolated sandbox.
Raw Sailboxes give you a kernel-isolated Linux VM with root access and local NVMe storage. You can run commands through the Sail CLI or the Python, TypeScript, and Rust SDKs. Down tools, runtimes, and harnesses for your various coding agents every time is annoying, so we have pre-configured devboxes you can spin up with one command:
Here’s what comes installed and configured out of the box:
- Core runtimes & dev tools: Node.js, Docker (with Docker-in-Docker), compilers, and standard developer utilities
- Matched Python environment: Automatically installs your local Python version so
@sail.functioncode runs identically to your machine - Pre-installed coding agent CLIs: Claude Code, Codex, Cursor Agent, and opencode—with your local login credentials synced automatically
- Ready-to-go SSH: Automatically configured with your local SSH key (while keeping your private key on your machine)
(Need a team environment? Add --shared when creating it.)
Congrats! You have a devbox now. You can access it via the terminal using sail box shell <sailbox-id> to run your agent harnesses directly inside the Sailbox, or connect over SSH from your local editor/IDE (like Cursor or Codex) to work in your native UI.
Policies and Secrets #
For API keys and external access, Sail eliminates repetitive secret click-ops without sacrificing security. Your Sailbox is locked down by default (no inbound traffic unless you explicitly expose a port) and outbound access is controlled through saved egress policies. Store your credentials in Sail’s secrets vault, and Sail injects headers like Authorization: Bearer ${secrets.GITHUB_TOKEN} at the proxy layer (or signs cloud requests via OIDC/cloud identities), so raw secrets never enter the Sailbox.
Because saved policies are org-wide, you can bundle all the credentials a workflow needs into a single policy, attach it to as many Sailboxes as you want, and never touch secret setup again. You can also create separate policies for different use cases or areas of ownership (like a staging-evals policy or a read-only github-triage policy) so every agent only gets the exact domains and secrets it should have.
(Need an interactive OAuth login like gh auth login? Sailbox shell automatically forwards browser opens and localhost callbacks to your machine, so you can authenticate once and stay logged in across sleeps and checkpoints.)
Scale #
Want to clone a configured environment at scale? Sail supports checkpoints (sail box checkpoint and sail box from-checkpoint) that snapshot your VM's disk, memory, and running processes and carry over your attached policies so every clone gets the right permissions. This way you can spin up thousands of Sailboxes in parallel from a single checkpoint
Things to try #
- Compare features: Fork your checkpoint into multiple Sailboxes, give each agent the same prompt for an idea, open the previews, and merge the one you like the most.
- Prod testing: Send a fleet of agents to test your app as a first-time user, a returning user, and a mobile user, and have them write up a report on where they got stuck.
- Eval suite: Start every run from the same checkpoint and verify that the flows that should always work do so after every major change or on a schedule.
Ready to try it? Grab the CLI (curl -fsSL https://cli.sailresearch.com/install.sh | sh) or check out the Sailbox docs.
Free accounts include $5/month in credits once you add a payment method.
Happy building!
Notes #
- Sail doesn’t enforce a hard cap on the Sailbox count (or runtime), and sleeping and d Sailboxes automatically release their compute capacity. Active Sailboxes are only bounded by your organization’s reserved-vCPU quota (200 reserved vCPUs on Free, 10,000 on Pro, and custom limits on Enterprise, with each Sailbox configurable from 1–64 vCPUs). ↩