Private early access
Give your agent a Linux sandbox. Keep a record of what it does.
Wardcase is an API for isolated Linux sandboxes. Your agent runs commands, moves files, exposes ports and connects over SSH. The audit trail records what happened, and you can query it and export it.
- isolation
- gVisor containers
- egress
- nftables, on the host
- regions
- us-east, eu-west, in-south
- sdks
- TypeScript, Python
- audit
- JSONL, per sandbox
Sandbox sbx_4f9k2m8q1z7x3c5v · python · small · eu-west
-
create image="python" size="small" region="eu-west"-
sandbox.createdpython small eu-west
-
-
run "pip install requests"exit 0 after 4.4 s-
exec.startedpip install requests -
egress.connectionallow pypi.org:443 -
exec.finishedexit_code 0
-
-
files.write "/work/app.py"-
file.put98 B, sha256 0308caa7
-
-
run "python /work/app.py"app.py opens 169.254.169.254:80, exit 1-
exec.startedpython /work/app.py -
egress.connectionblock 169.254.169.254:80 -
exec.finishedexit_code 1
-
-
ssh sbx_4f9k2m8q1z7x3c5v@a shell; keystrokes are not recordedssh.wardcase.com -
ssh.session.startedpublickey, shell -
ssh.session.ended94,210 ms
-
-
kill-
sandbox.destroyedreason api
-
The SDK
Create, run, destroy.
Create a sandbox in the region you want, run a command in it, and destroy it when you are done. The TypeScript and Python SDKs have the same calls.
Images: base, python, node, browser. Each is
Ubuntu 24.04 with Python 3.12, Node 22 and Chromium.
import { Vivarium } from "@vivarium/sdk";
const vv = new Vivarium({ apiKey: process.env.VIVARIUM_API_KEY, baseUrl: "https://api.wardcase.com" });
const sbx = await vv.sandboxes.create({
image: "python",
size: "small",
region: "eu-west",
});
const result = await sbx.run("python -c 'print(sum(range(10)))'");
console.log(result.exitCode, result.stdout.trim()); // 0 45
await sbx.kill(); import os
from vivarium import Vivarium
vv = Vivarium(api_key=os.environ["VIVARIUM_API_KEY"], base_url="https://api.wardcase.com")
sbx = vv.sandboxes.create(
image="python",
size="small",
region="eu-west",
)
result = sbx.run("python -c 'print(sum(range(10)))'")
print(result.exit_code, result.stdout.strip()) # 0 45
sbx.kill() How it works
Commands go down. Events come back.
The API runs on Cloudflare Workers, with one Durable Object per sandbox. Each host keeps one outbound WebSocket open to the control plane. Commands travel down it, and the events the host records travel back up into the audit trail.
- 1
Your agent calls the API with a key. The call goes to the sandbox's Durable Object, which sends commands to the host one at a time.
- 2
The host takes the command from the socket it opened. Its firewall admits only SSH and HTTPS, and only from Cloudflare.
- 3
The command runs in a gVisor container. Outbound traffic passes the host's nftables filter, outside the sandbox's reach.
- 4
The API, the host and the SSH gateway write the events. Read them per sandbox, or export them as JSONL.
Audit trail
An audit trail for every sandbox.
An agent acts without a person watching each step. When something goes wrong, you need to know what it ran, which files it touched and where it connected.
Wardcase records every API command, file transfer, exposed port and outbound connection, for every sandbox, with no code on your side. Every SSH or terminal session is recorded as a start and an end, with its duration. Keystrokes are not.
Recorded
- Commands run through the API, with arguments, working directory, exit code, duration and output size
- Files written or read through the API or SFTP, with path, size and SHA-256
- Exposed ports and their access mode
- Outbound connections: destination, port, TLS server name, and whether they were allowed
- SSH and terminal sessions: when each starts and ends, and how it signed in
- Snapshots, egress policy changes, API keys and SSH keys
Never recorded
- File contents
- Command output
- Keystrokes and commands typed inside an SSH or terminal session
- Values of environment variables you pass to a sandbox
{"id":88213,"org_id":"org_2m7c4x9q0h5v8k1d","sandbox_id":"sbx_4f9k2m8q1z7x3c5v","type":"sandbox.created","actor":{"kind":"api_key","id":"key_9r3t6w1y8u2i5o7p"},"payload":{"image":"python","size":"small","region":"eu-west","idle_timeout_s":600,"hard_timeout_s":3600,"egress_policy_id":null,"snapshot_id":null},"occurred_at":"2026-09-25T10:14:02.118Z"}
{"id":88214,"org_id":"org_2m7c4x9q0h5v8k1d","sandbox_id":"sbx_4f9k2m8q1z7x3c5v","type":"exec.started","actor":{"kind":"api_key","id":"key_9r3t6w1y8u2i5o7p"},"payload":{"exec_id":"exe_5b8n1c6x3z9v2m4q","cmd":["/bin/sh","-c","pip install requests"],"cwd":"/work","pty":false,"source":"api"},"occurred_at":"2026-09-25T10:14:03.482Z"}
{"id":88215,"org_id":"org_2m7c4x9q0h5v8k1d","sandbox_id":"sbx_4f9k2m8q1z7x3c5v","type":"egress.connection","actor":{"kind":"host","id":"host_7t2p9w4k1m6c3x8z"},"payload":{"dst_ip":"151.101.0.223","dst_port":443,"proto":"tcp","sni":"pypi.org","action":"allow","rule":"default"},"occurred_at":"2026-09-25T10:14:04.019Z"}
{"id":88216,"org_id":"org_2m7c4x9q0h5v8k1d","sandbox_id":"sbx_4f9k2m8q1z7x3c5v","type":"exec.finished","actor":{"kind":"api_key","id":"key_9r3t6w1y8u2i5o7p"},"payload":{"exec_id":"exe_5b8n1c6x3z9v2m4q","exit_code":0,"duration_ms":4424,"stdout_bytes":2381,"stderr_bytes":0,"truncated":false,"timed_out":false},"occurred_at":"2026-09-25T10:14:07.906Z"}
{"id":88217,"org_id":"org_2m7c4x9q0h5v8k1d","sandbox_id":"sbx_4f9k2m8q1z7x3c5v","type":"file.put","actor":{"kind":"api_key","id":"key_9r3t6w1y8u2i5o7p"},"payload":{"path":"/work/app.py","size":98,"sha256":"0308caa7a7d86136066cfee5b295d8c214d8cf77e2ae90deccb31750f6d5e31d","mode":"0644","source":"api"},"occurred_at":"2026-09-25T10:14:08.310Z"}
{"id":88218,"org_id":"org_2m7c4x9q0h5v8k1d","sandbox_id":"sbx_4f9k2m8q1z7x3c5v","type":"exec.started","actor":{"kind":"api_key","id":"key_9r3t6w1y8u2i5o7p"},"payload":{"exec_id":"exe_8h3k6m1q9w4z2x7c","cmd":["/bin/sh","-c","python /work/app.py"],"cwd":"/work","pty":false,"source":"api"},"occurred_at":"2026-09-25T10:14:08.512Z"}
{"id":88219,"org_id":"org_2m7c4x9q0h5v8k1d","sandbox_id":"sbx_4f9k2m8q1z7x3c5v","type":"egress.connection","actor":{"kind":"host","id":"host_7t2p9w4k1m6c3x8z"},"payload":{"dst_ip":"169.254.169.254","dst_port":80,"proto":"tcp","action":"block","rule":"builtin"},"occurred_at":"2026-09-25T10:14:08.733Z"}
{"id":88220,"org_id":"org_2m7c4x9q0h5v8k1d","sandbox_id":"sbx_4f9k2m8q1z7x3c5v","type":"exec.finished","actor":{"kind":"api_key","id":"key_9r3t6w1y8u2i5o7p"},"payload":{"exec_id":"exe_8h3k6m1q9w4z2x7c","exit_code":1,"duration_ms":5295,"stdout_bytes":0,"stderr_bytes":1184,"truncated":false,"timed_out":false},"occurred_at":"2026-09-25T10:14:13.807Z"}
{"id":88221,"org_id":"org_2m7c4x9q0h5v8k1d","sandbox_id":"sbx_4f9k2m8q1z7x3c5v","type":"ssh.session.started","actor":{"kind":"ssh","id":"ssh_k7qmv4xcz3wbn2pr6t5yhjdfgs"},"payload":{"session_id":"ssh_k7qmv4xcz3wbn2pr6t5yhjdfgs","client_ip":"unavailable","auth":"publickey","kind":"shell","fingerprint":"SHA256:Wq7m3Kx9ZbR2tYv5Lp8NcD4hJf6Gs1Ae0uTiOkPlMnE"},"occurred_at":"2026-09-25T10:15:40.020Z"}
{"id":88222,"org_id":"org_2m7c4x9q0h5v8k1d","sandbox_id":"sbx_4f9k2m8q1z7x3c5v","type":"ssh.session.ended","actor":{"kind":"ssh","id":"ssh_k7qmv4xcz3wbn2pr6t5yhjdfgs"},"payload":{"session_id":"ssh_k7qmv4xcz3wbn2pr6t5yhjdfgs","duration_ms":94210,"exit_code":0},"occurred_at":"2026-09-25T10:17:14.230Z"}
{"id":88223,"org_id":"org_2m7c4x9q0h5v8k1d","sandbox_id":"sbx_4f9k2m8q1z7x3c5v","type":"sandbox.destroyed","actor":{"kind":"api_key","id":"key_9r3t6w1y8u2i5o7p"},"payload":{"reason":"api","vcpu_seconds":198,"gb_hours":0.055,"egress_bytes":38912},"occurred_at":"2026-09-25T10:17:20.004Z"}
The example session above, as an export writes it. Query the same events with GET /v1/audit by sandbox,
type and time. How the audit trail works
Primitives
What an agent can do in a sandbox.
- exec.*
Run commands
Get the exit code, stdout and stderr, or stream the output while the command runs.
- file.*
Move files
Write, read and list files through the API. Each transfer is logged with its path, size and SHA-256.
- port.*
Expose ports
Serve a port at
https://<port>-<id-part>.wardcase.com, public or behind a token. - ssh.session.*
Connect over SSH
ssh <sandbox-id>@ssh.wardcase.comgives a shell, SFTP and local port forwarding. Sign in with your SSH key or a short-lived token. - snapshot.*
Snapshot and restore
Save a sandbox's
/workdirectory as a snapshot, then start new sandboxes from it. - sandbox.destroyed
Time out on their own
A sandbox with no activity for 10 minutes is destroyed, and none lives past its hard timeout. You set both per sandbox.
- gVisor containers
- A sandbox's system calls are handled by gVisor's user-space kernel, not passed straight to the host kernel. No sandbox runs privileged.
- Egress policy on the host
- The host filters outbound traffic with nftables, outside the sandbox. Private networks, the cloud metadata address and known mining pools are always blocked.
- Hard limits
- CPU, memory, process count and disk are capped for the size you pick. Timeouts end sandboxes nobody is using.
Regions
You choose the region.
Each sandbox runs on a host in the region you pass when you create it. During early access not every region has
a host yet, and GET /v1/regions tells you which ones are online.
| Region | ID | Runs on |
|---|---|---|
| US East | us-east | AWS us-east-1 |
| EU West | eu-west | Microsoft Azure westeurope |
| India South | in-south | AWS ap-south-1 |
Pricing
Pay for what runs.
-
$0.10
per vCPU-hour
-
$0.03
per GB-hour of memory
-
$0.09
per GB of outbound traffic
A running sandbox is billed for its size for every second it exists:
small $0.13 an hour, medium $0.32 an hour, large $0.64 an hour, plus egress.
Every organization gets 20 sandbox-hours of the small size each
calendar month and can run up to 2 sandboxes at once, with no card on file.
Start with the quickstart.
Create an API key in the dashboard, install the SDK, and run your first command. The quickstart takes you through each call.