A sealed computer for every agent, one call away.
kosa8 is Zero Trust cybersecurity infrastructure for AI agents: each agent, test run or RL rollout gets a microVM of its own. Start one in seconds,
run anything in it, then checkpoint, rewind or fork it, memory and processes included. Use the CLI, plain
curl, or an SDK.
$ kosa8 run --cloud python:3.12-slim python3 -c 'import platform; print("hello from", platform.machine())'On kosa8 Cloud: sandbox sbx_o3KdS0Ad4JvJ8oPeiMziA (python:3.12-slim), deleted when this endshello from x86_64 $ kosa8 cloud checkpoint create $IDk8ckpt-sbx_r7Des…-9eef9ce7 · 0.98 s$ kosa8 cloud sandbox exec $ID -- rm /workspace/notes.txt$ kosa8 cloud checkpoint rewind $ID $CKRewound sbx_r7Des… to k8ckpt-…-9eef9ce7. · 0.82 s$ kosa8 cloud sandbox exec $ID -- cat /workspace/notes.txtv1$ kosa8 cloud sandbox fork $ID -n 3sbx_rKn1KkMp05z4djYN8EMHjAsbx_RqkrO11I5HUZaAUt4VFVJgsbx_Q7uRZUndQ8cpkS8CA6drJQ · 4.63 s
From nothing to a running sandbox#
Get a key#
Sign up at app.kosa8.com (free, no card) and make one under
API keys. It starts with k8c_live_. Paste it here and every snippet on this page uses it.
k8c_live_… into the snippets on this page so you can paste them as they are. Kept in this browser tab only, never sent anywhere.export KOSA8_API_KEY=k8c_live_…Run something#
Pick your language. Every tab below makes a sandbox, runs print(6 * 7) in it, prints
42 and deletes it. Each one is run against kosa8 Cloud before the docs ship.
kosa8 run --cloud python:3.12-slim python3 -c 'print(6 * 7)'
# Create a sandbox from the python template SBX=$(curl -s https://api.kosa8.com/v1/sandboxes \ -H "Authorization: Bearer $KOSA8_API_KEY" \ -H 'Content-Type: application/json' \ -d '{"template":"python","ttl_s":600}' | jq -r .sandbox.id) # Run a command in it curl -s https://api.kosa8.com/v1/sandboxes/$SBX/exec \ -H "Authorization: Bearer $KOSA8_API_KEY" \ -H 'Content-Type: application/json' \ -d '{"cmd":["python3","-c","print(6 * 7)"]}' # Delete it curl -s -X DELETE https://api.kosa8.com/v1/sandboxes/$SBX \ -H "Authorization: Bearer $KOSA8_API_KEY"
from kosa8 import Kosa8Cloud cloud = Kosa8Cloud() # reads KOSA8_API_KEY with cloud.sandboxes.create(template="python", ttl_s=600) as box: r = box.exec(["python3", "-c", "print(6 * 7)"]) print(r.exit_code, r.stdout) # 0 42 # the sandbox is deleted when the block ends
import { Kosa8Cloud } from '@kosa8/sdk'; const cloud = new Kosa8Cloud(); // reads KOSA8_API_KEY const box = await cloud.sandboxes.create({ template: 'python', ttlS: 600 }); try { const r = await box.exec(['python3', '-c', 'print(6 * 7)']); console.log(r.exitCode, r.stdout); // 0 42 } finally { await box.delete(); }
package main import ( "context" "fmt" "log" kosa8 "github.com/kosa8ai/kosa8-go" ) func main() { ctx := context.Background() cloud, err := kosa8.NewCloud(kosa8.CloudOptions{}) // reads KOSA8_API_KEY if err != nil { log.Fatal(err) } box, err := cloud.Sandboxes.Create(ctx, kosa8.CloudCreateOptions{Template: "python", TTLSeconds: 600}) if err != nil { log.Fatal(err) } defer box.Delete(ctx) r, err := box.Exec(ctx, []string{"python3", "-c", "print(6 * 7)"}, nil) if err != nil { log.Fatal(err) } fmt.Print(r.Stdout) // 42 }
require "kosa8" cloud = Kosa8::Cloud.new # reads KOSA8_API_KEY box = cloud.sandboxes.create(template: "python", ttl_s: 600) begin r = box.exec(["python3", "-c", "print(6 * 7)"]) puts r.exit_code, r.stdout # 0, 42 ensure box.delete end
import com.kosa8.*; public class Main { public static void main(String[] args) throws Exception { Kosa8Cloud cloud = Kosa8Cloud.builder().build(); // reads KOSA8_API_KEY CloudSandbox box = cloud.sandboxes().create( new CloudOptions.Create().template("python").ttlSeconds(600)); try { CloudExecResult r = box.exec("python3 -c 'print(6 * 7)'"); System.out.println(r.exitCode() + " " + r.stdout()); // 0 42 } finally { box.delete(); } } }
Keep going#
The quickstart installs the SDKs and walks through files, streaming and fork. Or jump straight to checkpoints and fork, the part nothing else does.
Pick the shape that fits#
From the terminal#
kosa8 cloud … for sandboxes you keep, kosa8 run for one-offs. Flags and
defaults straight from the binary.
From any language#
318 endpoints at api.kosa8.com, one Bearer header, JSON in and out, NDJSON or
SSE when you stream.
Nothing to manage#
Send code, get output: POST /v1/run takes a warm sandbox and deletes it after. Or deploy a
function and call it by name.
Checkpoint once, try three ways, keep the winner#
The kosa8 mark is a stem that splits in two, and so is the product: a sandbox is a whole running machine, so you can save it, copy it and go back to it, in seconds.
- Checkpoint saves memory, processes and disk. Up to 10 per sandbox.
- Fork makes up to 1,000 running copies of one sandbox, each picking up exactly where it was.
- Rewind puts a sandbox back to a checkpoint, and saves how it was first, so a rewind can be undone.
Core concepts#
What are you building?#
Docs your agent can read#
Every page has a Markdown twin (add .md to its address) and the buttons on the right copy it
or open it in Claude or ChatGPT. Point an agent at llms.txt,
llms-full.txt or AGENTS.md, or give it the
MCP server and let it drive kosa8 itself.