SDKs
Daytona SDK compatibility
Run the Daytona SDK against Platinum with no code changes.
The Daytona compatibility layer lets the Daytona SDK talk to Platinum. Point the SDK at a Platinum API key and Platinum's Daytona endpoint. Your Daytona code needs no changes.
The layer uses an ordinary Platinum API key. The native /v1/* API stays unchanged.
Setup
Set two environment variables:
export DAYTONA_API_KEY=pt_live_...
export DAYTONA_API_URL=https://api.platinum.dev/api/daytonaThen use the Daytona SDK as before. Daytona's snapshot parameter selects a Platinum template.
import { Daytona } from '@daytona/sdk';
const client = new Daytona();
const sandbox = await client.create({ snapshot: 'pt-base' });
const result = await sandbox.process.executeCommand('echo hello');
await sandbox.fs.uploadFile(Buffer.from('value'), '/tmp/value.txt');
console.log(result.result, String(await sandbox.fs.downloadFile('/tmp/value.txt')));
await client.delete(sandbox);Compatibility matrix
The matrix covers the layer's control-plane and toolbox handlers. Unsupported operations return a typed error (statusCode · message · code, HTTP 501). They do not return a false success.
| Capability | Status | Notes |
|---|---|---|
| Create, get, list, delete | Supported | List returns { items, nextCursor, total } |
| Start / stop / pause | Supported | |
| Resize (CPU / memory / disk) | Supported | |
| Auto-stop timer | Supported | Minute granularity |
| Auto-archive / auto-delete timers | Supported | Rounded up to Platinum's day granularity |
| List filters and sort | Supported | id, name, labels, state, snapshot, region, CPU/memory/disk ranges, created-at range |
| Environment variables and metadata | Supported | |
Template selection (Daytona snapshot) | Supported | e.g. pt-base |
| Preview URL | Supported | Returns url + token |
| Foreground command execution | Supported | Output is buffered and returned on completion, not streamed |
| Code execution | Supported | Text output only; chart artifacts are empty; argv and env overrides are rejected |
| Files: list, read, write, stat, mkdir, delete, find | Supported | Includes bulk upload and download; a bulk download takes up to 64 paths and 128 MiB |
| Rename / move files | Unsupported | |
| Background / reconnectable sessions, PTY | Unsupported | |
| Git, LSP, GUI automation | Unsupported | |
| Snapshot management, volumes, image builds | Unsupported | Rejected at create |