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
.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 Expected output:
api.styne.ai.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;snapshotnames a Styne template (base), and the Styneclassfield 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 withrun_async),get_session_command,get_session_command_logs,send_session_command_inputanddelete_session. A session keeps its working directory and exported variables from one command to the next. - PTY sessions work as in Daytona:
create_pty_sessionandconnect_pty_sessionopen a WebSocket to a login shell with a terminal,resize_pty_sessionchanges its size,list_pty_sessions,get_pty_session_infoandkill_pty_sessionmanage 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/...underDAYTONA_API_URL, for clients that call them directly. - Preview URLs follow
https://<port>-<sandbox id>.styne.ai.
What is different
- A create without a
snapshotgetsbase, the general Linux image (Debian 12; Python 3 aspythonandpython3withpip install, Node 22, git, curl, wget andsudoinstalled, and adaytonaaccount). TheWORKDIRof a create’s Dockerfile is made in the sandbox, and a command whosecwddoes not exist answers400naming 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.