Pethost Agent Sandboxes
ActiveFirecracker microVMs for AI agents in the EU that start from a template in about 0.15 s, pause with memory and processes at 30% of the running price, wake in about 0.1 s, and ship Claude Code, Codex, OpenCode and Chrome on a 1280x800 desktop behind a Python, TypeScript, Go or Rust SDK, a CLI and an MCP server.
- Boot rank
- #43 / 119
- 64% of published starts are slower
- Idle billing
- Usage-metered
- 137 listings meter active runtime
- State kept on pause
- Memory + processes retained
- Resume: A paused sandbox resumes on its server in about 0.1 s, 41 ms server-side, with memory and processes as they were; any call, SSH login or port request wakes it. A stopped sandbox resumes in about 0.2 s with its disk on the server, or up to about 10 s per GiB from object storage.
Overview
Pethost sells Agent Sandboxes as a second product beside its flat-price Docker Compose hosting, and the sandbox is built around the economics of an agent that spends most of its time waiting. Each sandbox is a Firecracker microVM with its own kernel and root, created from a template in about 0.15 s with Claude Code, Codex, OpenCode, Docker and Chrome already present. The three states carry the design: RUNNING bills by the second, PAUSED keeps memory, processes and disk for 30% of the price because the server holds the sandbox's place, and STOPPED keeps only an encrypted disk in EU object storage. A paused sandbox is resumed by the next call, SSH login or port request in about 0.1 s, so a sleeping dev server or REPL is exactly where the agent left it, and a paused sandbox is never refused for room. The interfaces are broad for a new product: Python, TypeScript, Go and Rust SDKs, a CLI, an OAuth-based MCP server with 13 tools, SSH and port previews, templates built from a sandbox's disk, secret placeholders swapped by an egress proxy, and a Chrome desktop on a 1280x800 screen with screenshot-in-one-call computer use and Playwright or Puppeteer over CDP. The constraints are equally clear. There are no GPUs, only one region, and only TCP and DNS leave a sandbox. Templates save files but never memory or processes, and no fork of a running sandbox is documented. The product is new, the trial requires a card, and the published latency figures are the vendor's own.
Key capabilities
- Firecracker microVM with its own kernel and root per sandbox
- About 0.15 s from a template, about 0.1 s to wake a paused sandbox
- Pause keeps memory, processes and disk at 30% of the running price
- Stop moves the disk to encrypted EU object storage
- Claude Code, Codex and OpenCode preinstalled in the base template
- Chrome on a 1280x800 desktop with one-call computer use
- Playwright and Puppeteer over CDP, plus a live desktop view
- Python, TypeScript, Go and Rust SDKs, a CLI and an MCP server
- Secrets the sandbox never holds, swapped by the egress proxy
- Egress allow and deny lists and private-network blocking
- Templates from a sandbox's disk, with versioned names
- Known limits: no GPUs, one region, TCP and DNS only, no documented fork
pethost-quickstart.py
from pethost.sandboxes import Sandboxes
sandboxes = Sandboxes() # reads PETHOST_TOKEN
sandbox = sandboxes.create_sandbox("base")
print(sandbox.sandbox_id, sandbox.state.name) # RUNNING
command = sandboxes.run_command(
sandbox.sandbox_id, command="python3 -c 'print(6 * 7)'"
)
print(command.exit_code, command.stdout) # 0 42
# Chrome on a 1280x800 desktop: one call returns a PNG screenshot
shot = sandboxes.control_desktop(sandbox.sandbox_id)
with open("screen.png", "wb") as png:
png.write(shot.screenshot.image)Similar alternatives
Technical specifications
- Runtime architecture
- Firecracker MicroVM
- Runtime notes
- Every sandbox is a Firecracker microVM with its own Linux kernel, root inside and Ubuntu 24.04
- Firecracker runs each VM inside its jailer: own chroot, unprivileged user, cgroup, seccomp filter and network namespace
- Four fixed sizes from 2 vCPU / 4 GiB / 10 GiB to 16 vCPU / 32 GiB / 80 GiB
- Templates capture a sandbox's disk, packages and Docker images; memory and processes are never saved
- Docker and its daemon can run inside a sandbox, started on first use
- Cold-start boot time
- About 0.15 s to create a sandbox from a template. Measured on 2026-11-18 through an API 16 ms away, a create's median was 123 ms for SMALL to 158 ms for XLARGE, a resume 124 ms and a command to a paused sandbox 80 ms.
- Max vCPU
- 16 vCPU on XLARGE; plans cap the largest size at LARGE or XLARGE
- Max memory
- 32 GiB on XLARGE
- Storage model
- 10, 20, 40 or 80 GiB of disk by size, with the template's files not counted; a stopped sandbox's own data is stored in the EU at $0.03 per GiB-month. Templates are bounded by the plan at 5 or 30 GiB.
- Network isolation
- Each sandbox is a Firecracker microVM with its own kernel, run under Firecracker's jailer with a chroot, unprivileged user, cgroup, seccomp filter and network namespace. Only TCP and DNS leave a sandbox: there is no UDP, so no QUIC, HTTP/3 or ping, and private, link-local and shared address ranges plus port 25 are always refused. DNS goes through the sandbox's own resolver, which answers only names its egress allows, and ports answer at https://<port>-<id>.<server>. Egress allow and deny lists take domains, subdomains, IPs and CIDRs up to 100 entries, deny wins, and the default is anywhere. Workspace secrets never enter a VM: the sandbox sees a placeholder and an egress proxy substitutes the real key in headers only for the named hosts. A stopped sandbox's disk is encrypted with a key for that sandbox and copied to object storage in the EU.
Lifecycle & capabilities
- Filesystem persistence
- Supported
- Memory / disk snapshot
- Unknown
- Instant forking
- Unknown
- GPU acceleration
- Not supported
- GUI desktop / VNC
- Supported
- Mobile / cloud phone
- Not supported
- Browser automation
- Supported
- Network egress control
- Supported
- Pause / auto-sleep
- Supported
- MCP protocol server
- Supported
- REST API & SDKs
- Supported
- Idle billing
- Usage-metered
- State kept on pause
- Memory + processes retained
- Resume latency
- A paused sandbox resumes on its server in about 0.1 s, 41 ms server-side, with memory and processes as they were; any call, SSH login or port request wakes it. A stopped sandbox resumes in about 0.2 s with its disk on the server, or up to about 10 s per GiB from object storage.
- Session limit
- No cap on a sandbox's lifetime. Defaults pause it after 5 idle minutes and stop it after 30, and both timers are configurable per sandbox or turned off.
- SDKs
- Python, TypeScript, Go, Rust
Pricing model
Official VerifiedRate read 30 Nov 2026.
Billed by the second for each state. Running prices include memory and disk: SMALL (2 vCPU, 4 GiB, 10 GiB) is $0.018 per hour, DEFAULT $0.036, LARGE $0.072 and XLARGE $0.20. Paused sandboxes pay 30% of that, so SMALL is $0.0054 per hour; stopped sandboxes pay $0.03 per GiB-month of their own data. Each run rounds up to a whole second with a 10-second minimum, starts are free and unlimited apart from an abuse limit of 300 starts per minute, and there is no fee to wake a paused sandbox. Plans are $20 per month (100 vCPU at once, LARGE maximum, 5 GiB of templates) and $100 per month (600 vCPU, XLARGE, 30 GiB), and the plan price is usage included. The first plan starts with a 7-day trial of $1 of usage and 4 vCPU that requires a card. Prices exclude VAT.