Skip to main content
You need a Styne API key; create one on the dashboard (API keys). The unmodified Daytona SDK, Python daytona and TypeScript @daytonaio/sdk 0.231.0, passes create, exec, code run, files, list, stop and start, and delete against https://api.styne.ai.
1

Switch

Export both in the process environment; Daytona ignores URL variables set in a .env file. Daytona’s own default is https://app.daytona.io/api (source: Daytona docs, read 2026-11-08).
2

Check

Create a sandbox with the Daytona SDK, read it back and delete it.
Then run a command and move a file, the calls that go through the sandbox’s own agent. On the public API the host is api.styne.ai.
Expected output: ok, then file.
3

Adapt what differs

4

Routes served

These Daytona routes are served; the list is generated from the code that registers them. Paths are relative to https://api.styne.ai/daytona/api (the api_url the SDK takes). Paths under /toolbox/{id} are served there and also under /sandbox/{id}/toolbox, /toolbox/{id}/toolbox and the toolboxProxyUrl of the sandbox (https://api.styne.ai/daytona/toolbox).archive pauses the sandbox, which keeps its files and memory; labels set with set_labels replace the labels of creation.
5

Cut over

Keep the two variables behind a switch in your config, send a small share of work to Styne, compare results, and move the rest. Errors lists every code the API can answer; limits every limit. Check your usage under Plans and billing.

What maps

  • daytona.create() creates a sandbox; snapshot names a Styne template (base), and the Styne class field is passed through as an extra create field.
  • Process and file calls run through the sandbox’s own agent.
  • Sessions work as in Daytona: create_session, execute_session_command (synchronous, or detached with run_async), get_session_command, get_session_command_logs, send_session_command_input and delete_session. A session keeps its working directory and exported variables from one command to the next.
  • PTY sessions work as in Daytona: create_pty_session and connect_pty_session open a WebSocket to a login shell with a terminal, resize_pty_session changes its size, list_pty_sessions, get_pty_session_info and kill_pty_session manage them. The shell outlives the connection until you kill it, a sandbox holds up to 16, and its output stays available to a connection made later.
  • The toolbox also answers Daytona’s earlier REST paths, /sandbox/{id}/toolbox/... and /toolbox/{id}/toolbox/... under DAYTONA_API_URL, for clients that call them directly.
  • Preview URLs follow https://<port>-<sandbox id>.styne.ai.

What is different

  • A create without a snapshot gets base, the general Linux image (Debian 12; Python 3 as python and python3 with pip install, Node 22, git, curl, wget and sudo installed, and a daytona account). The WORKDIR of a create’s Dockerfile is made in the sandbox, and a command whose cwd does not exist answers 400 naming the directory.
  • Beyond the Daytona SDK you also get fork, snapshots, signed file URLs (files) and public ports (ports) over plain HTTP; see the HTTP quickstart.