daytona-sandbox
4
总安装量
4
周安装量
#49455
全站排名
安装命令
npx skills add https://github.com/computesdk/sandbox-skills --skill daytona-sandbox
Agent 安装分布
kimi-cli
3
gemini-cli
3
pi
3
github-copilot
3
codex
3
opencode
3
Skill 文档
Daytona Sandboxes with ComputeSDK
Run code in Daytona’s development workspace environments through ComputeSDK’s unified API. Daytona provides full-featured development workspaces â ideal for complex application development, multi-service environments, and persistent coding workspaces.
Setup
npm install computesdk
# .env
COMPUTESDK_API_KEY=your_computesdk_api_key
DAYTONA_API_KEY=your_daytona_api_key
Get your ComputeSDK key at https://console.computesdk.com/register
Quick Start
import { compute } from 'computesdk';
// Auto-detects Daytona from environment variables
const sandbox = await compute.sandbox.create();
const result = await sandbox.runCode('print("Hello from Daytona!")');
console.log(result.output);
await sandbox.destroy();
Explicit Configuration
For multi-provider setups or when you want to be explicit:
import { compute } from 'computesdk';
compute.setConfig({
computesdkApiKey: process.env.COMPUTESDK_API_KEY,
provider: 'daytona',
daytona: {
apiKey: process.env.DAYTONA_API_KEY,
}
});
const sandbox = await compute.sandbox.create();
Daytona Configuration Options
interface DaytonaConfig {
apiKey?: string; // Uses DAYTONA_API_KEY env var if not set
runtime?: 'node' | 'python'; // Auto-detects from code patterns
timeout?: number; // Execution timeout in ms
}
Full API
ComputeSDK provides the same API across all providers: filesystem operations, shell commands, managed servers, overlays, terminals, and client access.
Install the main skill for the complete reference:
npx skills add https://github.com/computesdk/sandbox-skills --skill computesdk