PLATINUM DOCS
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/daytona

Then 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.