kosa8 / Switch

Switch · from Daytona

Switch from Daytona

Checked

On 2026-06-11 Daytona announced it is going closed source. Its public repository stays up as it is but is no longer maintained or updated. If you depend on being able to read or run the code yourself, that is a reason to look at a second provider.

01What changed, with dates

  • 2026-06-11: Daytona published “Daytona is going closed source”. The reason it gives is security: AI tools can scan open code for flaws at scale. The existing repository “remains available as is” and stays public; SDKs and docs move to a new GitHub location [1].
  • Daytona's reasoning is a reasonable one for sandbox software, and this page does not argue with it. What kosa8 offers instead is a way to run the same sandboxes on your own machines: locally, on your own KVM servers, or air-gapped. See what is open source below.

02Change one import

Daytona

python
from daytona import Daytona, CreateSandboxFromSnapshotParams
# reads DAYTONA_API_KEY

daytona = Daytona()
sandbox = daytona.create(CreateSandboxFromSnapshotParams(language="python"))
r = sandbox.process.code_run("print(6 * 7)")
print(r.exit_code, r.result.strip())
daytona.delete(sandbox)

kosa8

python
from kosa8.compat.daytona import Daytona, CreateSandboxFromSnapshotParams
# reads KOSA8_API_KEY (DAYTONA_API_KEY is not read)

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

Install with pip install kosa8 and set KOSA8_API_KEY. An api_url that is not kosa8's is refused, so your kosa8 key never goes to another provider.

03What was tested

  • The shim mirrors the synchronous API of the daytona Python SDK 2.1.0, from Daytona's public reference checked 2026-11-21. It is covered by kosa8-py's unit tests and the docs snippet above runs against production in kosa8's docs checks.
  • Daytona's own test suite has not been run against it yet. AsyncDaytona and the other language SDKs are not mirrored.

04What behaves differently

Daytonakosa8 shim today
State between commandsOne machine lives across commands: cd, exported env and background daemons surviveEach command runs in a fresh container on the sandbox's disk; only /workspace persists. Relative paths are put under /workspace
Long plain commandsRun until their timeoutA buffered command (no output callbacks, no timeout over 90 s) runs at most 90 s. With callbacks or a longer timeout it is streamed and not held to 90 s
stdinSupportedNot supported: kosa8 commands take no stdin. Write the input to a file in /workspace and read it
Background command outputStreamedPolled about once a second; stdout and stderr arrive together
Default imageDaytona's default snapshotkosa8's python template when you give no snapshot or image and the language is Python
SnapshotsImages you build (declarative builder or Dockerfile)Saved sandboxes: memory and disk. Image builds raise Unsupported; build and push the image yourself
Preview URLget_preview_link: URL plus a token headerget_preview_link returns a signed URL with no separate token
SessionsShell state carries between session commandsEach session command is a streamed exec; cd and export do not carry between commands
StopStops the sandbox; containers lose memorySleep: memory and disk kept; the next command wakes it
API keyDAYTONA_API_KEYKOSA8_API_KEY or DaytonaConfig(api_key='k8c_live_...')

This table reflects kosa8-py 0.6.0 (src/kosa8/compat) as of 2026-11-23. Shim fidelity is being improved; when a row changes, this page changes with it.

05Calls that raise Unsupported

Read from compat/daytona.py. Each error names the method and the kosa8 alternative:

CallWhat kosa8 says to use instead
Process.create_pty_session (and connect/list)sandbox.kosa8.terminal() gives a wss:// URL
Process.get_entrypoint_session, get_entrypoint_logs, send_session_command_inputprocess.exec per command; sandbox.kosa8.exec_background(...) for long work
Process.code_run in a language other than Python or JavaScriptprocess.exec('npx tsx file.ts') in an image with Node
Sandbox.gitprocess.exec('git ...') in an image with git
Sandbox.computer_useA desktop image with its own VNC, exposed with sandbox.kosa8.previews.create(port)
Sandbox.code_interpretersandbox.kosa8.run_code(code, context=...)
Daytona.volumeKeep data in /workspace, or snapshot the sandbox
Daytona.object_storagesandbox.kosa8.files.link(path) to move files to your own storage
snapshot.create (an image build), snapshot.activateBuild and push the image yourself, then image='registry/name:tag'; or snapshot a prepared sandbox
create(image=Image...) (declarative build)Build and push the image, then image='registry/name:tag'
Resources(gpu=...)Not in the kosa8 Cloud API yet
create(os_user=, public=, volumes=, secrets=, kvm=, network_allow_list=, domain_allow_list=, outbound_proxy_url=, ephemeral=, auto_delete_interval=, spot=, ...)Each names its kosa8 alternative in the error, e.g. set_egress(allow=[...]) after create, ttl_minutes for auto-delete
FileSystem.list_files(depth=...)List each folder, or find PATH -maxdepth N
FileSystem.find_files, search_files, replace_in_filesprocess.exec with grep, find or sed
FileSystem upload/download streams, download_filesupload_file / download_file, or sandbox.kosa8.files.link(path)
Sandbox.set_auto_delete_intervalset_ttl(minutes): kosa8 deletes on a lifetime, not after a stop
Sandbox.fork(name=...)fork() then set labels on the copy
Sandbox.resize, update_env, update_secrets, update_network_settings, set_publicCreate a sized sandbox; pass env per exec; set_egress; previews.create(port, public=True)
SSH access, LSP server, metrics, recover, signed-URL expiryterminal(); run the server with process.exec; kosa8.metrics(); recreate; previews.rotate(port)
DaytonaConfig(jwt_token=...)A kosa8 Cloud API key
AsyncDaytonaNot mirrored; use the synchronous Daytona

06What is open source

The kosa8 SDKs (Python, JavaScript and TypeScript, Go, Ruby, Java), including these shims, are MIT licensed. The kosa8 engine, CLI and Cloud are proprietary. You can run the engine on your own machines and air-gapped under a licence, but you cannot read or fork its source.

07Switching back is one line

The shim is one import. To go back, change the import back and set your old key. Nothing else in your code was rewritten, so there is nothing to undo. Running both at once is fine: keep the original SDK for the calls kosa8 raises Unsupported on, and use kosa8 for the rest.

08What it costs

Start free: the Starter tier needs no card, with $10 of one-time usage, 2 sandboxes running, up to 2 vCPU, 60-minute sessions, for 14 days. Paid plans from $29 a month include sandbox-hours; usage above the plan is metered per second up to a spend cap you set, on by default at $50. Pricing.

09Sources, checked on 2026-11-23

Facts about another product come from that vendor's own pages, read on 2026-11-23. Products change quickly: check the current pages before you decide, and tell us if something here is out of date and we will fix it.

  1. Daytona: Daytona is going closed source (2026-06-11)
  2. Daytona: Pricing
  3. kosa8 docs: Migrate from Daytona
  4. kosa8-py compat shims (source)

Run your own code on it first.

No card for the Starter tier. Paid plans from $29 a month, with a spend cap on by default.