# kosa8 cloud

Run sandboxes on kosa8 Cloud (api.kosa8.com)

kosa8 Cloud runs the same sealed sandboxes on kosa8's hosts, or on your own,
billed by the second. Sign in once (kosa8 login, or an API key), then make, run in, sleep
and remove cloud sandboxes from here; the dashboard at https://app.kosa8.com
shows the same ones.

  kosa8 login                       # sign in in your browser
  kosa8 cloud login --key k8c_live_…  # or with an API key (CI)
  kosa8 cloud sandbox create        # prints its ID and a dashboard link
  kosa8 cloud sandbox exec ID -- uname -a
  kosa8 cloud sandbox create --size 4x8 --image kosa8-template/universal-24.04-20261115.2 --docker -e KEY
  kosa8 cloud sandbox exec -d ID -- npm run dev   # background; then: sandbox exec-status ID bg_…
  kosa8 cloud preview open ID 3000  # an https URL for a port
  kosa8 cloud files put ID ./a.csv /workspace/a.csv
  kosa8 cloud terminal ID           # an interactive shell
  kosa8 cloud snapshot create ID    # then: sandbox create --from-snapshot snap_…
  kosa8 cloud secrets set NAME --upstream https://api.example.com   # value from stdin
  kosa8 cloud pipelines run https://github.com/acme/app --follow
  kosa8 cloud usage                 # this month's bill so far
  kosa8 cloud cap 250               # the monthly spending cap (off: none)
  kosa8 cloud mcp                   # connect Claude Code, Cursor or Codex
  kosa8 cloud browser create        # a headless Chromium; prints its cdp_url

The key is kept in ~/.kosa8/cloud.json, readable only by you, and shared with
the kosa8 desktop app. KOSA8_API_KEY and KOSA8_CLOUD_URL, which the SDKs also
read, take precedence when set (KOSA8_API_URL works too).

## Flags

| Flag | Type | What it does | Default |
|---|---|---|---|
| `--api` | string | kosa8 Cloud API address (default: KOSA8_API_URL or KOSA8_CLOUD_URL, then the signed-in address, then https://api.kosa8.com) |  |

## Example

```
  kosa8 cloud login
  kosa8 cloud sandbox create --json
  kosa8 cloud sandbox ls
  kosa8 cloud usage
```

## Subcommands

- [`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 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 browser`](https://docs.kosa8.com/reference/cloud-browser.md): Headless Chromium browsers for agents, driven over CDP
- [`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 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 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 egress`](https://docs.kosa8.com/reference/cloud-egress.md): See and change what a cloud sandbox may reach on the network
- [`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 evidence`](https://docs.kosa8.com/reference/cloud-evidence.md): Export an evidence bundle for a reviewer or auditor
- [`kosa8 cloud files`](https://docs.kosa8.com/reference/cloud-files.md): List, download, upload and remove files in a cloud sandbox
- [`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 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 preview`](https://docs.kosa8.com/reference/cloud-preview.md): Open a sandbox's port at its own https URL
- [`kosa8 cloud recordings`](https://docs.kosa8.com/reference/cloud-recordings.md): Desktop session recordings (MP4) of sandboxes made with recording on
- [`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 sandbox`](https://docs.kosa8.com/reference/cloud-sandbox.md): Make, list, run in, sleep, wake and remove cloud sandboxes
- [`kosa8 cloud schedule`](https://docs.kosa8.com/reference/cloud-schedule.md): Run commands in a cloud sandbox on a cron schedule (UTC)
- [`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 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 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 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 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 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 tokens`](https://docs.kosa8.com/reference/cloud-tokens.md): Short-lived capability tokens for your own users, limited to some sandboxes
- [`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 whoami`](https://docs.kosa8.com/reference/cloud-whoami.md): Show the kosa8 Cloud organization and key in use

---
Source: https://docs.kosa8.com/reference/cloud/
