Migrate from Daytona
Already have code written for Daytona's SDK? Change one import and it runs on Solari sandboxes: create, stop and start, run commands and sessions, read and write files, use git, snapshot and fork.
"Daytona" is the name of Daytona's product. These packages are written from Daytona's public documentation and only describe API compatibility; they are made by Solari and are not endorsed by Daytona. They need a Solari API key: a Daytona key is never sent to Solari.
Install
npm install @solarisdk/daytona-compat # TypeScript
pip install solari-daytona-compat # Python (import solari_daytona)Change the import
// before: import { Daytona } from "@daytona/sdk"
import { Daytona } from "@solarisdk/daytona-compat"
const daytona = new Daytona({ apiKey: process.env.SOLARI_API_KEY })
const sandbox = await daytona.create({ labels: { project: "demo" } })
const result = await sandbox.process.executeCommand("echo hello")
console.log(result.result, result.exitCode)
await sandbox.delete()# before: from daytona import Daytona, DaytonaConfig
import os
from solari_daytona import Daytona, DaytonaConfig
daytona = Daytona(DaytonaConfig(api_key=os.environ["SOLARI_API_KEY"]))
sandbox = daytona.create()
print(sandbox.process.exec("echo hello").result)
sandbox.delete()The key is read from the apiKey / api_key option, then SOLARI_API_KEY. The API URL defaults to https://api.getsolari.com.
What works
- Sandboxes: create (with labels, a name, environment variables, resources and auto-stop), get by id or name, list by label, start, stop, delete, fork.
- Commands: run a shell command with a working directory, environment and timeout; run code; sessions where
cdandexportcarry from one command to the next, with background commands, streaming logs and input. - Files: upload and download, list, details, search, replace, move, permissions.
- Git: clone, commit, branches, push, pull, status and more, run with the git in the sandbox. Credentials are never put on a command line, in a URL or in an error message.
- Snapshots and images: snapshot a sandbox and create from the snapshot by name; build a named snapshot from an
Image(base,debianSlim,pipInstall,runCommands,env,workdir,addLocalFile, …) or a Dockerfile. - Preview links for a port in the sandbox.
What is different
- User and home. Commands run as the
daytonauser with/home/daytonaas the home directory and default working directory, as on Daytona. Templates and snapshots built before user support shipped on the server run as root, with a one-time warning; rebuild them to get thedaytonauser. - Stop is a pause. A stopped sandbox keeps its memory, running processes and disk, and start resumes it where it was. That is more than Daytona's stop keeps.
- Fork and snapshots take a while (about 25 to 40 seconds) and keep memory as well as disk. Snapshots are large and are billed as snapshot storage; deleting a fork deletes its snapshot.
- Auto-stop uses Solari's idle window, which restarts whenever the sandbox is used. Solari has no hard wall-clock lifetime, so
ttlMinutesraisesSolariCompatUnsupported; useautoStopInterval. An auto-stop of0(never) is not available. - Preview links carry a signed token in the URL: treat the URL as a secret. Expiring one revokes every token of the sandbox.
- Sessions keep the working directory and environment between commands, but a session is not one long-running shell: a background process started by a command is not part of the session.
- Resources above 8 vCPU or 16 GiB are reduced to those limits, with a warning.
- Local files you add to an
Imagetravel inside the build and are visible in the build log: do not put secrets in them.
Good to know
- Target version:
@daytona/sdkas documented in October 2026. Newer vendor releases may add methods this package does not have yet. - File operations (
files.*) run as the same vendor user as commands. They are refused for paths that user cannot reach (for example/etc/shadow), and a file you write is owned by that user, so a command can modify it. - The TypeScript package is ESM-only (the vendor ships CommonJS too): use
import, or a dynamicimport()from CommonJS code.
What is not supported
These raise SolariCompatUnsupported, a subclass of DaytonaError that names the feature:
- PTY (terminal) sessions, computer use
- Code interpreter: listing and deleting contexts, and
envs/timeouton a run - LSP servers and SSH access
- Network allow-lists and the outbound proxy
- Secrets service, warm pools
- GPU, spot, regions, organisation and JWT sign-in
- Archive, recover and resize; auto-archive intervals; changing the auto-delete interval after create
These work, some with differences: the code interpreter (Python, state kept between calls, output delivered after the run), volumes (daytona.volume and volumes on create), blocking all outbound traffic (networkBlockAll, which starts a hardened sandbox) and the auto-delete interval set at create.
The full list, call by call, is the COMPAT.md file in each package.

