kosa8 docs Dashboard
esc
↑ ↓ move↵ openRuns in your browser; nothing you type is sent anywhere.

Core concepts

Sizes and templates

A template is what is installed. A size is how much machine it gets. Pick both, or neither: every template has a sensible default size.

kosa8 cloud sizes                        # what this organization can make

# A half-vCPU, 1 GiB sandbox of any OCI image (boots cold, waits until it runs)
ID=$(kosa8 cloud sandbox create --size 0.5x1 --image python:3.12-slim --ttl 15m --json | jq -r .sandbox.id)
kosa8 cloud sandbox exec $ID -- nproc
kosa8 cloud sandbox rm $ID
API=https://api.kosa8.com/v1
AUTH="Authorization: Bearer $KOSA8_API_KEY"

# A sized create may answer 202 "creating": poll until it runs
SBX=$(curl -s $API/sandboxes -H "$AUTH" -H 'Content-Type: application/json' \
  -d '{"size":"0.5x1","image":"python:3.12-slim","ttl_s":900}' | jq -r .sandbox.id)
until [ "$(curl -s $API/sandboxes/$SBX -H "$AUTH" | jq -r .sandbox.state)" = running ]; do sleep 2; done

curl -s $API/sandboxes/$SBX/exec -H "$AUTH" -H 'Content-Type: application/json' \
  -d '{"cmd":["python3","-c","import os; print(os.cpu_count())"]}' | jq -r .stdout

curl -s -X DELETE $API/sandboxes/$SBX -H "$AUTH"
from kosa8 import Kosa8Cloud

cloud = Kosa8Cloud()

# create() waits for a sized sandbox to boot (wait=False to skip)
with cloud.sandboxes.create(size="0.5x1", image="python:3.12-slim", ttl_s=900) as box:
    print(box.info["cpus"], box.info["mem_mb"])   # 0.5 1024
    print(box.exec("nproc").stdout)               # 1: bursts to a whole vCPU
import { Kosa8Cloud } from '@kosa8/sdk';

const cloud = new Kosa8Cloud();

// create() waits for a sized sandbox to boot
const box = await cloud.sandboxes.create({ size: '0.5x1', image: 'python:3.12-slim', ttlS: 900 });
try {
  console.log(box.info.cpus, box.info.mem_mb);    // 0.5 1024
  console.log((await box.exec('nproc')).stdout);  // 1: bursts to a whole vCPU
} finally {
  await box.delete();
}

Templates#

TemplateWhat is in itDefault size
baseAlpine Linux with busybox sh. The default.1 vCPU, 256 MiB
pythonPython 3.12 on Debian slim, with bash, git, curl, pip, pytest and uv1 vCPU, 256 MiB
nodeNode.js 22 on Alpine, with bash and git1 vCPU, 384 MiB
universal-2x4 … universal-16x32Ubuntu 24.04 with about 150 tools and runtimes. The universal imageAs named

GET /v1/templates lists every template your organization can use, including prebuilt benchmark environments and the gallery.

Sizes#

A size is VCPUSxGIB. GET /v1/sizes and kosa8 cloud sizes list them.

SizevCPUsMemorySandbox-hours per hourKind
0.25x0.50.25, bursts to 1512 MiB0.125small
0.5x10.5, bursts to 11 GiB0.25small
1x21, bursts to 22 GiB0.5small
2x424 GiB1standard
4x848 GiB2standard
8x16816 GiB4standard
16x321632 GiB8standard

Your plan includes a number of sandbox-hours a month, counted against a 2x4: an hour of 0.5x1 uses a quarter of one, an hour of 8x16 uses four. The largest size you can start also depends on the plan. Small sizes suit fleets of mostly idle sandboxes, such as RL rollouts and evals. Data disks go up to 500 GB with disk_gb. Plans and what they include are on kosa8.com/pricing.

Your own image#

Pass image with any public OCI reference (python:3.12-slim, ghcr.io/you/tool:1.4). The first start pulls it, and later starts are fast. To start with your dependencies already installed, set one up once and save it as a snapshot.

Something wrong or missing? Edit this page, or write to contact@kosa8.com.

The kosa8 weekly

Agent security news, one industry deep-dive and a hands-on challenge, every Monday. Unsubscribe in one click.

© 2026 kosa8 · kosa8.com · AI Agent Sandbox: Secure and Sovereign for Enterprise · Local models served by llamay · Agent gateway: MAQPNA