# kosa8 docs > kosa8 is Zero Trust cybersecurity infrastructure for AI agents. It gives every AI agent a sealed sandbox of its own: a microVM you can checkpoint, rewind and fork, memory and processes included. kosa8 Cloud runs them on kosa8's hosts (https://api.kosa8.com, region us-ash1, Ashburn, Virginia) from a CLI, an HTTP API, an MCP server and SDKs for Python, JavaScript, Go, Ruby and Java. kosa8d runs the same sandboxes on Mac, Linux and Windows, on your own servers, or air-gapped. Product: https://kosa8.com/ · Pricing: https://kosa8.com/pricing/ (free Starter tier, no card: $10 of usage, 2 running, no time limit; plans from $29/month include sandbox-hours, use above them metered per second up to a spend cap, on by default at $50) · Rate card as JSON: https://api.kosa8.com/v1/pricing ## For AI agents - [AGENTS.md](https://docs.kosa8.com/AGENTS.md): set kosa8 up for the person you work for, and run tasks in sandboxes - [Everything in one file](https://docs.kosa8.com/llms-full.txt): every page, API tag and command as markdown - [OpenAPI 3.1](https://api.kosa8.com/openapi.json): the whole HTTP API - Versions: the current CLI release is v0.24.0. These docs also describe the next release (each such command page says so). If a command answers `unknown command`, it is from the next release: tell the person, don't work around it - When kosa8 says it needs a plan: run with `--json`; every refusal at a plan limit carries `upgrade: {plan, price_usd, url, command}`. Relay it to the person; never buy anything yourself ## Get started - [kosa8 docs](https://docs.kosa8.com/index.md): Zero Trust cybersecurity infrastructure for AI agents. A running microVM in under a minute from the CLI, the HTTP API, serverless functions or SDKs for Python, JavaScript, Go, Ruby and Java, with fork, checkpoint and rewind. - [Quickstart](https://docs.kosa8.com/quickstart.md): Get an API key, install the CLI or an SDK, and run code in a kosa8 Cloud sandbox in under a minute, in CLI, curl, Python, JavaScript, Go, Ruby or Java. - [API keys and auth](https://docs.kosa8.com/concepts/auth.md): How kosa8 Cloud authenticates: API keys with scopes, the CLI's browser sign-in, and short-lived capability tokens you hand to your own users. - [Install kosa8](https://docs.kosa8.com/guides/install.md): One line in a terminal, or the Mac app. Both take about a minute. - [kosa8 Cloud](https://docs.kosa8.com/guides/cloud.md): Run kosa8 sandboxes and functions on our hosts: sign up at app.kosa8.com, add a payment method, make an API key, and call it from the SDKs or plain HTTP. - [Let your agent set kosa8 up](https://docs.kosa8.com/guides/agent-setup.md): Point Claude Code, Codex or Cursor at kosa8.com/AGENTS.md and it installs kosa8, asks you for the sign-up code, and runs its work in sandboxes. ## Core concepts - [Sandboxes](https://docs.kosa8.com/concepts/sandboxes.md): The kosa8 Cloud sandbox lifecycle: create, read, extend and delete, with ttl_s, sleep_after_s, names, labels and states. - [Sizes and templates](https://docs.kosa8.com/concepts/sizes.md): kosa8 Cloud sandbox sizes from 0.25 vCPU / 512 MiB to 16 vCPU / 32 GiB, the base, python, node and universal templates, and bringing your own image. - [Exec and streaming](https://docs.kosa8.com/concepts/exec.md): Run commands in a kosa8 Cloud sandbox: buffered exec up to 90 seconds, streamed NDJSON or server-sent events with no limit, and background commands you poll. - [Files](https://docs.kosa8.com/concepts/files.md): Upload, download and list files in a kosa8 Cloud sandbox: raw bytes in and out under /workspace, with ranges, appends and direct links for large files. - [Fork, checkpoints and rewind](https://docs.kosa8.com/concepts/fork-rewind.md): Save a running kosa8 Cloud sandbox with its memory and processes, put it back, or copy it up to 1,000 times. - [Sleep and wake](https://docs.kosa8.com/concepts/sleep.md): kosa8 Cloud sandboxes sleep when idle, with memory and disk saved, and wake on the next call. - [Snapshots](https://docs.kosa8.com/concepts/snapshots.md): Save a kosa8 Cloud sandbox as a snapshot, memory and disk included, and start new sandboxes from it in seconds, with everything already installed. ## Serverless - [Functions](https://docs.kosa8.com/serverless/functions.md): Deploy a Python or Node.js function to kosa8 Cloud and call it by name: each call runs in a fresh microVM, with web endpoints, schedules and map. - [One-call run](https://docs.kosa8.com/guides/cloud-run.md): Run code or a command on kosa8 Cloud in one API call or one CLI command: a fresh sandbox, streamed output, files back, a shareable run link. ## Guides - [RL training on kosa8 Cloud](https://docs.kosa8.com/guides/rl-training.md): Run thousands of agent rollouts on kosa8 Cloud: batch create, fork a prepared state, leases that clean up after a crashed trainer, failure classes so infra errors are masked, a sealed grader, and an RL runs dashboard. - [Python: RL rollouts and evals](https://docs.kosa8.com/guides/py-rl-eval.md): Use kosa8 sandboxes for reinforcement learning and evals in Python: one sealed environment per episode, fork a prepared state into many, checkpoint and rewind mid-episode, score by running tests, and clean up with ephemeral sandboxes. - [Fan out from one snapshot](https://docs.kosa8.com/guides/cloud-fan-out.md): Set up a kosa8 Cloud sandbox once, snapshot it, start N copies with fork or from the snapshot, shard a test suite or a batch of rollouts across them, collect the results and clean up. Python and curl. - [Benchmarks on kosa8 Cloud](https://docs.kosa8.com/guides/benchmarks.md): SWE-bench Verified and Terminal-Bench 2.1, ready-made: every instance's official image and official grader, built by kosa8 on first use. A sandbox per instance, or a whole benchmark as a hosted job. - [Hosted jobs on kosa8 Cloud](https://docs.kosa8.com/guides/cloud-jobs.md): Send tasks, a solver and a sealed grader; kosa8 Cloud runs every rollout server-side, retries infra failures, records each rollout to an RL run, and stops at your budget. API, Python and CLI. - [Agent hooks for Claude Code, Cursor, Codex, Gemini CLI and Copilot CLI](https://docs.kosa8.com/guides/agent-hooks.md): kosa8 hooks install puts kosa8's checks in front of every shell command, file read and write, web fetch and MCP call your coding agent makes on your machine, records each decision, and can use your organization's central policy and send the decisions to its audit log and SIEM. - [Connect Claude, Cursor or Codex](https://docs.kosa8.com/guides/connect-agents.md): Give your AI coding agent kosa8 sandboxes in two commands: kosa8 mcp install adds the tools, kosa8 skill install teaches the agent when to use them. - [kosa8 Cloud MCP server](https://docs.kosa8.com/guides/cloud-mcp.md): Connect Claude, ChatGPT, Claude Code, Cursor, Codex or any MCP client to kosa8 Cloud with just a URL: a remote MCP server at api.kosa8.com/mcp, with OAuth sign-in or an API key, that creates sandboxes and runs commands in them. - [One task, one sandbox](https://docs.kosa8.com/guides/prompt.md): kosa8 prompt gives a coding agent one task in a fresh sandbox that sees one folder, holds no API key and is removed when the agent is done. - [Run an AI assistant](https://docs.kosa8.com/guides/agents.md): Claude Code, Codex, Gemini and others, each in a sealed machine that can only reach what you allow — and never holds your API key. - [Agent compatibility](https://docs.kosa8.com/guides/compatibility.md): Which AI coding agents and MCP clients kosa8 supports, and how: sandbox kits, keys kept out by the egress broker, checked tool calls, the kosa8 skill, MCP registration, and importing third-party Agent Skills safely. - [Writing a kit](https://docs.kosa8.com/guides/kits.md): Describe the environment an agent runs in: its image, what is installed, the one folder it sees, the hosts it reaches and the keys it uses. - [Browser sandboxes](https://docs.kosa8.com/guides/cloud-browsers.md): Headless Chromium for agents on kosa8 Cloud: open a browser, drive it with Playwright or Puppeteer over CDP through api.kosa8.com, take screenshots, billed per second. - [AI Gateway](https://docs.kosa8.com/guides/cloud-ai-gateway.md): Route your sandboxes' model calls (OpenAI, Anthropic, Groq, Mistral, DeepSeek, OpenRouter, Google AI Studio) through kosa8 and Cloudflare AI Gateway: provider keys that never enter the sandbox, and every call logged and costed per sandbox. - [Code interpreter](https://docs.kosa8.com/guides/cloud-code-interpreter.md): Run Python cells in a kosa8 Cloud sandbox that keep their variables between calls, with charts, HTML and JSON results, like a Jupyter kernel. - [Desktop and computer use](https://docs.kosa8.com/guides/cloud-desktop.md): Run a Linux desktop with Chromium in a kosa8 Cloud sandbox: watch or take over through noVNC on a preview URL, drive the browser over CDP, and take screenshots and send input from an exec. - [Android emulator (preview)](https://docs.kosa8.com/guides/cloud-android.md): Run an Android emulator in a kosa8 Cloud sandbox for mobile agents and mobile RL: watch it through noVNC on a preview URL, reach adb from outside, and take screenshots, tap, swipe, type, install APKs and dump the UI from an exec. A preview that needs a host with nested virtualization. - [Local models](https://docs.kosa8.com/guides/models.md): Run AI on your own machine. Nothing sent out, nothing charged per word. - [Templates gallery](https://docs.kosa8.com/guides/templates.md): One-click starter sandboxes on kosa8 Cloud: Claude Code, Cursor, the OpenAI Agents SDK, a browser agent, a data notebook, a web app with a live preview, a CI runner and a security range, each set up and opened on its first result. - [The universal image](https://docs.kosa8.com/guides/cloud-images.md): What is in kosa8-universal, the Ubuntu 24.04 sandbox image with agent CLIs (Claude Code, Codex, Gemini, Copilot), MCP servers, cloud CLIs, git, Node, Python, Go, Rust, Java, Docker, kubectl and Terraform preinstalled: every version, what is left out and why, and its size. - [Snapshots, background commands and env](https://docs.kosa8.com/guides/cloud-snapshots-background.md): Save a kosa8 Cloud sandbox as a snapshot that outlives it and start new sandboxes from it, run a command that keeps going after the call returns, set environment variables at create, and get a pooled start for a sized sandbox. - [Preview URLs](https://docs.kosa8.com/guides/cloud-previews.md): Open a web server running in a kosa8 Cloud sandbox at its own https URL: private by default with a signed link, or public, per port. - [Terminal and large files](https://docs.kosa8.com/guides/cloud-terminal-files.md): Open an interactive terminal (PTY over WebSocket) in a kosa8 Cloud sandbox, and move files of any size with streamed uploads and downloads or presigned links. - [SSH and VS Code](https://docs.kosa8.com/guides/cloud-ssh.md): SSH, scp, port forwards and VS Code Remote-SSH into a kosa8 Cloud sandbox over its authenticated terminal, with no port 22 open anywhere. - [Embed a sandbox](https://docs.kosa8.com/guides/cloud-embed.md): Put a kosa8 Cloud sandbox's terminal or desktop in your own app: a signed, expiring iframe URL, view-only or interactive, framed only by your origins, with postMessage lifecycle events. - [Wake on request and schedules](https://docs.kosa8.com/guides/cloud-wake-cron.md): Let a request to a preview URL wake a sleeping kosa8 Cloud sandbox, and run commands in a sandbox on a cron schedule. - [Work with your GitHub repos](https://docs.kosa8.com/guides/cloud-github.md): Connect GitHub to kosa8 Cloud once, then start a sandbox or a run from any of your repos and send the changes back as a branch or a pull request, from the web app, CLI, SDKs, API or MCP. No token is pasted, and no GitHub token ever enters the sandbox. - [@kosa8 in issues and pull requests](https://docs.kosa8.com/guides/cloud-github-triggers.md): Comment @kosa8 run or @kosa8 agent on a GitHub issue or pull request: a command or your own coding agent runs in a fresh kosa8 sandbox, reports back in one reply and a check run, and agent changes come back as a draft pull request. Who can trigger, settings, limits and budgets. - [GitHub App permissions](https://docs.kosa8.com/guides/cloud-github-permissions.md): Every permission the kosa8 GitHub App asks for, what it is used for and never used for, the exact token each kosa8 operation asks GitHub for (repo, permission, lifetime, revoked after), the webhook events, and how to check all of it yourself. - [kosa8 Pipelines](https://docs.kosa8.com/guides/cloud-pipelines.md): CI on kosa8 Cloud with no GitHub Actions: a .kosa8/pipeline.yml whose jobs each run in a sized sandbox, or your existing .github/workflows run through act. Started by a push webhook, a schedule, the API or kosa8 ci run. - [GitHub Actions runners on kosa8 Cloud](https://docs.kosa8.com/guides/cloud-ci-runners.md): Run GitHub Actions jobs on kosa8 Cloud: one ephemeral self-hosted runner per job, in its own sealed microVM, sized 2 to 16 vCPUs, with git and the usual CI tools installed. - [kosa8 sandbox GitHub Action](https://docs.kosa8.com/guides/cloud-github-action.md): Run a command in a sealed kosa8 Cloud sandbox from a GitHub Actions workflow: create, run, print the output, set exit-code and sandbox-id, delete. - [Webhook recipes](https://docs.kosa8.com/guides/cloud-webhooks.md): Verify the Kosa8-Signature header on kosa8 Cloud webhooks in Node, Python and Go, and forward sandbox.error and spending_cap.reached to Slack. - [Metrics, logs and labels](https://docs.kosa8.com/guides/cloud-observability.md): Read a kosa8 Cloud sandbox's CPU, memory, disk and network use, its recent commands with their output, find sandboxes by label, and get webhooks when one is killed or runs out of memory. - [Framework integrations](https://docs.kosa8.com/guides/cloud-integrations-frameworks.md): Run kosa8 Cloud sandboxes from the OpenAI Agents SDK, Harbor, Inspect AI, LangChain Deep Agents, or code written for E2B, by changing a few lines or environment variables. - [kosa8 Cloud OpenAPI and llms.txt](https://docs.kosa8.com/guides/cloud-openapi.md): The kosa8 Cloud API described as OpenAPI 3.1 at api.kosa8.com/openapi.json, and in plain text for AI agents at api.kosa8.com/llms.txt. - [Air-gapped install](https://docs.kosa8.com/guides/air-gapped.md): Install kosa8 and the desktop app from a USB copy on a machine with no network, with an offline site licence. - [Bring your own cloud](https://docs.kosa8.com/guides/cloud-byoc.md): Run kosa8 Cloud sandboxes on your own servers or Kubernetes nodes behind your own tunnel: what stays in your environment, what kosa8 sees, network requirements, pricing, uninstall. - [Your first sandbox](https://docs.kosa8.com/guides/first-sandbox.md): Make a sealed machine, run something inside it, and see why it is not just a container. - [Save and undo](https://docs.kosa8.com/guides/undo.md): Checkpoint before something risky, rewind after it goes wrong. About a second either way. - [Try several ideas at once](https://docs.kosa8.com/guides/explore.md): Fork a machine per idea, run them in parallel, and let kosa8 report which worked. - [The desktop app](https://docs.kosa8.com/guides/desk.md): A window onto every machine, container and save point — including the tree of what came from what. - [When something is wrong](https://docs.kosa8.com/guides/self-repair.md): kosa8 doctor finds it, explains why it matters, and repairs what is safe to repair. - [Uninstall kosa8](https://docs.kosa8.com/guides/uninstall.md): Remove the CLI, the daemon, its login service and, if you want, your data. - [Verify a kosa8 download](https://docs.kosa8.com/guides/verify-release.md): Check the release signature, the checksum and the package signatures yourself. - [Migrate from E2B](https://docs.kosa8.com/migrate/e2b.md): Move E2B code to kosa8 Cloud: point the E2B SDK at kosa8 with three environment variables, or change one import to kosa8's E2B-compatible Python module. - [Migrate from Daytona](https://docs.kosa8.com/migrate/daytona.md): Move Daytona Python code to kosa8 Cloud by changing one import to kosa8's Daytona-compatible module. - [Migrate from Modal](https://docs.kosa8.com/migrate/modal.md): Move Modal Sandbox code to kosa8 Cloud by changing import modal to kosa8's Modal-compatible module. - [Security Center](https://docs.kosa8.com/guides/cloud-security.md): kosa8 Cloud's Security Center: a posture checklist from your org's own settings, an agent inventory, an org kill switch, SIEM streaming of the audit log as OCSF, and an evidence export. - [What if kosa8 were breached?](https://docs.kosa8.com/guides/cloud-github-breach.md): The GitHub agent incidents of 2025 and 2026, step by step, and exactly where kosa8's design breaks each attack chain and where it does not: a leaked app key, prompt injection through issues, tokens stolen from the environment, and tokens broader than the task. - [Securing an agent](https://docs.kosa8.com/guides/secure-agents.md): Everything kosa8 does to secure an AI agent itself, not only the sandbox around it: the layers, the threats each one answers, and what none of them do. - [Keep API keys out of the sandbox](https://docs.kosa8.com/guides/credentials.md): How kosa8's egress broker lets an AI agent use an API key it never holds: the sandbox gets a placeholder, and the real key is added on your computer. - [Secrets](https://docs.kosa8.com/guides/cloud-secrets.md): Give a kosa8 Cloud sandbox API keys it never holds: the host's egress broker adds the real value to its requests, and the sandbox sees only placeholders. - [Egress controls](https://docs.kosa8.com/guides/cloud-egress.md): Choose what a kosa8 Cloud sandbox may reach on the network: internet on or off, allow and deny lists, registry presets, per sandbox and per organization, enforced on the host. - [Network rules](https://docs.kosa8.com/guides/network.md): What a kosa8 sandbox can reach, how to say so, and where it is enforced: the guard on your computer, DNS answered on the host, and the egress broker on top. - [Tool servers (MCP)](https://docs.kosa8.com/guides/mcp-servers.md): Run third-party MCP servers behind kosa8's gateway: each in its own sandbox, with pinned tool definitions and checked arguments. - [MCP server catalog](https://docs.kosa8.com/guides/mcp-catalog.md): Add GitHub, Playwright, Stripe, Notion, Linear and other official MCP servers to kosa8 in one step: sandboxed, pinned, with secrets kept out of the agent's reach. - [Rules for tool calls](https://docs.kosa8.com/guides/tool-rules.md): Decide an AI agent's tool call by its arguments: allow it, deny it, or hold it until a person approves that exact call. - [Agent attack tests](https://docs.kosa8.com/guides/attack-tests.md): Run a fixed catalogue of AI-agent attacks against kosa8's own controls, labelled with OWASP LLM 2025 and MITRE ATLAS ids, and keep a signed scorecard. - [Swarms and the threat feed](https://docs.kosa8.com/guides/swarm.md): Run many agents from one prepared sandbox, each in its own microVM, with one shared list of blocked hosts and one kill switch. - [Agent identity](https://docs.kosa8.com/guides/agent-identity.md): Give each AI agent a token the service verifies, so policy can differ between agents and the audit log names which one acted. - [Company rules](https://docs.kosa8.com/guides/governance.md): Signed policy that a laptop cannot edit its way around, and a record of every decision. - [Policy reference](https://docs.kosa8.com/guides/policy-reference.md): Every field of the two signed policy documents, where each is enforced, and what happens when a policy is missing or edited. - [The audit log](https://docs.kosa8.com/guides/audit.md): What kosa8 writes down about every action, how to read it, and how to prove nobody edited it. - [Agent troubleshooting](https://docs.kosa8.com/guides/troubleshooting.md): Every refusal and warning an agent or its user can meet, what each one means and what to do about it. ## SDKs - [SDKs in five languages](https://docs.kosa8.com/guides/sdks.md): Drive kosa8 from Python, TypeScript, Go, Ruby or Java. What the SDKs do in plain words, how to install each, and which page to read next. - [Python quickstart](https://docs.kosa8.com/guides/py-quickstart.md): Run code in a sealed microVM sandbox from Python in five minutes: install the kosa8 package with pip or uv, connect to the daemon, create a sandbox with no network, run a command, checkpoint, rewind and delete. Every step with its real output. - [Python developer guide](https://docs.kosa8.com/guides/py-guide.md): Everything the kosa8 Python SDK does, in depth: connecting (socket, KOSA8_HOST, tokens, timeouts), sandboxes and egress, run, exec, stdin and attach, snapshots, fork, explore, checkpoints and the shared checkpoints.json, threads and asyncio, and patterns for AI agent loops. Current release: kosa8 0.7.0. - [Python: OpenAI Agents SDK and LangChain](https://docs.kosa8.com/guides/py-frameworks.md): Give an OpenAI Agents SDK or LangChain/LangGraph agent a kosa8 sandbox as tools: run code, a shell that keeps cd, files, git and preview links, with errors handed back to the model as text. - [Python errors and troubleshooting](https://docs.kosa8.com/guides/py-errors.md): Every exception the kosa8 Python SDK (0.5.5) raises, including the kosa8 Cloud 402, 423, 429 and 504 errors: when it is raised, its attributes, a real message, and what to do. Plus a troubleshooting table of symptoms, causes and fixes: daemon not running, socket paths, names in use, timeouts, stdin, failed rewinds, checkpoint races and pip on macOS. - [Python API reference](https://docs.kosa8.com/guides/py-api.md): Every public class, function, method, constant and dataclass of the kosa8 Python SDK 0.5.5, including the toolbox and the kosa8 Cloud client: exact signatures, parameters, defaults, return shapes, endpoints and errors. - [JavaScript and TypeScript: choosing a path](https://docs.kosa8.com/guides/js-overview.md): Four ways to drive kosa8 from Node: the @kosa8/sdk client, the Vercel AI SDK adapter, MCP, and the Docker API. What each is for, with a decision table. - [Install and prerequisites (JavaScript)](https://docs.kosa8.com/guides/js-install.md): Install kosa8 and start its daemon, install @kosa8/sdk or @kosa8/ai-sdk-sandbox, check the connection with health() and version(), and set up TypeScript. - [Quickstart (@kosa8/sdk)](https://docs.kosa8.com/guides/js-quickstart.md): Your first kosa8 sandbox from Node in five steps: connect, create a sealed microVM, run a command, exec into a container, then checkpoint and rewind. Each step with its real output. - [Connecting (JavaScript)](https://docs.kosa8.com/guides/js-connecting.md): How @kosa8/sdk finds the daemon: the default socket, socketPath, KOSA8_HOST forms, KOSA8_TOKEN, KOSA8_INSECURE, the actor and agent-token headers, and remote workers. - [Sandboxes (JavaScript)](https://docs.kosa8.com/guides/js-sandboxes.md): Create kosa8 sandboxes from Node with cpus, memory, disk, mounts, labels, packet capture and a broker; list, get, stop, start, delete and wipe them; manage their images and containers. - [Running code (JavaScript)](https://docs.kosa8.com/guides/js-running-code.md): run, exec, execFrames, startContainer, startInteractive, writeStdin and attach in @kosa8/sdk: streaming output, exit codes as results, stdin, time limits and stream errors. - [Files (JavaScript)](https://docs.kosa8.com/guides/js-files.md): Get files into and out of a kosa8 sandbox from Node: the workspace file calls (listFiles, readFile, writeFile), a host folder mount, exec with base64, or the AI SDK adapter's read and write methods. - [Network and secrets (JavaScript)](https://docs.kosa8.com/guides/js-network.md): Set a kosa8 sandbox's egress from Node: deny, any, fakenet or an allow-list; read what was refused; and use the credential broker so the agent never holds an API key. - [Checkpoints and rewind (JavaScript)](https://docs.kosa8.com/guides/js-checkpoints.md): Save a running kosa8 sandbox before a risky step and put it back in about half a second, processes and all, from Node. How checkpoints are stored and shared with the CLI. - [Fork and explore (JavaScript)](https://docs.kosa8.com/guides/js-fork-explore.md): Copy a running kosa8 sandbox into live, independent copies from Node, and run several approaches in parallel to keep the fastest one that works (best-of-N). - [Snapshots (JavaScript)](https://docs.kosa8.com/guides/js-snapshots.md): Save a running kosa8 sandbox as a named snapshot from Node, restore it as many times as you like, encrypt it, and restore a sealed snapshot whose seal does not verify. - [Approvals and policy (JavaScript)](https://docs.kosa8.com/guides/js-approvals.md): When an org policy wants named people to approve an action, @kosa8/sdk throws Kosa8ApprovalRequiredError. How a human approves through the CLI, and how your code repeats the call with the approval id. - [Vercel AI SDK 7 adapter](https://docs.kosa8.com/guides/js-ai-sdk.md): @kosa8/ai-sdk-sandbox: run an AI SDK agent's files and commands in a kosa8 microVM. Sessions, the work container, restricted(), templates, network policy, stop and resume, destroy, and a full generateText agent. - [Recipes (JavaScript)](https://docs.kosa8.com/guides/js-recipes.md): Complete, tested Node programs for kosa8: run LLM-generated code safely, a coding agent on a mounted repo, parallel test variants, checkpoint before a migration, an Express or Next.js route, CI, MCP from TypeScript frameworks, and dockerode or Testcontainers. - [Errors reference (JavaScript)](https://docs.kosa8.com/guides/js-errors.md): Every error class @kosa8/sdk 0.5.3 throws, including timeouts and the kosa8 Cloud 402, 423, 429 and exec-timeout errors: when it is thrown, its fields, a real message where one was captured, and how to handle it. - [Troubleshooting (JavaScript)](https://docs.kosa8.com/guides/js-troubleshooting.md): Problems you can meet driving kosa8 from Node, with the real messages: daemon not running, socket path length on macOS, a locked Mac, disk space, Node versions, egress refusals, approvals, and a script that does not exit. - [API reference (JavaScript)](https://docs.kosa8.com/guides/js-api.md): The exported functions, classes, types and options of @kosa8/sdk 0.5.3 (local client, toolbox, the kosa8 Cloud client, RL runs and hosted jobs) and @kosa8/ai-sdk-sandbox 0.2.1. - [Go quickstart](https://docs.kosa8.com/guides/go-quickstart.md): Run code in a sealed microVM sandbox from Go in five minutes: install kosa8-go, connect to the daemon, create a sandbox with no network, run a command, checkpoint, rewind and delete. Every step with its real output. - [Go developer guide](https://docs.kosa8.com/guides/go-guide.md): Everything the local client in kosa8-go v0.5.3 can do, explained in plain words first and then in depth: connecting, contexts and timeouts, goroutine safety, sandboxes, running code, streaming and stdin, checkpoints shared with the CLI, snapshots, fork and explore, and tested recipes. - [Go errors and troubleshooting](https://docs.kosa8.com/guides/go-errors.md): Every error kosa8-go v0.5.3 returns, including the kosa8 Cloud 402, 423, 429 and exec-timeout kinds: the Error type and its Kind, errors.Is and errors.As usage, when each kind happens with real messages, how to handle it, and a symptom-to-fix troubleshooting table. - [Go API reference](https://docs.kosa8.com/guides/go-api.md): Every exported type, field, function, method and constant of github.com/kosa8ai/kosa8-go v0.5.3 (local client, toolbox and the kosa8 Cloud client), with exact signatures, the HTTP calls each method makes, what it returns and how it fails. - [Ruby quickstart](https://docs.kosa8.com/guides/rb-quickstart.md): Run code in a sealed microVM sandbox from Ruby in five minutes: install the kosa8 gem, connect to the daemon, create a sandbox with no network, run a command, checkpoint, rewind and delete. Every step with its real output. - [Ruby developer guide](https://docs.kosa8.com/guides/rb-guide.md): Everything the kosa8 Ruby gem does, explained simply and then in depth: sandboxes, network rules, run, exec, stdin and attach, snapshots, fork, explore, checkpoints shared with the CLI, environment variables, threads, timeouts, and recipes for agent loops and clean-up. - [Ruby errors and troubleshooting](https://docs.kosa8.com/guides/rb-errors.md): Every exception the kosa8 Ruby gem 0.5.3 raises, including the kosa8 Cloud 402, 423, 429 and exec-timeout errors: the class hierarchy, when each is raised, its fields, a real message from kosa8 0.9.36, and how to handle it. Then a troubleshooting table from symptom to cause to fix. - [Ruby API reference](https://docs.kosa8.com/guides/rb-api.md): Every public class, method, keyword argument, default, return value and exception of the kosa8 Ruby gem 0.5.3 (local client, toolbox and the kosa8 Cloud client), with the HTTP call each method makes, copied from the source. - [Java quickstart](https://docs.kosa8.com/guides/java-quickstart.md): Run code in a sealed microVM sandbox from Java in five minutes: add com.kosa8:kosa8 0.5.3 with Maven or Gradle, connect to the daemon, create a sandbox with no network, run a command, checkpoint, rewind and delete. Every step with its real output. - [Java developer guide](https://docs.kosa8.com/guides/java-guide.md): Everything the kosa8 Java SDK does, in plain words first and then in depth: connecting locally or to a remote worker, sandboxes and network rules, run, exec, stdin and attach, streaming and timeouts, snapshots, fork and explore, checkpoints shared with the CLI, thread safety, and tested recipes. - [Java errors and troubleshooting](https://docs.kosa8.com/guides/java-errors.md): Every exception the kosa8 Java SDK (0.5.3) throws, including the kosa8 Cloud 402, 423, 429 and exec-timeout exceptions: the class hierarchy, checked or unchecked, when each is thrown, its fields, real messages from kosa8 0.9.36, and a troubleshooting table from symptom to cause to fix. - [Java API reference](https://docs.kosa8.com/guides/java-api.md): Every public class, constructor, method, builder option and record of com.kosa8:kosa8 0.5.3 (local client, toolbox and the kosa8 Cloud client), with exact signatures, defaults, the HTTP calls each method makes, what it returns and what it throws. - [Native HTTP API](https://docs.kosa8.com/guides/native-api.md): The kosa8 daemon's /kosa8/v1 API that every SDK is built on: transport, headers, streaming frames, errors, and each sandbox, process, snapshot and fork endpoint with its request and response. ## Reference - [HTTP API reference](https://docs.kosa8.com/api/): every endpoint, by tag (below) - [CLI reference](https://docs.kosa8.com/reference/): every command, generated from the binary (below) - [Errors and retries](https://docs.kosa8.com/errors.md): Every kosa8 Cloud error has a stable code, a failure_class and a retryable flag. What each status means, when to retry, and safe retries with Idempotency-Key. - [Limits and pricing](https://docs.kosa8.com/limits.md): kosa8 Cloud limits: exec time, sandbox lifetimes, checkpoints, forks, file sizes, and what each plan includes. Prices are on kosa8.com/pricing. - [Security](https://docs.kosa8.com/security.md): How kosa8 isolates sandboxes, protects keys and records what happens, and where our compliance work stands. - [Changelog](https://docs.kosa8.com/changelog.md): What changed in kosa8: the CLI and desktop releases, kosa8 Cloud API changes, and SDK versions. ## More - [How kosa8 works](https://docs.kosa8.com/guides/how-it-works.md): The parts of kosa8, what runs where, and what crosses each boundary — with the picture. - [For developers](https://docs.kosa8.com/guides/developers.md): Build kosa8 from source, find your way around the packages, drive the service from your own program, and run the tests. - [Affiliate program](https://docs.kosa8.com/guides/refer.md): The kosa8 referral program has closed. Writers and creators can join the affiliate program for 20% of the payments of the teams they bring, for 12 months, paid in cash. ## HTTP API, by tag - [Start here (no key) API](https://docs.kosa8.com/api/start-here-no-key.md): 2 endpoints - [Sandboxes API](https://docs.kosa8.com/api/sandboxes.md): 28 endpoints - [Sandbox files API](https://docs.kosa8.com/api/sandbox-files.md): 5 endpoints - [Checkpoints API](https://docs.kosa8.com/api/checkpoints.md): 4 endpoints - [Snapshots API](https://docs.kosa8.com/api/snapshots.md): 4 endpoints - [Machines API](https://docs.kosa8.com/api/machines.md): 5 endpoints - [Account API](https://docs.kosa8.com/api/account.md): 27 endpoints - [Sign-in API](https://docs.kosa8.com/api/sign-in.md): 12 endpoints - [API keys API](https://docs.kosa8.com/api/api-keys.md): 10 endpoints - [Billing API](https://docs.kosa8.com/api/billing.md): 32 endpoints - [Functions API](https://docs.kosa8.com/api/functions.md): 20 endpoints - [Own hosts API](https://docs.kosa8.com/api/own-hosts.md): 5 endpoints - [Team API](https://docs.kosa8.com/api/team.md): 11 endpoints - [Audit API](https://docs.kosa8.com/api/audit.md): 4 endpoints - [Security API](https://docs.kosa8.com/api/security.md): 11 endpoints - [Attack tests API](https://docs.kosa8.com/api/attack-tests.md): 3 endpoints - [Webhooks API](https://docs.kosa8.com/api/webhooks.md): 10 endpoints - [Integrations API](https://docs.kosa8.com/api/integrations.md): 19 endpoints - [Store API](https://docs.kosa8.com/api/store.md): 16 endpoints - [Previews API](https://docs.kosa8.com/api/previews.md): 5 endpoints - [Egress API](https://docs.kosa8.com/api/egress.md): 6 endpoints - [Threat feed API](https://docs.kosa8.com/api/threat-feed.md): 3 endpoints - [Swarms API](https://docs.kosa8.com/api/swarms.md): 6 endpoints - [Secrets API](https://docs.kosa8.com/api/secrets.md): 4 endpoints - [Terminal and large files API](https://docs.kosa8.com/api/terminal-and-large-files.md): 4 endpoints - [Observability API](https://docs.kosa8.com/api/observability.md): 3 endpoints - [Schedules API](https://docs.kosa8.com/api/schedules.md): 4 endpoints - [Code interpreter API](https://docs.kosa8.com/api/code-interpreter.md): 5 endpoints - [Pipelines API](https://docs.kosa8.com/api/pipelines.md): 11 endpoints - [RL runs API](https://docs.kosa8.com/api/rl-runs.md): 16 endpoints - [Jobs API](https://docs.kosa8.com/api/jobs.md): 5 endpoints - [Benchmarks API](https://docs.kosa8.com/api/benchmarks.md): 5 endpoints - [Custom domains API](https://docs.kosa8.com/api/custom-domains.md): 8 endpoints - [Embeds API](https://docs.kosa8.com/api/embeds.md): 3 endpoints - [Recordings API](https://docs.kosa8.com/api/recordings.md): 4 endpoints - [Browsers API](https://docs.kosa8.com/api/browsers.md): 6 endpoints - [AI gateway API](https://docs.kosa8.com/api/ai-gateway.md): 7 endpoints ## CLI commands - [kosa8 agent](https://docs.kosa8.com/reference/agent.md): Run coding agents in isolated sandboxes - [kosa8 agent compat](https://docs.kosa8.com/reference/agent-compat.md): Show what kosa8 does for each coding agent and MCP client - [kosa8 agent init](https://docs.kosa8.com/reference/agent-init.md): Write a built-in kit to ~/.kosa8/kits so it can be customized - [kosa8 agent kits](https://docs.kosa8.com/reference/agent-kits.md): List available sandbox kits - [kosa8 agent run](https://docs.kosa8.com/reference/agent-run.md): Start an agent sandbox from a kit - [kosa8 agent sign](https://docs.kosa8.com/reference/agent-sign.md): Sign a kit file with the org's policy key - [kosa8 agent token](https://docs.kosa8.com/reference/agent-token.md): Give an agent an identity the daemon can check - [kosa8 agent token create](https://docs.kosa8.com/reference/agent-token-create.md): Mint an identity and print its token, once - [kosa8 agent token ls](https://docs.kosa8.com/reference/agent-token-ls.md): List agent identities - [kosa8 agent token revoke](https://docs.kosa8.com/reference/agent-token-revoke.md): End an agent identity at once - [kosa8 ai](https://docs.kosa8.com/reference/ai.md): Chat with kosa8's embedded assistant (approval-first, live state) - [kosa8 ai bom](https://docs.kosa8.com/reference/ai-bom.md): Write a CycloneDX 1.6 AI bill of materials for a sandbox, session or model - [kosa8 ai replay](https://docs.kosa8.com/reference/ai-replay.md): Read back a model gateway session's replay record and check it against the audit log - [kosa8 approve](https://docs.kosa8.com/reference/approve.md): See what an action would do, and decide what may run unprompted - [kosa8 approve add](https://docs.kosa8.com/reference/approve-add.md): File approvals sent back by approvers against their request - [kosa8 approve allow](https://docs.kosa8.com/reference/approve-allow.md): Let a trusted kind of action run without asking - [kosa8 approve check](https://docs.kosa8.com/reference/approve-check.md): Show what an action would do and whether it needs approval - [kosa8 approve deny](https://docs.kosa8.com/reference/approve-deny.md): Refuse a kind of action outright, without even prompting - [kosa8 approve ls](https://docs.kosa8.com/reference/approve-ls.md): Show what may run without asking - [kosa8 approve pending](https://docs.kosa8.com/reference/approve-pending.md): List approval requests on this machine that have not been used - [kosa8 approve request](https://docs.kosa8.com/reference/approve-request.md): Ask for signed approvals of an action the org policy covers - [kosa8 approve revoke](https://docs.kosa8.com/reference/approve-revoke.md): Go back to being asked about a kind of action - [kosa8 approve sign](https://docs.kosa8.com/reference/approve-sign.md): Approve someone else's request, signed with your identity - [kosa8 approve status](https://docs.kosa8.com/reference/approve-status.md): Show whether a request has the approvals it needs, and who is still missing - [kosa8 attach](https://docs.kosa8.com/reference/attach.md): Attach to a running container's output - [kosa8 attack](https://docs.kosa8.com/reference/attack.md): Test kosa8's controls against AI-agent attacks and write a signed scorecard - [kosa8 attack list](https://docs.kosa8.com/reference/attack-list.md): List the attack scenarios and their OWASP and ATLAS mappings - [kosa8 attack run](https://docs.kosa8.com/reference/attack-run.md): Run the scenarios and write a signed scorecard - [kosa8 attack upload](https://docs.kosa8.com/reference/attack-upload.md): Upload a signed scorecard to your kosa8 Cloud org - [kosa8 attack verify](https://docs.kosa8.com/reference/attack-verify.md): Check a signed attack scorecard - [kosa8 audit](https://docs.kosa8.com/reference/audit.md): Inspect what was done, by whom - [kosa8 audit export](https://docs.kosa8.com/reference/audit-export.md): Export the full audit log for a SIEM (--format jsonl|cef) - [kosa8 audit forward](https://docs.kosa8.com/reference/audit-forward.md): Ship audit entries to the configured SIEM sinks (syslog, Splunk HEC, HTTPS) - [kosa8 audit key](https://docs.kosa8.com/reference/audit-key.md): Print the public keys that sign the audit log - [kosa8 audit ls](https://docs.kosa8.com/reference/audit-ls.md): Show recent audited actions - [kosa8 audit prune](https://docs.kosa8.com/reference/audit-prune.md): Apply the retention policy now: seal old entries and remove them from the live log - [kosa8 audit status](https://docs.kosa8.com/reference/audit-status.md): Show where audit entries are forwarded, how far each sink has got, and retention - [kosa8 audit verify](https://docs.kosa8.com/reference/audit-verify.md): Check that the audit log has not been altered - [kosa8 bench](https://docs.kosa8.com/reference/bench.md): Ready-made benchmark environments on kosa8 Cloud: SWE-bench Verified, Terminal-Bench - [kosa8 bench instances](https://docs.kosa8.com/reference/bench-instances.md): List a benchmark's instances and their environments' state - [kosa8 bench ls](https://docs.kosa8.com/reference/bench-ls.md): List the benchmarks, with their source and how many environments are built - [kosa8 bench prepare](https://docs.kosa8.com/reference/bench-prepare.md): Build environments ahead of use (100 at most a call) - [kosa8 bench show](https://docs.kosa8.com/reference/bench-show.md): Show an instance: its image, size, environment and (with --input) the problem - [kosa8 build](https://docs.kosa8.com/reference/build.md): Build an image from a Dockerfile - [kosa8 builder](https://docs.kosa8.com/reference/builder.md): Manage the BuildKit builder - [kosa8 builder prune](https://docs.kosa8.com/reference/builder-prune.md): Clear the build cache - [kosa8 checkpoint](https://docs.kosa8.com/reference/checkpoint.md): Save a restore point you can rewind to - [kosa8 checkpoint ls](https://docs.kosa8.com/reference/checkpoint-ls.md): List the restore points for a sandbox - [kosa8 ci](https://docs.kosa8.com/reference/ci.md): Run CI on kosa8 Cloud (kosa8 Pipelines) - [kosa8 ci cancel](https://docs.kosa8.com/reference/ci-cancel.md): Cancel a run; its sandboxes are deleted - [kosa8 ci connect](https://docs.kosa8.com/reference/ci-connect.md): Run a connected GitHub repo's pipeline on every push and pull request (no webhook, no token) - [kosa8 ci jobs](https://docs.kosa8.com/reference/ci-jobs.md): GitHub Actions jobs run on kosa8 runners, newest first, with this month's CI minutes - [kosa8 ci logs](https://docs.kosa8.com/reference/ci-logs.md): Print a run's logs (secrets are shown as ***) - [kosa8 ci ls](https://docs.kosa8.com/reference/ci-ls.md): List pipeline runs, newest first - [kosa8 ci run](https://docs.kosa8.com/reference/ci-run.md): Start a pipeline run and follow its logs - [kosa8 cloud](https://docs.kosa8.com/reference/cloud.md): Run sandboxes on kosa8 Cloud (api.kosa8.com) - [kosa8 cloud addons](https://docs.kosa8.com/reference/cloud-addons.md): Add-on packs: more sandbox-hours or more running at once, monthly, on any plan - [kosa8 cloud addons add](https://docs.kosa8.com/reference/cloud-addons-add.md): Add packs (charged now; the first opens a checkout) - [kosa8 cloud addons list](https://docs.kosa8.com/reference/cloud-addons-list.md): List the packs, what each adds and how many this organization holds - [kosa8 cloud addons remove](https://docs.kosa8.com/reference/cloud-addons-remove.md): Remove packs (the last one stops at the end of the period) - [kosa8 cloud agents](https://docs.kosa8.com/reference/cloud-agents.md): List every API key and member, what each made, and revoke keys - [kosa8 cloud ai](https://docs.kosa8.com/reference/cloud-ai.md): AI Gateway: your model provider keys, gateway settings and model spend - [kosa8 cloud ai keys](https://docs.kosa8.com/reference/cloud-ai-keys.md): Your organization's model provider keys (stored sealed, never shown again) - [kosa8 cloud ai keys ls](https://docs.kosa8.com/reference/cloud-ai-keys-ls.md): List which providers have a key (last 4 characters only) - [kosa8 cloud ai keys rm](https://docs.kosa8.com/reference/cloud-ai-keys-rm.md): Delete a provider's key (the gateway refuses that provider's calls after) - [kosa8 cloud ai keys set](https://docs.kosa8.com/reference/cloud-ai-keys-set.md): Store or replace a provider's key (from a hidden prompt, stdin or --from-env) - [kosa8 cloud ai settings](https://docs.kosa8.com/reference/cloud-ai-settings.md): Show or change the AI gateway's settings - [kosa8 cloud ai usage](https://docs.kosa8.com/reference/cloud-ai-usage.md): Model spend through the AI gateway: totals, by model, by sandbox, latest calls - [kosa8 cloud browser](https://docs.kosa8.com/reference/cloud-browser.md): Headless Chromium browsers for agents, driven over CDP - [kosa8 cloud browser create](https://docs.kosa8.com/reference/cloud-browser-create.md): Start a browser and print its CDP URL - [kosa8 cloud browser get](https://docs.kosa8.com/reference/cloud-browser-get.md): Show a browser, with a fresh cdp_url - [kosa8 cloud browser ls](https://docs.kosa8.com/reference/cloud-browser-ls.md): List open browsers (--all: closed ones too) - [kosa8 cloud browser rm](https://docs.kosa8.com/reference/cloud-browser-rm.md): Close a browser (billing stops) - [kosa8 cloud browser screenshot](https://docs.kosa8.com/reference/cloud-browser-screenshot.md): Load a page in a browser and save a PNG of it - [kosa8 cloud burst](https://docs.kosa8.com/reference/cloud-burst.md): Burst Passes: a one-time, time-boxed raise of the running limit for RL bursts - [kosa8 cloud burst activate](https://docs.kosa8.com/reference/cloud-burst-activate.md): Start Burst Passes now: held ones first, else a checkout for the rest - [kosa8 cloud burst status](https://docs.kosa8.com/reference/cloud-burst-status.md): Show the Burst Pass, the passes held and those running - [kosa8 cloud cap](https://docs.kosa8.com/reference/cloud-cap.md): Show or set this month's kosa8 Cloud spending cap - [kosa8 cloud checkpoint](https://docs.kosa8.com/reference/cloud-checkpoint.md): List, create and rewind to cloud sandbox checkpoints - [kosa8 cloud checkpoint create](https://docs.kosa8.com/reference/cloud-checkpoint-create.md): Save a cloud sandbox's memory, processes and disk as a checkpoint - [kosa8 cloud checkpoint ls](https://docs.kosa8.com/reference/cloud-checkpoint-ls.md): List checkpoints of one sandbox, or of every running or sleeping one - [kosa8 cloud checkpoint rewind](https://docs.kosa8.com/reference/cloud-checkpoint-rewind.md): Put a cloud sandbox back to a checkpoint (how it was is saved first) - [kosa8 cloud code](https://docs.kosa8.com/reference/cloud-code.md): Run Python in a stateful interpreter in a cloud sandbox; charts come back as images - [kosa8 cloud code contexts](https://docs.kosa8.com/reference/cloud-code-contexts.md): List a sandbox's interpreter contexts (or --create one) - [kosa8 cloud code reset](https://docs.kosa8.com/reference/cloud-code-reset.md): Clear a context's globals - [kosa8 cloud code rm](https://docs.kosa8.com/reference/cloud-code-rm.md): Delete a context - [kosa8 cloud egress](https://docs.kosa8.com/reference/cloud-egress.md): See and change what a cloud sandbox may reach on the network - [kosa8 cloud egress get](https://docs.kosa8.com/reference/cloud-egress-get.md): Show the egress policy a sandbox runs with - [kosa8 cloud egress presets](https://docs.kosa8.com/reference/cloud-egress-presets.md): List the egress presets (named host lists such as pypi) - [kosa8 cloud egress reset](https://docs.kosa8.com/reference/cloud-egress-reset.md): Put a sandbox back on the organization's default egress - [kosa8 cloud egress set](https://docs.kosa8.com/reference/cloud-egress-set.md): Replace a sandbox's egress policy, at once - [kosa8 cloud embed](https://docs.kosa8.com/reference/cloud-embed.md): Make a signed, expiring URL to show a sandbox's terminal or desktop in an iframe - [kosa8 cloud embed ls](https://docs.kosa8.com/reference/cloud-embed-ls.md): List a sandbox's live embeds (without their URLs) - [kosa8 cloud embed rm](https://docs.kosa8.com/reference/cloud-embed-rm.md): Revoke an embed: its URL stops working - [kosa8 cloud evidence](https://docs.kosa8.com/reference/cloud-evidence.md): Export an evidence bundle for a reviewer or auditor - [kosa8 cloud evidence export](https://docs.kosa8.com/reference/cloud-evidence-export.md): Save the posture checklist and the audit log in a range as one hashed JSON file - [kosa8 cloud files](https://docs.kosa8.com/reference/cloud-files.md): List, download, upload and remove files in a cloud sandbox - [kosa8 cloud files get](https://docs.kosa8.com/reference/cloud-files-get.md): Download a file to LOCAL (or -o FILE), else to stdout - [kosa8 cloud files link](https://docs.kosa8.com/reference/cloud-files-link.md): A presigned URL for one download (or --put upload) of PATH, straight to the host - [kosa8 cloud files ls](https://docs.kosa8.com/reference/cloud-files-ls.md): List a folder (default /workspace) - [kosa8 cloud files mkdir](https://docs.kosa8.com/reference/cloud-files-mkdir.md): Make a folder (and its parents) - [kosa8 cloud files put](https://docs.kosa8.com/reference/cloud-files-put.md): Upload a local file (- for stdin) to PATH in the sandbox - [kosa8 cloud files rm](https://docs.kosa8.com/reference/cloud-files-rm.md): Remove a file, or a folder with -r - [kosa8 cloud freeze](https://docs.kosa8.com/reference/cloud-freeze.md): Freeze the organization: refuse new work and put running sandboxes to sleep - [kosa8 cloud images](https://docs.kosa8.com/reference/cloud-images.md): List the images behind the templates kosa8 Cloud hosts offer - [kosa8 cloud launch](https://docs.kosa8.com/reference/cloud-launch.md): Launch a template from the gallery and wait for its first win - [kosa8 cloud launch-status](https://docs.kosa8.com/reference/cloud-launch-status.md): Where a template launch is: booting, setting up, ready or failed - [kosa8 cloud limits](https://docs.kosa8.com/reference/cloud-limits.md): Show how many cloud sandboxes are active against the limit, or ask for more - [kosa8 cloud limits request](https://docs.kosa8.com/reference/cloud-limits-request.md): Ask kosa8 for a higher limit of active cloud sandboxes - [kosa8 cloud lineage](https://docs.kosa8.com/reference/cloud-lineage.md): Show cloud sandboxes as a tree of forks - [kosa8 cloud login](https://docs.kosa8.com/reference/cloud-login.md): Sign in to kosa8 Cloud: in your browser, or with an API key - [kosa8 cloud logout](https://docs.kosa8.com/reference/cloud-logout.md): Forget the kosa8 Cloud key on this machine - [kosa8 cloud logs](https://docs.kosa8.com/reference/cloud-logs.md): Show a cloud sandbox's last commands, with exit codes and output tails (-f to follow) - [kosa8 cloud mcp](https://docs.kosa8.com/reference/cloud-mcp.md): Connect Claude Code, Cursor or Codex to kosa8 Cloud's MCP server - [kosa8 cloud metrics](https://docs.kosa8.com/reference/cloud-metrics.md): Show a cloud sandbox's CPU, memory, disk and network use - [kosa8 cloud open](https://docs.kosa8.com/reference/cloud-open.md): Open the kosa8 Cloud dashboard, at a sandbox if given - [kosa8 cloud overview](https://docs.kosa8.com/reference/cloud-overview.md): Sandboxes running and asleep, functions, this month's bill, recent activity and capacity - [kosa8 cloud pipelines](https://docs.kosa8.com/reference/cloud-pipelines.md): Run CI on kosa8 Cloud: a repository's .kosa8/pipeline.yml or its GitHub workflows - [kosa8 cloud pipelines artifacts](https://docs.kosa8.com/reference/cloud-pipelines-artifacts.md): List a run's artifacts, or --download JOB/INDEX one - [kosa8 cloud pipelines cancel](https://docs.kosa8.com/reference/cloud-pipelines-cancel.md): Cancel a pipeline run - [kosa8 cloud pipelines connect](https://docs.kosa8.com/reference/cloud-pipelines-connect.md): Run a connected GitHub repo's pipeline on every push and pull request (no webhook, no token) - [kosa8 cloud pipelines get](https://docs.kosa8.com/reference/cloud-pipelines-get.md): Show a pipeline run and its jobs - [kosa8 cloud pipelines hook](https://docs.kosa8.com/reference/cloud-pipelines-hook.md): Start runs on a repository's pushes and pull requests, or on a schedule - [kosa8 cloud pipelines hook create](https://docs.kosa8.com/reference/cloud-pipelines-hook-create.md): Make a webhook URL for a repository (and optionally a cron schedule) - [kosa8 cloud pipelines hook ls](https://docs.kosa8.com/reference/cloud-pipelines-hook-ls.md): List hooks (no signing secrets) - [kosa8 cloud pipelines hook rm](https://docs.kosa8.com/reference/cloud-pipelines-hook-rm.md): Delete a hook; its URL stops starting runs - [kosa8 cloud pipelines logs](https://docs.kosa8.com/reference/cloud-pipelines-logs.md): Print a run's logs by job (secrets replaced with ***) - [kosa8 cloud pipelines ls](https://docs.kosa8.com/reference/cloud-pipelines-ls.md): List pipeline runs, newest first - [kosa8 cloud pipelines run](https://docs.kosa8.com/reference/cloud-pipelines-run.md): Start a pipeline run of a repository (OWNER/NAME of a connected GitHub repo, or a clone URL) - [kosa8 cloud preview](https://docs.kosa8.com/reference/cloud-preview.md): Open a sandbox's port at its own https URL - [kosa8 cloud preview domain](https://docs.kosa8.com/reference/cloud-preview-domain.md): Serve a preview at your own hostname (custom domains) - [kosa8 cloud preview domain add](https://docs.kosa8.com/reference/cloud-preview-domain-add.md): Add a custom domain to a preview and print the DNS records to set - [kosa8 cloud preview domain get](https://docs.kosa8.com/reference/cloud-preview-domain-get.md): Show a custom domain's status and the DNS records it still needs - [kosa8 cloud preview domain ls](https://docs.kosa8.com/reference/cloud-preview-domain-ls.md): List a preview's custom domains - [kosa8 cloud preview domain rm](https://docs.kosa8.com/reference/cloud-preview-domain-rm.md): Remove a custom domain from a preview - [kosa8 cloud preview link](https://docs.kosa8.com/reference/cloud-preview-link.md): Make a new signed link to a private preview - [kosa8 cloud preview ls](https://docs.kosa8.com/reference/cloud-preview-ls.md): List a sandbox's previews (private ones without their token) - [kosa8 cloud preview open](https://docs.kosa8.com/reference/cloud-preview-open.md): Serve a port at an https URL and open it in a browser - [kosa8 cloud preview rm](https://docs.kosa8.com/reference/cloud-preview-rm.md): Close a preview; its URL stops working - [kosa8 cloud preview rotate](https://docs.kosa8.com/reference/cloud-preview-rotate.md): Move a preview to a new URL; the old one stops working - [kosa8 cloud recordings](https://docs.kosa8.com/reference/cloud-recordings.md): Desktop session recordings (MP4) of sandboxes made with recording on - [kosa8 cloud recordings get](https://docs.kosa8.com/reference/cloud-recordings-get.md): Print a recording's download link, or save the MP4 with -o FILE - [kosa8 cloud recordings ls](https://docs.kosa8.com/reference/cloud-recordings-ls.md): List recordings, newest first - [kosa8 cloud recordings rm](https://docs.kosa8.com/reference/cloud-recordings-rm.md): Delete a recording - [kosa8 cloud refer](https://docs.kosa8.com/reference/cloud-refer.md): Show past referral invitations (Refer and earn has closed) - [kosa8 cloud rl](https://docs.kosa8.com/reference/cloud-rl.md): RL training on kosa8 Cloud: runs, their rollouts and what to do next - [kosa8 cloud rl runs](https://docs.kosa8.com/reference/cloud-rl-runs.md): Make, list, inspect, finish and export RL runs - [kosa8 cloud rl runs create](https://docs.kosa8.com/reference/cloud-rl-runs-create.md): Start an RL run; label its sandboxes with its ID (--run) - [kosa8 cloud rl runs export](https://docs.kosa8.com/reference/cloud-rl-runs-export.md): Write every rollout of an RL run as JSONL, oldest first (-o FILE, else stdout) - [kosa8 cloud rl runs finish](https://docs.kosa8.com/reference/cloud-rl-runs-finish.md): Mark an RL run finished (or --failed), and --drain its sandboxes - [kosa8 cloud rl runs get](https://docs.kosa8.com/reference/cloud-rl-runs-get.md): Show an RL run: its rollouts, rewards, failures, cost and what to do next - [kosa8 cloud rl runs ls](https://docs.kosa8.com/reference/cloud-rl-runs-ls.md): List RL runs, newest first, each with a short summary - [kosa8 cloud rl runs watch](https://docs.kosa8.com/reference/cloud-rl-runs-watch.md): Follow an RL run's rollouts, reward and cost on one live line until it ends - [kosa8 cloud sandbox](https://docs.kosa8.com/reference/cloud-sandbox.md): Make, list, run in, sleep, wake and remove cloud sandboxes - [kosa8 cloud sandbox create](https://docs.kosa8.com/reference/cloud-sandbox-create.md): Make a cloud sandbox: a template's pooled VM, or one of a size, image and disk - [kosa8 cloud sandbox drain](https://docs.kosa8.com/reference/cloud-sandbox-drain.md): Delete every sandbox of a run (or with a label, or named); their disks are wiped - [kosa8 cloud sandbox exec](https://docs.kosa8.com/reference/cloud-sandbox-exec.md): Run a command in a cloud sandbox, or start one in the background - [kosa8 cloud sandbox exec-status](https://docs.kosa8.com/reference/cloud-sandbox-exec-status.md): Show a background command: running or exited, its exit code and output - [kosa8 cloud sandbox exec-stop](https://docs.kosa8.com/reference/cloud-sandbox-exec-stop.md): Stop a background command and what it started - [kosa8 cloud sandbox fork](https://docs.kosa8.com/reference/cloud-sandbox-fork.md): Make live copies of a cloud sandbox as it is now, memory and processes included - [kosa8 cloud sandbox get](https://docs.kosa8.com/reference/cloud-sandbox-get.md): Show one cloud sandbox - [kosa8 cloud sandbox grade](https://docs.kosa8.com/reference/cloud-sandbox-grade.md): Grade a sandbox in a sealed fork: hidden files, no network, a reward - [kosa8 cloud sandbox heartbeat](https://docs.kosa8.com/reference/cloud-sandbox-heartbeat.md): Extend the leases of a run's (or the labelled, or the named) sandboxes - [kosa8 cloud sandbox label](https://docs.kosa8.com/reference/cloud-sandbox-label.md): Replace a cloud sandbox's labels (filter on them with sandbox ls --label) - [kosa8 cloud sandbox ls](https://docs.kosa8.com/reference/cloud-sandbox-ls.md): List the organization's cloud sandboxes - [kosa8 cloud sandbox pr](https://docs.kosa8.com/reference/cloud-sandbox-pr.md): Push a sandbox's changes and open a pull request on GitHub - [kosa8 cloud sandbox push](https://docs.kosa8.com/reference/cloud-sandbox-push.md): Commit a sandbox's changes to its repo and push them to a branch on GitHub - [kosa8 cloud sandbox repo](https://docs.kosa8.com/reference/cloud-sandbox-repo.md): Show a sandbox's GitHub repo: branch, commit and what changed - [kosa8 cloud sandbox rm](https://docs.kosa8.com/reference/cloud-sandbox-rm.md): Delete cloud sandboxes; their disks are wiped - [kosa8 cloud sandbox sleep](https://docs.kosa8.com/reference/cloud-sandbox-sleep.md): Snapshot a sandbox and free its memory; it pays only for disk until it wakes - [kosa8 cloud sandbox wake](https://docs.kosa8.com/reference/cloud-sandbox-wake.md): Restore a sleeping sandbox now, rather than on its next exec - [kosa8 cloud schedule](https://docs.kosa8.com/reference/cloud-schedule.md): Run commands in a cloud sandbox on a cron schedule (UTC) - [kosa8 cloud schedule add](https://docs.kosa8.com/reference/cloud-schedule-add.md): Run a command on a cron schedule (UTC) - [kosa8 cloud schedule ls](https://docs.kosa8.com/reference/cloud-schedule-ls.md): List a sandbox's schedules, each with its last run - [kosa8 cloud schedule rm](https://docs.kosa8.com/reference/cloud-schedule-rm.md): Delete a schedule - [kosa8 cloud schedule run](https://docs.kosa8.com/reference/cloud-schedule-run.md): Run a schedule's command now - [kosa8 cloud secrets](https://docs.kosa8.com/reference/cloud-secrets.md): Keep API keys and tokens that sandboxes use without ever holding them - [kosa8 cloud secrets ls](https://docs.kosa8.com/reference/cloud-secrets-ls.md): List the organization's secrets (names and where each goes; never a value) - [kosa8 cloud secrets rm](https://docs.kosa8.com/reference/cloud-secrets-rm.md): Delete a secret (sandboxes holding it keep it until they are deleted) - [kosa8 cloud secrets set](https://docs.kosa8.com/reference/cloud-secrets-set.md): Store or replace a secret (the value from a prompt, stdin or --from-env) - [kosa8 cloud security](https://docs.kosa8.com/reference/cloud-security.md): Show the organization's security checklist and how many checks pass - [kosa8 cloud siem](https://docs.kosa8.com/reference/cloud-siem.md): Stream the audit log to a SIEM (webhook, Splunk HEC, Datadog) - [kosa8 cloud siem add](https://docs.kosa8.com/reference/cloud-siem-add.md): Add a SIEM destination - [kosa8 cloud siem ls](https://docs.kosa8.com/reference/cloud-siem-ls.md): List SIEM destinations - [kosa8 cloud siem rm](https://docs.kosa8.com/reference/cloud-siem-rm.md): Stop streaming to a destination - [kosa8 cloud siem test](https://docs.kosa8.com/reference/cloud-siem-test.md): Send one test event to a destination now - [kosa8 cloud sizes](https://docs.kosa8.com/reference/cloud-sizes.md): List the sandbox sizes this organization can make, small sizes included - [kosa8 cloud snapshot](https://docs.kosa8.com/reference/cloud-snapshot.md): Save cloud sandboxes as snapshots, and start new ones from them - [kosa8 cloud snapshot create](https://docs.kosa8.com/reference/cloud-snapshot-create.md): Save a sandbox as a snapshot (it keeps running) - [kosa8 cloud snapshot get](https://docs.kosa8.com/reference/cloud-snapshot-get.md): Show one snapshot - [kosa8 cloud snapshot ls](https://docs.kosa8.com/reference/cloud-snapshot-ls.md): List the organization's snapshots, newest first - [kosa8 cloud snapshot rm](https://docs.kosa8.com/reference/cloud-snapshot-rm.md): Delete snapshots (sandboxes started from them keep running) - [kosa8 cloud ssh](https://docs.kosa8.com/reference/cloud-ssh.md): SSH into a cloud sandbox over its terminal, with no port 22 open - [kosa8 cloud ssh-config](https://docs.kosa8.com/reference/cloud-ssh-config.md): Print an ~/.ssh/config stanza so ssh kosa8-ID and VS Code Remote-SSH reach a sandbox - [kosa8 cloud swarm](https://docs.kosa8.com/reference/cloud-swarm.md): Run a group of agents forked from one sandbox, under one egress policy - [kosa8 cloud swarm kill](https://docs.kosa8.com/reference/cloud-swarm-kill.md): The kill switch: every member to sleep and the swarm marked killed - [kosa8 cloud swarm ls](https://docs.kosa8.com/reference/cloud-swarm-ls.md): List the organization's swarms - [kosa8 cloud swarm pause](https://docs.kosa8.com/reference/cloud-swarm-pause.md): Put every running member to sleep, state kept (the fast stop) - [kosa8 cloud swarm resume](https://docs.kosa8.com/reference/cloud-swarm-resume.md): Wake every sleeping member - [kosa8 cloud swarm status](https://docs.kosa8.com/reference/cloud-swarm-status.md): Each member's state, egress counters and anomalies - [kosa8 cloud swarm up](https://docs.kosa8.com/reference/cloud-swarm-up.md): Checkpoint a sandbox and fork it into a swarm of N members - [kosa8 cloud template](https://docs.kosa8.com/reference/cloud-template.md): Your own Cloud templates: built from a Dockerfile or an image, restored in about a second - [kosa8 cloud template build](https://docs.kosa8.com/reference/cloud-template-build.md): Build an org template from a Dockerfile, an image or a GitHub repo's Dockerfile - [kosa8 cloud template get](https://docs.kosa8.com/reference/cloud-template-get.md): Show one of the organization's templates, with its build log - [kosa8 cloud template import](https://docs.kosa8.com/reference/cloud-template-import.md): Queue many image templates at once, such as RL task images by digest - [kosa8 cloud template ls](https://docs.kosa8.com/reference/cloud-template-ls.md): List the organization's own templates and their build state - [kosa8 cloud template rm](https://docs.kosa8.com/reference/cloud-template-rm.md): Delete one of the organization's templates (a build in flight stops; its snapshot is deleted) - [kosa8 cloud templates](https://docs.kosa8.com/reference/cloud-templates.md): List the Templates gallery: one-click starter sandboxes - [kosa8 cloud terminal](https://docs.kosa8.com/reference/cloud-terminal.md): Open an interactive terminal (a PTY) in a cloud sandbox - [kosa8 cloud threat](https://docs.kosa8.com/reference/cloud-threat.md): Block a host for every sandbox of the organization (the threat feed) - [kosa8 cloud threat block](https://docs.kosa8.com/reference/cloud-threat-block.md): Block a host for every sandbox, at once - [kosa8 cloud threat ls](https://docs.kosa8.com/reference/cloud-threat-ls.md): List the blocked hosts - [kosa8 cloud threat unblock](https://docs.kosa8.com/reference/cloud-threat-unblock.md): Unblock a host everywhere (needs an admin key) - [kosa8 cloud tokens](https://docs.kosa8.com/reference/cloud-tokens.md): Short-lived capability tokens for your own users, limited to some sandboxes - [kosa8 cloud tokens create](https://docs.kosa8.com/reference/cloud-tokens-create.md): Make a capability token; its secret is shown once - [kosa8 cloud tokens ls](https://docs.kosa8.com/reference/cloud-tokens-ls.md): List live capability tokens (never their secrets) - [kosa8 cloud tokens revoke](https://docs.kosa8.com/reference/cloud-tokens-revoke.md): Revoke capability tokens; they stop working at once - [kosa8 cloud unfreeze](https://docs.kosa8.com/reference/cloud-unfreeze.md): Unfreeze the organization; suspended keys work again - [kosa8 cloud usage](https://docs.kosa8.com/reference/cloud-usage.md): Show this month's kosa8 Cloud usage and estimated bill - [kosa8 cloud webhooks](https://docs.kosa8.com/reference/cloud-webhooks.md): kosa8 Cloud webhooks: the events sent, and this organization's endpoints - [kosa8 cloud webhooks events](https://docs.kosa8.com/reference/cloud-webhooks-events.md): List every event kosa8 Cloud sends to webhooks - [kosa8 cloud webhooks ls](https://docs.kosa8.com/reference/cloud-webhooks-ls.md): List this organization's webhook endpoints - [kosa8 cloud whoami](https://docs.kosa8.com/reference/cloud-whoami.md): Show the kosa8 Cloud organization and key in use - [kosa8 commit](https://docs.kosa8.com/reference/commit.md): Create an image from a container's filesystem - [kosa8 cp](https://docs.kosa8.com/reference/cp.md): Copy files between the host and a container (CONTAINER:PATH) - [kosa8 create](https://docs.kosa8.com/reference/create.md): Create a container without starting it - [kosa8 daemon](https://docs.kosa8.com/reference/daemon.md): Manage the kosa8d daemon - [kosa8 daemon install](https://docs.kosa8.com/reference/daemon-install.md): Start kosa8d automatically at login (launchd on macOS, systemd on Linux) - [kosa8 daemon start](https://docs.kosa8.com/reference/daemon-start.md): Start kosa8d in the background - [kosa8 daemon status](https://docs.kosa8.com/reference/daemon-status.md): Show daemon status - [kosa8 daemon stop](https://docs.kosa8.com/reference/daemon-stop.md): Stop the daemon - [kosa8 daemon uninstall](https://docs.kosa8.com/reference/daemon-uninstall.md): Stop starting kosa8d at login, and stop the one the service runs - [kosa8 desk](https://docs.kosa8.com/reference/desk.md): Open the local dashboard in a browser - [kosa8 diff](https://docs.kosa8.com/reference/diff.md): Show filesystem changes made to a container - [kosa8 doctor](https://docs.kosa8.com/reference/doctor.md): Check that this machine can run kosa8, and repair what is safe to repair - [kosa8 events](https://docs.kosa8.com/reference/events.md): Stream engine events - [kosa8 evidence](https://docs.kosa8.com/reference/evidence.md): Export and verify signed evidence packages - [kosa8 evidence export](https://docs.kosa8.com/reference/evidence-export.md): Write a signed evidence package for a sandbox, snapshot, approval or time range - [kosa8 evidence verify](https://docs.kosa8.com/reference/evidence-verify.md): Check an evidence package using nothing but the package - [kosa8 exec](https://docs.kosa8.com/reference/exec.md): Run a command in a running container - [kosa8 explore](https://docs.kosa8.com/reference/explore.md): Fork a sandbox per approach, run each, and report which worked - [kosa8 export](https://docs.kosa8.com/reference/export.md): Export a container's filesystem as a tar archive - [kosa8 fork](https://docs.kosa8.com/reference/fork.md): Fork a running sandbox into N live copies with process state intact - [kosa8 github](https://docs.kosa8.com/reference/github.md): Connect GitHub once, then start cloud sandboxes from your repos and open pull requests - [kosa8 github branches](https://docs.kosa8.com/reference/github-branches.md): List a repo's branches (the first 100) - [kosa8 github connect](https://docs.kosa8.com/reference/github-connect.md): Install the kosa8 GitHub App in your browser and wait until it is connected - [kosa8 github disconnect](https://docs.kosa8.com/reference/github-disconnect.md): Stop kosa8 using a GitHub installation (kosa8 github lists them) - [kosa8 github repos](https://docs.kosa8.com/reference/github-repos.md): List the repos kosa8 can reach, most recently pushed first - [kosa8 github runners](https://docs.kosa8.com/reference/github-runners.md): Run a repo's GitHub Actions jobs on kosa8 (runs-on: kosa8): list, enable, disable - [kosa8 github runners disable](https://docs.kosa8.com/reference/github-runners-disable.md): Stop running this repo's Actions jobs on kosa8 (jobs already running finish) - [kosa8 github runners enable](https://docs.kosa8.com/reference/github-runners-enable.md): Run this repo's runs-on: kosa8 Actions jobs on kosa8 - [kosa8 github runners list](https://docs.kosa8.com/reference/github-runners-list.md): List the repos kosa8 can reach and whether their Actions jobs run on kosa8 - [kosa8 gpu](https://docs.kosa8.com/reference/gpu.md): List this machine's GPUs, what kosa8 knows about each, and their state between sandboxes - [kosa8 gpu ls](https://docs.kosa8.com/reference/gpu-ls.md): List the GPUs on this machine (--profiles: every GPU kosa8 has a profile for) - [kosa8 gpu unquarantine](https://docs.kosa8.com/reference/gpu-unquarantine.md): Return a quarantined GPU to service (it is scrubbed before any sandbox gets it) - [kosa8 history](https://docs.kosa8.com/reference/history.md): Show the layer history of an image - [kosa8 hooks](https://docs.kosa8.com/reference/hooks.md): Check coding agents' tool calls before they run (Claude Code, Cursor, Codex, Gemini, Copilot) - [kosa8 hooks install](https://docs.kosa8.com/reference/hooks-install.md): Install kosa8's hook into a coding agent (Claude Code, Cursor, Codex, Gemini CLI, Copilot CLI) - [kosa8 hooks log](https://docs.kosa8.com/reference/hooks-log.md): Show the latest decisions the hooks made (from the audit log) - [kosa8 hooks policy](https://docs.kosa8.com/reference/hooks-policy.md): Show the organization's hook policy that --org hooks decide with (--refresh fetches it now) - [kosa8 hooks sandbox-run](https://docs.kosa8.com/reference/hooks-sandbox-run.md): Run one shell command in the project's kosa8 sandbox (what sandbox mode rewrites commands to) - [kosa8 hooks status](https://docs.kosa8.com/reference/hooks-status.md): Show where kosa8's hook is installed, and whether kosa8d is answering - [kosa8 hooks test](https://docs.kosa8.com/reference/hooks-test.md): Send sample tool calls through the installed hook and show kosa8's answers - [kosa8 hooks uninstall](https://docs.kosa8.com/reference/hooks-uninstall.md): Take kosa8's hook out of an agent (every agent when none is named) - [kosa8 identity](https://docs.kosa8.com/reference/identity.md): Your personal signing key, for approvals that name who approved - [kosa8 identity init](https://docs.kosa8.com/reference/identity-init.md): Create your signing identity - [kosa8 identity show](https://docs.kosa8.com/reference/identity-show.md): Print your public identity, ready to add to an org policy - [kosa8 images](https://docs.kosa8.com/reference/images.md): List images in the engine - [kosa8 import](https://docs.kosa8.com/reference/import.md): Create an image from a rootfs tar archive - [kosa8 info](https://docs.kosa8.com/reference/info.md): Show engine and system information - [kosa8 init](https://docs.kosa8.com/reference/init.md): First run: sign in, run a first cloud sandbox, see what to try next - [kosa8 inspect](https://docs.kosa8.com/reference/inspect.md): Show detailed container state - [kosa8 job](https://docs.kosa8.com/reference/job.md): Run hosted RL jobs on kosa8 Cloud: tasks, a solver and a sealed grader - [kosa8 job cancel](https://docs.kosa8.com/reference/job-cancel.md): Cancel a job: no new tasks start, and its sandboxes are drained - [kosa8 job get](https://docs.kosa8.com/reference/job-get.md): Show a job: its status, progress, failure classes, reward and cost - [kosa8 job ls](https://docs.kosa8.com/reference/job-ls.md): List jobs, newest first - [kosa8 job submit](https://docs.kosa8.com/reference/job-submit.md): Submit a job: run every task's solver and grade it sealed, server-side - [kosa8 job watch](https://docs.kosa8.com/reference/job-watch.md): Follow a job's progress on one live line until it ends - [kosa8 key](https://docs.kosa8.com/reference/key.md): Manage the keys that encrypt snapshots at rest and in transit - [kosa8 key export](https://docs.kosa8.com/reference/key-export.md): Write the active KEK to a file, to import on another machine - [kosa8 key import](https://docs.kosa8.com/reference/key-import.md): Add a KEK exported from another machine and make it active - [kosa8 key rotate](https://docs.kosa8.com/reference/key-rotate.md): Rewrap every snapshot key under a new KEK and destroy the old one - [kosa8 key status](https://docs.kosa8.com/reference/key-status.md): Show the key provider, the KEKs held, and how many snapshot keys they wrap - [kosa8 kill](https://docs.kosa8.com/reference/kill.md): Kill a running container - [kosa8 lab](https://docs.kosa8.com/reference/lab.md): Detonate malware on a simulated internet and produce signed reports - [kosa8 lab ca](https://docs.kosa8.com/reference/lab-ca.md): Print the lab CA certificate, to install in images that should trust fakenet's HTTPS - [kosa8 lab detonate](https://docs.kosa8.com/reference/lab-detonate.md): Run a sample in a fakenet sandbox and write a signed report - [kosa8 lab diff](https://docs.kosa8.com/reference/lab-diff.md): Compare two detonation reports: files, network indicators, processes - [kosa8 lab net](https://docs.kosa8.com/reference/lab-net.md): Show what a fakenet sandbox has done on the simulated internet - [kosa8 lab verify](https://docs.kosa8.com/reference/lab-verify.md): Check a detonation report package, offline - [kosa8 label](https://docs.kosa8.com/reference/label.md): Show classification labels and relabel sandboxes - [kosa8 label ls](https://docs.kosa8.com/reference/label-ls.md): Show the label lattice in force and what is labelled on this host - [kosa8 label relabel](https://docs.kosa8.com/reference/label-relabel.md): Change a sandbox's classification (lowering it needs signed approvals) - [kosa8 launch](https://docs.kosa8.com/reference/launch.md): Run a gallery template on this machine (or say how to launch it on kosa8 Cloud) - [kosa8 license](https://docs.kosa8.com/reference/license.md): Activate and inspect your kosa8 subscription - [kosa8 license activate](https://docs.kosa8.com/reference/license-activate.md): Activate a licence key on this machine - [kosa8 license deactivate](https://docs.kosa8.com/reference/license-deactivate.md): Give this machine's licence seat back, so another machine can use it - [kosa8 license install](https://docs.kosa8.com/reference/license-install.md): Install an offline site licence (air-gapped deployments) - [kosa8 license overage](https://docs.kosa8.com/reference/license-overage.md): Let forks run above your plan's limit, billed per fork-hour - [kosa8 license refresh](https://docs.kosa8.com/reference/license-refresh.md): Re-check the licence with Polar - [kosa8 license status](https://docs.kosa8.com/reference/license-status.md): Show the active plan and its limits - [kosa8 load](https://docs.kosa8.com/reference/load.md): Load an image from an OCI archive - [kosa8 login](https://docs.kosa8.com/reference/login.md): Sign in to your kosa8 account in the browser (or, with SERVER, to a registry) - [kosa8 logout](https://docs.kosa8.com/reference/logout.md): Sign out of your kosa8 account on this machine (or, with SERVER, a registry) - [kosa8 logs](https://docs.kosa8.com/reference/logs.md): Fetch the logs of a container (-f to follow them live) - [kosa8 manifest](https://docs.kosa8.com/reference/manifest.md): Inspect image manifests in a registry - [kosa8 manifest inspect](https://docs.kosa8.com/reference/manifest-inspect.md): Show a remote image's manifest - [kosa8 mcp](https://docs.kosa8.com/reference/mcp.md): Run kosa8 as an MCP server so AI agents can drive it - [kosa8 mcp add](https://docs.kosa8.com/reference/mcp-add.md): Add an MCP server from the catalog, or any server by its command, to run behind the gateway - [kosa8 mcp approve](https://docs.kosa8.com/reference/mcp-approve.md): Approve one held tool call - [kosa8 mcp asks](https://docs.kosa8.com/reference/mcp-asks.md): List tool calls waiting for a person's approval - [kosa8 mcp info](https://docs.kosa8.com/reference/mcp-info.md): Show a catalog server: what it runs, the secrets and hosts it needs, and its risk - [kosa8 mcp install](https://docs.kosa8.com/reference/mcp-install.md): Register kosa8 as an MCP server with Claude, Cursor, VS Code, Gemini CLI, Zed and more - [kosa8 mcp ls](https://docs.kosa8.com/reference/mcp-ls.md): List registered third-party MCP servers - [kosa8 mcp pins](https://docs.kosa8.com/reference/mcp-pins.md): Review the tool definitions each MCP server is pinned to - [kosa8 mcp pins approve](https://docs.kosa8.com/reference/mcp-pins-approve.md): Accept a server's changed or new tool definitions - [kosa8 mcp pins diff](https://docs.kosa8.com/reference/mcp-pins-diff.md): Show what changed in a server's withheld tool definitions - [kosa8 mcp pins reset](https://docs.kosa8.com/reference/mcp-pins-reset.md): Forget a server's pins, so it is pinned afresh on next start - [kosa8 mcp pins show](https://docs.kosa8.com/reference/mcp-pins-show.md): Show pinned tool digests, in the form an org policy pins them - [kosa8 mcp refuse](https://docs.kosa8.com/reference/mcp-refuse.md): Refuse one held tool call - [kosa8 mcp rm](https://docs.kosa8.com/reference/mcp-rm.md): Unregister a third-party MCP server - [kosa8 mcp search](https://docs.kosa8.com/reference/mcp-search.md): Search the MCP server catalog and the official MCP Registry - [kosa8 mcp secret](https://docs.kosa8.com/reference/mcp-secret.md): Set or list the secrets a gateway MCP server is given - [kosa8 mcp secret ls](https://docs.kosa8.com/reference/mcp-secret-ls.md): List which secrets are stored for a server (names only) - [kosa8 mcp secret set](https://docs.kosa8.com/reference/mcp-secret-set.md): Set one secret, read without echo (or one line from stdin) - [kosa8 mcp serve](https://docs.kosa8.com/reference/mcp-serve.md): Serve the MCP endpoint over stdio, or HTTP with --http - [kosa8 mcp tools](https://docs.kosa8.com/reference/mcp-tools.md): List the tools kosa8 exposes to agents - [kosa8 mcp-policy](https://docs.kosa8.com/reference/mcp-policy.md): Govern which MCP servers and tools each team may use - [kosa8 mcp-policy check](https://docs.kosa8.com/reference/mcp-policy-check.md): Ask whether a scope may call a tool, and record the decision - [kosa8 mcp-policy events](https://docs.kosa8.com/reference/mcp-policy-events.md): Export MCP policy decisions for a SIEM (--format jsonl|cef) - [kosa8 mcp-policy init](https://docs.kosa8.com/reference/mcp-policy-init.md): Print a template MCP policy to edit and sign - [kosa8 mcp-policy install](https://docs.kosa8.com/reference/mcp-policy-install.md): Verify a signed MCP policy against the trusted key and activate it - [kosa8 mcp-policy scopes](https://docs.kosa8.com/reference/mcp-policy-scopes.md): List the scopes the org policy defines - [kosa8 mcp-policy show](https://docs.kosa8.com/reference/mcp-policy-show.md): Show the active MCP policy - [kosa8 mcp-policy sign](https://docs.kosa8.com/reference/mcp-policy-sign.md): Sign an MCP policy with your org's ed25519 private key - [kosa8 migrate](https://docs.kosa8.com/reference/migrate.md): Move code from E2B, Daytona, Modal or Vercel Sandbox to kosa8 - [kosa8 migrate scan](https://docs.kosa8.com/reference/migrate-scan.md): Find E2B, Daytona, Modal and Vercel Sandbox code, and what changes on kosa8 - [kosa8 migrate template](https://docs.kosa8.com/reference/migrate-template.md): Turn an e2b.Dockerfile (and its e2b.toml) into a kosa8 Cloud template - [kosa8 migrate undo](https://docs.kosa8.com/reference/migrate-undo.md): Put back the files the last kosa8 migrate scan --apply changed - [kosa8 model](https://docs.kosa8.com/reference/model.md): Pull and serve local models (OpenAI- and Anthropic-compatible) - [kosa8 model check](https://docs.kosa8.com/reference/model-check.md): Measure a model and say whether the org policy lets it be served, and why - [kosa8 model ls](https://docs.kosa8.com/reference/model-ls.md): List locally stored models - [kosa8 model pull](https://docs.kosa8.com/reference/model-pull.md): Download a GGUF model from Hugging Face (org/repo[:quant]) - [kosa8 model pull-oci](https://docs.kosa8.com/reference/model-pull-oci.md): Install a model published to an OCI registry - [kosa8 model push](https://docs.kosa8.com/reference/model-push.md): Publish a local model to an OCI registry as an artifact - [kosa8 model rm](https://docs.kosa8.com/reference/model-rm.md): Delete a local model - [kosa8 model serve](https://docs.kosa8.com/reference/model-serve.md): Serve a model on the local gateway until interrupted - [kosa8 model sign](https://docs.kosa8.com/reference/model-sign.md): Sign a model's weights digest, for an approved model list that requires a signer - [kosa8 network](https://docs.kosa8.com/reference/network.md): Manage container networks - [kosa8 network create](https://docs.kosa8.com/reference/network-create.md): Create a user-defined bridge network - [kosa8 network ls](https://docs.kosa8.com/reference/network-ls.md): List networks - [kosa8 network rm](https://docs.kosa8.com/reference/network-rm.md): Remove a network - [kosa8 open](https://docs.kosa8.com/reference/open.md): Open the sandbox, run or job you used last (or any ID) in the browser - [kosa8 pause](https://docs.kosa8.com/reference/pause.md): Pause all processes in a container - [kosa8 policy](https://docs.kosa8.com/reference/policy.md): Org policy profiles: signed, verified, enforced client-side - [kosa8 policy init](https://docs.kosa8.com/reference/policy-init.md): Print a template policy profile to edit and sign - [kosa8 policy install](https://docs.kosa8.com/reference/policy-install.md): Verify a signed profile against the trusted key and activate it - [kosa8 policy keygen](https://docs.kosa8.com/reference/policy-keygen.md): Generate an ed25519 signing keypair - [kosa8 policy show](https://docs.kosa8.com/reference/policy-show.md): Show the active policy - [kosa8 policy sign](https://docs.kosa8.com/reference/policy-sign.md): Sign a profile with an ed25519 private key - [kosa8 policy trust](https://docs.kosa8.com/reference/policy-trust.md): Trust a public key as the policy signer - [kosa8 port](https://docs.kosa8.com/reference/port.md): Show published ports for a container - [kosa8 prompt](https://docs.kosa8.com/reference/prompt.md): Give a coding agent one task, run in a sandbox that is removed when it finishes - [kosa8 ps](https://docs.kosa8.com/reference/ps.md): List containers - [kosa8 pull](https://docs.kosa8.com/reference/pull.md): Pull an image into the kosa8 engine - [kosa8 push](https://docs.kosa8.com/reference/push.md): Push an image to a registry - [kosa8 range](https://docs.kosa8.com/reference/range.md): Run a cyber range: a live copy of one prepared scenario per trainee - [kosa8 range check](https://docs.kosa8.com/reference/range-check.md): Run the objective checks and record the scores in the audit log - [kosa8 range down](https://docs.kosa8.com/reference/range-down.md): Record every trainee's final result, then remove the range - [kosa8 range reset](https://docs.kosa8.com/reference/range-reset.md): Put one trainee's machine back to the prepared scenario - [kosa8 range status](https://docs.kosa8.com/reference/range-status.md): Show each trainee's objectives, score and time - [kosa8 range up](https://docs.kosa8.com/reference/range-up.md): Prepare a scenario once and give every trainee a live clone of it - [kosa8 range validate](https://docs.kosa8.com/reference/range-validate.md): Check a scenario file and say what a range of it would cost - [kosa8 remote](https://docs.kosa8.com/reference/remote.md): Manage remote (Cloudflare R2) snapshot storage - [kosa8 remote ls](https://docs.kosa8.com/reference/remote-ls.md): List snapshots stored remotely - [kosa8 rename](https://docs.kosa8.com/reference/rename.md): Rename a container - [kosa8 restart](https://docs.kosa8.com/reference/restart.md): Restart a container - [kosa8 rewind](https://docs.kosa8.com/reference/rewind.md): Put a sandbox back to a saved restore point - [kosa8 rm](https://docs.kosa8.com/reference/rm.md): Remove a container - [kosa8 rmi](https://docs.kosa8.com/reference/rmi.md): Remove an image from the engine - [kosa8 run](https://docs.kosa8.com/reference/run.md): Run a command or script on kosa8 Cloud (serverless), or an image in the local engine - [kosa8 sandbox](https://docs.kosa8.com/reference/sandbox.md): Manage isolated microVM sandboxes - [kosa8 sandbox create](https://docs.kosa8.com/reference/sandbox-create.md): Boot a new sandbox microVM - [kosa8 sandbox down](https://docs.kosa8.com/reference/sandbox-down.md): Stop a sandbox, keeping its disk (start it again with `sandbox up`) - [kosa8 sandbox egress](https://docs.kosa8.com/reference/sandbox-egress.md): Show the egress policy the host enforces for a sandbox, and what it has refused - [kosa8 sandbox exec](https://docs.kosa8.com/reference/sandbox-exec.md): Run a command in a container inside a sandbox - [kosa8 sandbox images](https://docs.kosa8.com/reference/sandbox-images.md): List images in a sandbox - [kosa8 sandbox lifecycle](https://docs.kosa8.com/reference/sandbox-lifecycle.md): Set when a sandbox stops or is deleted by itself - [kosa8 sandbox ls](https://docs.kosa8.com/reference/sandbox-ls.md): List sandboxes - [kosa8 sandbox pause](https://docs.kosa8.com/reference/sandbox-pause.md): Freeze a sandbox where it is (resume it with `sandbox resume`) - [kosa8 sandbox pcap](https://docs.kosa8.com/reference/sandbox-pcap.md): Capture a running sandbox's network traffic to a pcapng file - [kosa8 sandbox preview](https://docs.kosa8.com/reference/sandbox-preview.md): Make a signed, expiring link to a web server in a sandbox - [kosa8 sandbox ps](https://docs.kosa8.com/reference/sandbox-ps.md): List containers running inside a sandbox - [kosa8 sandbox pull](https://docs.kosa8.com/reference/sandbox-pull.md): Pull an image into a sandbox's private engine - [kosa8 sandbox resume](https://docs.kosa8.com/reference/sandbox-resume.md): Continue a paused sandbox - [kosa8 sandbox rm](https://docs.kosa8.com/reference/sandbox-rm.md): Stop and delete a sandbox - [kosa8 sandbox run](https://docs.kosa8.com/reference/sandbox-run.md): Run a container inside a sandbox's private engine - [kosa8 sandbox start](https://docs.kosa8.com/reference/sandbox-start.md): Start a detached container inside a sandbox - [kosa8 sandbox up](https://docs.kosa8.com/reference/sandbox-up.md): Start a stopped sandbox from its own disk - [kosa8 save](https://docs.kosa8.com/reference/save.md): Save an image to an OCI archive - [kosa8 search](https://docs.kosa8.com/reference/search.md): Search Docker Hub for images - [kosa8 self-update](https://docs.kosa8.com/reference/self-update.md): Update the kosa8 CLI (and kosa8d beside it) to the latest release - [kosa8 signup](https://docs.kosa8.com/reference/signup.md): Sign in, or create your kosa8 account, to start using kosa8 (same as kosa8 login) - [kosa8 skill](https://docs.kosa8.com/reference/skill.md): Teach AI coding agents to use kosa8, and import third-party skills safely - [kosa8 skill add](https://docs.kosa8.com/reference/skill-add.md): Import a third-party Agent Skill: read it, scan it, pin it, install it - [kosa8 skill install](https://docs.kosa8.com/reference/skill-install.md): Install the kosa8 skill for coding agents (default: claude-code and codex) - [kosa8 skill ls](https://docs.kosa8.com/reference/skill-ls.md): List imported skills, where they are installed, and whether each copy is unchanged - [kosa8 skill rm](https://docs.kosa8.com/reference/skill-rm.md): Remove an imported skill from agents (all, unless --agent) and from the store - [kosa8 skill show](https://docs.kosa8.com/reference/skill-show.md): Print the skill - [kosa8 snapshot](https://docs.kosa8.com/reference/snapshot.md): Snapshot and restore sandbox state - [kosa8 snapshot create](https://docs.kosa8.com/reference/snapshot-create.md): Capture full VM state (memory + processes) of a running sandbox - [kosa8 snapshot encrypt](https://docs.kosa8.com/reference/snapshot-encrypt.md): Encrypt a snapshot at rest and wipe its plaintext - [kosa8 snapshot export](https://docs.kosa8.com/reference/snapshot-export.md): Write a snapshot to an encrypted bundle for removable media or one-way transfer - [kosa8 snapshot import](https://docs.kosa8.com/reference/snapshot-import.md): Import an encrypted snapshot bundle written by `snapshot export` - [kosa8 snapshot ls](https://docs.kosa8.com/reference/snapshot-ls.md): List snapshots - [kosa8 snapshot pull](https://docs.kosa8.com/reference/snapshot-pull.md): Download a snapshot from remote storage, ready to restore - [kosa8 snapshot push](https://docs.kosa8.com/reference/snapshot-push.md): Upload a snapshot to remote storage (Cloudflare R2) - [kosa8 snapshot restore](https://docs.kosa8.com/reference/snapshot-restore.md): Boot a sandbox from a snapshot, resuming processes in place - [kosa8 snapshot rm](https://docs.kosa8.com/reference/snapshot-rm.md): Delete a snapshot (state file, disk clone, and manifest) - [kosa8 snapshot seal](https://docs.kosa8.com/reference/snapshot-seal.md): Sign a tamper-evident record of exactly what a snapshot contains - [kosa8 snapshot verify](https://docs.kosa8.com/reference/snapshot-verify.md): Check a sealed snapshot against its seal and name any file that changed - [kosa8 start](https://docs.kosa8.com/reference/start.md): Start a created container - [kosa8 stats](https://docs.kosa8.com/reference/stats.md): Show resource usage of a running container - [kosa8 status](https://docs.kosa8.com/reference/status.md): One screen: your account, plan, this month's usage, what is running, and whether it is secure - [kosa8 stop](https://docs.kosa8.com/reference/stop.md): Stop a running container (SIGTERM, then SIGKILL) - [kosa8 swarm](https://docs.kosa8.com/reference/swarm.md): Run a group of agents forked from one sandbox, under one policy - [kosa8 swarm kill](https://docs.kosa8.com/reference/swarm-kill.md): Stop a whole swarm at once - [kosa8 swarm ls](https://docs.kosa8.com/reference/swarm-ls.md): List swarms - [kosa8 swarm pause](https://docs.kosa8.com/reference/swarm-pause.md): Pause every member - [kosa8 swarm resume](https://docs.kosa8.com/reference/swarm-resume.md): Resume every paused member - [kosa8 swarm rewind](https://docs.kosa8.com/reference/swarm-rewind.md): Put every member back to the swarm's start point - [kosa8 swarm send](https://docs.kosa8.com/reference/swarm-send.md): Copy a file from one member to another, if a link allows it - [kosa8 swarm status](https://docs.kosa8.com/reference/swarm-status.md): Show each member's state, egress and anomalies - [kosa8 swarm up](https://docs.kosa8.com/reference/swarm-up.md): Fork a running sandbox into a swarm of N members - [kosa8 system](https://docs.kosa8.com/reference/system.md): Manage kosa8 itself - [kosa8 system info](https://docs.kosa8.com/reference/system-info.md): Show engine and system information - [kosa8 system prune](https://docs.kosa8.com/reference/system-prune.md): Remove stopped containers and leftover fork snapshots - [kosa8 tag](https://docs.kosa8.com/reference/tag.md): Give an existing image another name - [kosa8 template](https://docs.kosa8.com/reference/template.md): Build what new sandboxes start with, from a Dockerfile - [kosa8 template build](https://docs.kosa8.com/reference/template-build.md): Build a template from a Dockerfile - [kosa8 template ls](https://docs.kosa8.com/reference/template-ls.md): List templates - [kosa8 template rm](https://docs.kosa8.com/reference/template-rm.md): Delete a template (sandboxes made from it keep their copy) - [kosa8 threat](https://docs.kosa8.com/reference/threat.md): Block hosts for every sandbox on this machine - [kosa8 threat block](https://docs.kosa8.com/reference/threat-block.md): Block a host for every sandbox - [kosa8 threat ls](https://docs.kosa8.com/reference/threat-ls.md): List blocked hosts - [kosa8 threat unblock](https://docs.kosa8.com/reference/threat-unblock.md): Let every sandbox reach a host again - [kosa8 top](https://docs.kosa8.com/reference/top.md): List processes running inside a container - [kosa8 uninstall](https://docs.kosa8.com/reference/uninstall.md): Remove kosa8 from this machine for this user (and, if asked, its data) - [kosa8 unpause](https://docs.kosa8.com/reference/unpause.md): Resume a paused container - [kosa8 up](https://docs.kosa8.com/reference/up.md): Detect, build and run a project — no Dockerfile required - [kosa8 update](https://docs.kosa8.com/reference/update.md): Update a running container's resource limits - [kosa8 upgrade](https://docs.kosa8.com/reference/upgrade.md): Buy a plan: opens its checkout in your browser - [kosa8 usage](https://docs.kosa8.com/reference/usage.md): Show metered usage, derived from the audit log - [kosa8 validate](https://docs.kosa8.com/reference/validate.md): Generate, sign and verify GxP qualification records (IQ, OQ) - [kosa8 validate iq](https://docs.kosa8.com/reference/validate-iq.md): Generate an Installation Qualification record - [kosa8 validate oq](https://docs.kosa8.com/reference/validate-oq.md): Run an Operational Qualification protocol in a clone of a validated snapshot - [kosa8 validate sign](https://docs.kosa8.com/reference/validate-sign.md): Sign a qualification record with your identity (21 CFR 11.50, 11.70) - [kosa8 validate verify](https://docs.kosa8.com/reference/validate-verify.md): Check a qualification record and its signatures using nothing but the files - [kosa8 version](https://docs.kosa8.com/reference/version.md): Show kosa8 client and daemon version - [kosa8 volume](https://docs.kosa8.com/reference/volume.md): Manage named volumes - [kosa8 volume create](https://docs.kosa8.com/reference/volume-create.md): Create a named volume - [kosa8 volume ls](https://docs.kosa8.com/reference/volume-ls.md): List volumes - [kosa8 volume rm](https://docs.kosa8.com/reference/volume-rm.md): Remove a volume - [kosa8 wait](https://docs.kosa8.com/reference/wait.md): Block until a container stops, then print its exit code - [kosa8 watch](https://docs.kosa8.com/reference/watch.md): A live view of what is running, or of one sandbox, job or RL run - [kosa8 whoami](https://docs.kosa8.com/reference/whoami.md): Show the kosa8 account, organization and key this machine is signed in with - [kosa8 worker](https://docs.kosa8.com/reference/worker.md): Connect this machine to a kosa8 worker, or let others connect to this one - [kosa8 worker forget](https://docs.kosa8.com/reference/worker-forget.md): Remove the saved worker connection - [kosa8 worker join](https://docs.kosa8.com/reference/worker-join.md): Save a worker connection from a pairing code - [kosa8 worker pair](https://docs.kosa8.com/reference/worker-pair.md): Print a pairing code another device can join this worker with - [kosa8 worker status](https://docs.kosa8.com/reference/worker-status.md): Show which worker commands go to, and whether it answers - [kosa8 wsl](https://docs.kosa8.com/reference/wsl.md): Run sandboxes on this Windows PC, through WSL2 - [kosa8 wsl setup](https://docs.kosa8.com/reference/wsl-setup.md): Set up kosa8's engine in WSL2 and connect this CLI to it - [kosa8 wsl status](https://docs.kosa8.com/reference/wsl-status.md): Show the WSL2 daemon this CLI drives