WorkflowsApr 2, 2026·2 min read
Daytona — Secure Sandboxes for AI Code Execution
Elastic infrastructure for running AI-generated code safely. SDKs for Python, TypeScript, Go. By Daytona. 71K+ GitHub stars.
TO
TokRepo精选 · Community
Quick Use
Use it first, then decide how deep to go
This block should tell both the user and the agent what to copy, install, and apply first.
```bash
pip install daytona-sdk
```
```python
from daytona_sdk import Daytona
daytona = Daytona()
# Create a sandboxed environment
sandbox = daytona.create()
# Execute AI-generated code safely
response = sandbox.process.code_run('print("Hello from sandbox!")')
print(response.result)
# File operations in the sandbox
sandbox.fs.upload_file('/app/script.py', 'print(42 * 42)')
result = sandbox.process.code_run(open('/app/script.py').read())
# Clean up
daytona.remove(sandbox)
```
TypeScript:
```bash
npm install @daytonaio/sdk
```
```typescript
import { Daytona } from '@daytonaio/sdk';
const daytona = new Daytona();
const sandbox = await daytona.create();
const result = await sandbox.process.codeRun('console.log("Hello!")');
console.log(result.result);
```
---
Intro
Daytona is an open-source infrastructure platform with 71,000+ GitHub stars for securely running AI-generated code. It provides programmatic SDKs (Python, TypeScript, Go, Ruby) to create isolated sandbox environments where untrusted code can execute safely without affecting your host system. Originally a dev environment manager, Daytona evolved into the go-to infrastructure layer for AI agents, coding assistants, and LLM-powered applications that need to run arbitrary code. Each sandbox is fully isolated with its own filesystem, network, and process space.
Works with: Python, TypeScript, Go, Ruby, any AI agent framework (LangChain, CrewAI, AutoGen). Best for teams building AI agents that execute code or AI-powered development tools. Setup time: under 5 minutes.
---
🙏
Source & Thanks
> Created by [Daytona](https://github.com/daytonaio). Licensed under AGPL-3.0.
>
> [daytona](https://github.com/daytonaio/daytona) — ⭐ 71,000+
Discussion
Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.
Related Assets
OpenLIT — OpenTelemetry LLM Observability
Monitor LLM costs, latency, and quality with OpenTelemetry-native tracing. GPU monitoring and guardrails built in. 2.3K+ stars.
TokRepo精选
Agenta — Open-Source LLMOps Platform
Prompt playground, evaluation, and observability in one platform. Compare prompts, run evals, trace production calls. 4K+ stars.
TokRepo精选
Rerun — Visualize Multimodal AI Data in Real-Time
SDK for logging, storing, and visualizing 3D, images, time series, and text in real-time. Built for robotics and AI. 10K+ stars.
TokRepo精选