Give every AI agent its own sandbox, on your own server.
Each agent gets an isolated Linux machine on hardware you own or rent. One command sets it up. Your keys stay on the server, and the only traffic out is your model calls.
- Ubuntu
- Debian
Hosted sandboxes rent you computers. yass turns yours into one.
Everything runs on your server. Your laptop sends commands over SSH, and the only traffic that leaves is the model calls you'd make anyway.
Keys stay on the server. Sandboxes get a scoped yass_sbx_ token that only works through the proxy.
Rate limits are respected. On a 429, yass waits and retries the same key. It never switches accounts.
Offline when you want. A --network deny sandbox can't reach the internet, only the proxy.
A full Linux machine per agent.
Each sandbox has its own files, ports, processes and database. Agents can't step on each other, or on you.
Install dependencies once, save a snapshot, and fork as many sandboxes from it as your server holds.
Isolation you can check.
yass uses the strongest backend your server supports, and yass status shows which one every sandbox actually has.
Hardened container
All Linux capabilities dropped except the few package installs need, no privilege escalation, and a cap on processes.
On everywheregVisor
System calls go through a user-space kernel instead of the host's. yass init installs a pinned, checksum-verified release on x86_64 and arm64.
microVM
Each sandbox gets its own virtual machine, with its own kernel, network and disk.
Coming soonNumbers we measured, and numbers you can.
One real run so far, on a small cloud server. Run the same benchmark on your box and you'll get your own.
Half of all starts were ready in 546 ms or less.
20 starts with yass bench start on an AWS EC2 t3.small (2 vCPU, 2 GB, Ubuntu 24.04) with gVisor, December 2026.
A 64 GB server fits 14 sandboxes of 4 GB.
Server memory
Memory per sandbox
Counts memory only and keeps 10% (at least 2 GB) for the server itself. Heavy builds may fit fewer at once.
Drive it from a terminal, or from code.
Python and TypeScript have SDKs. Every other language talks to the same HTTP API, documented in an OpenAPI 3.1 spec. It listens on the server's loopback, so call it there or through an SSH tunnel.
$ yass new scratch --network deny $ yass exec scratch "uname -sm" Linux x86_64 $ yass rm scratch $ yass new web --browser $ yass verify web --screenshot home.png ✓ Browser check: HTTP 200, 0 console errors, screenshot saved to home.png
from yass_sdk import YassClient yass = YassClient() box = yass.create_sandbox(name="scratch", network_policy="deny") out = yass.exec(box["id"], "uname -sm") print(out["stdout"]) yass.delete(box["id"])
const yass = new YassClient() const box = await yass.createSandbox({ name: "scratch", network_policy: "deny" }) const out = await yass.exec(box.id, "uname -sm") console.log(out.stdout) await yass.delete(box.id)
func call(method, path, body string) map[string]any { req, _ := http.NewRequest(method, "http://127.0.0.1:7742"+path, strings.NewReader(body)) req.Header.Set("Authorization", "Bearer "+os.Getenv("YASS_TOKEN")) res, _ := http.DefaultClient.Do(req) var out map[string]any json.NewDecoder(res.Body).Decode(&out) return out } box := call("POST", "/v1/sandboxes", `{"name":"scratch","network_policy":"deny"}`) id := box["id"].(string) out := call("POST", "/v1/sandboxes/"+id+"/exec", `{"command":"uname -sm"}`) fmt.Print(out["stdout"]) call("DELETE", "/v1/sandboxes/"+id, "")
let api = "http://127.0.0.1:7742/v1/sandboxes"; let token = std::env::var("YASS_TOKEN")?; let client = reqwest::blocking::Client::new(); let bx: Value = client.post(api).bearer_auth(&token) .json(&json!({ "name": "scratch", "network_policy": "deny" })).send()?.json()?; let id = bx["id"].as_str().unwrap(); let out: Value = client.post(format!("{api}/{id}/exec")).bearer_auth(&token) .json(&json!({ "command": "uname -sm" })).send()?.json()?; print!("{}", out["stdout"].as_str().unwrap()); client.delete(format!("{api}/{id}")).bearer_auth(&token).send()?;
require "net/http" require "json" def call(req, body = nil) req["Authorization"] = "Bearer #{ENV["YASS_TOKEN"]}" req["Content-Type"] = "application/json" req.body = body.to_json if body JSON.parse(Net::HTTP.start("127.0.0.1", 7742) { |h| h.request(req) }.body) end box = call(Net::HTTP::Post.new("/v1/sandboxes"), name: "scratch", network_policy: "deny") out = call(Net::HTTP::Post.new("/v1/sandboxes/#{box["id"]}/exec"), command: "uname -sm") puts out["stdout"] call(Net::HTTP::Delete.new("/v1/sandboxes/#{box["id"]}"))
$ ID=$(curl -s localhost:7742/v1/sandboxes -H "Authorization: Bearer $YASS_TOKEN" \ -d '{"name":"scratch","network_policy":"deny"}' | jq -r .id) $ curl -s localhost:7742/v1/sandboxes/$ID/exec -H "Authorization: Bearer $YASS_TOKEN" \ -d '{"command":"uname -sm"}' | jq -r .stdout Linux x86_64 $ curl -s -X DELETE localhost:7742/v1/sandboxes/$ID -H "Authorization: Bearer $YASS_TOKEN"
$ claude mcp add yass -- yass mcp ✓ Added stdio MCP server yass > Fork three sandboxes from warm-node and run the test suite in each
Is yass for you?
There are dozens of hosted sandbox services, and they're good. yass is for the cases they can't cover.
Pick yass when
- Your code has to stay on machines you control.
- You already pay for a server and want your agents on it.
- You run a lot of agents and want one flat server bill, not a meter.
- You want to see and change exactly how isolation works.
Pick a hosted cloud when
- You don't want to own or rent a server at all.
- You need thousands of sandboxes at once across regions.
- You need GPUs or memory snapshots today.
- You want someone else on call for the machines.
Questions.
Why not git worktrees on my laptop?
Worktrees separate folders, not machines. Agents can still read your SSH keys and .env files, they fight over ports and databases, and a few at once max out a laptop.
Do my API keys ever enter a sandbox?
No. Sign in with yass accounts login claude or codex, which opens the provider's own sign-in in your browser, or add an API key for any of eight providers. Either way it's encrypted on the server, and sandboxes only see a scoped token that works through the yass proxy and nowhere else.
What server do I need?
Any Ubuntu or Debian machine you can SSH into: a small VPS for a couple of agents, a big dedicated box for dozens. yass server up --aws can start one for you.
Can agents use a browser?
Yes, when you ask. yass new --browser adds a real browser, a desktop you can watch from your laptop, and screenshot, click and type tools over the API and MCP. Playwright can also connect to it over CDP. Every port stays inside the sandbox and reaches you only through SSH.
Is yass hosted?
No. It runs on machines you own or rent. Nothing about your code, prompts or keys goes to us.
Your laptop runs the terminal. Your server runs the agents.
Install the CLI, point it at a server, and start your first sandbox.