Programmatic Cloud
Development
The enterprise TypeScript SDK for Sealos Devbox. Spin up, manage, and control isolated cloud environments with precision.
import { DevboxSDK } from '@labring/devbox-sdk'
// Initialize SDK
const sdk = new DevboxSDK({ kubeconfig })
// 1. Create Environment
const devbox = await sdk.createDevbox({
name: 'ai-agent-worker',
runtime: 'python:3.10',
resource: { cpu: 2, memory: 4096 }
})
// 2. Execute AI Task
await devbox.codeRun(`
from langchain.llms import OpenAI
print("Agent Ready")
`)Full Control Over Cloud Environments
Everything you need to build powerful cloud development tools and infrastructure with a single SDK.
Instant Lifecycle Management
Create, pause, resume, and destroy environments in seconds. Programmatically manage CPU and Memory resources with granular control.
File System Control
Upload, download, watch, and manage files with high-performance transfer methods.
Process Management
Execute commands, stream logs, and manage background processes with ease.
Git Integration
Clone, pull, push, and manage branches directly within the remote environment. Native support for authentication and complex workflows.
Network & Ports
Expose ports, manage domains, and handle secure networking automatically.
Real-time Monitoring
Track CPU, memory, disk, and network usage with built-in metrics.
Secure Isolation
Container-level isolation for untrusted code execution.
Built for Modern Workloads
From AI agents to production pipelines, Devbox SDK handles the most demanding infrastructure requirements.
AI Agents & Evals
Provide secure, isolated sandboxes for AI agents to write and execute code without risking your infrastructure. Perfect for code interpretation and automated task execution.
Cloud IDE Backends
Power your custom cloud IDEs with a robust backend that handles terminals, files, and language servers. Support for all major languages and runtimes out of the box.
CI/CD Pipelines
Spin up ephemeral environments for testing and building applications in a clean state every time. Faster than traditional VMs and more secure than shared containers.