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

Guides

Migrate from Daytona

Change from daytona import … to from kosa8.compat.daytona import …, set KOSA8_API_KEY, and run.

# Before: from daytona import Daytona, CreateSandboxFromSnapshotParams
from kosa8.compat.daytona import Daytona, CreateSandboxFromSnapshotParams

daytona = Daytona()                              # reads KOSA8_API_KEY
sandbox = daytona.create(CreateSandboxFromSnapshotParams(snapshot="python"))
r = sandbox.process.code_run("print(6 * 7)")
print(r.exit_code, r.result.strip())             # 0 42
daytona.delete(sandbox)

How it maps#

Daytonakosa8 Cloud
Daytona().create(params)Create. snapshot is a kosa8 template (or a snap_… snapshot), image an OCI image, resources a size, auto_stop_interval sleep after idle
get / list / deleteGet (by id or name), list, delete
start / stop / pauseWake, sleep, sleep
sandbox.process.exec / code_runExec (cwd relative to /workspace)
sandbox.fs.*The files API
sandbox.forkFork
sandbox.create_snapshot(name)A kosa8 snapshot, memory and disk included

What is different#

  • The key is a kosa8 key (KOSA8_API_KEY or DaytonaConfig(api_key="k8c_live_…")). DAYTONA_API_KEY is not read, and an api_url that is not kosa8's is refused, so your key never goes elsewhere.
  • Daytona snapshots are images you build; kosa8 snapshots are saved sandboxes. Building an image (daytona.snapshot.create) raises kosa8.compat.Unsupported.
  • A buffered exec runs at most 90 s. Only the synchronous API (Daytona 2.1.0) is mirrored, not AsyncDaytona.

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