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

  1. create image="python" size="small" region="eu-west"

    1. sandbox.created python small eu-west
  2. run "pip install requests" exit 0 after 4.4 s

    1. exec.started pip install requests
    2. egress.connection allow pypi.org:443
    3. exec.finished exit_code 0
  3. files.write "/work/app.py"

    1. file.put 98 B, sha256 0308caa7
  4. run "python /work/app.py" app.py opens 169.254.169.254:80, exit 1

    1. exec.started python /work/app.py
    2. egress.connection block 169.254.169.254:80
    3. exec.finished exit_code 1
  5. ssh sbx_4f9k2m8q1z7x3c5v@ssh.wardcase.com a shell; keystrokes are not recorded

    1. ssh.session.started publickey, shell
    2. ssh.session.ended 94,210 ms
  6. kill

    1. sandbox.destroyed reason api
An example session. Inside the boundary, the calls an agent made. Outside it, the events the API, the host and the SSH gateway wrote for them.

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.

How a command reaches a sandbox, and how its events reach the audit trail Your agent calls the control plane over HTTPS. The control plane sends the command down a WebSocket that the host opened outbound. The command runs in a gVisor sandbox on the host. Outbound traffic passes the host's nftables filter, which blocks the metadata address, private ranges and mining pools. Events travel back up the same socket and the control plane writes them to the audit trail. Your agent TypeScript or Python SDK or plain HTTPS HTTPS Control plane api.wardcase.com Workers, a Durable Object per sandbox writes Audit trail Postgres, one row per event GET /v1/audit, JSONL export to R2 commands events one WebSocket, opened outbound by the host host, in the region you chose sandbox, gVisor (runsc) runs as user agent all capabilities dropped writes to /work, /tmp, /run its own network namespace nftables egress filter Internet block metadata, private ranges, mining pools How a command reaches a sandbox, and how its events reach the audit trail Your agent calls the control plane over HTTPS. The control plane writes events to the audit trail and sends commands down a WebSocket the host opened outbound. The command runs in a gVisor sandbox. Outbound traffic passes the host's nftables filter, which blocks the metadata address, private ranges and mining pools. Your agent TypeScript or Python SDK HTTPS Control plane api.wardcase.com Cloudflare Workers, a Durable Object per sandbox Audit trail Postgres GET /v1/audit JSONL export commands down, events up over one outbound WebSocket host, in your region sandbox, gVisor runs as user agent all capabilities dropped writes to /work, /tmp, /run its own network namespace nftables egress filter allowed Internet block metadata, private ranges, mining pools
  1. 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. 2

    The host takes the command from the socket it opened. Its firewall admits only SSH and HTTPS, and only from Cloudflare.

  3. 3

    The command runs in a gVisor container. Outbound traffic passes the host's nftables filter, outside the sandbox's reach.

  4. 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
audit-export.jsonl 11 events, one JSON object per line
{"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.com gives 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 /work directory 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.

Isolation

Isolated by default.

How isolation, egress and credentials work

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.

RegionIDRuns 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.

Full pricing and how metering works

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.