https://github.com/daytonaio/daytona
Daytona is a Secure and Elastic Infrastructure for Running AI-Generated Code
https://github.com/daytonaio/daytona
agentic-workflow ai ai-agents ai-runtime ai-sandboxes code-execution code-interpreter developer-tools
Last synced: about 1 month ago
JSON representation
Daytona is a Secure and Elastic Infrastructure for Running AI-Generated Code
- Host: GitHub
- URL: https://github.com/daytonaio/daytona
- Owner: daytonaio
- License: agpl-3.0
- Created: 2024-02-06T08:21:20.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-06T20:03:09.000Z (about 2 months ago)
- Last Synced: 2025-05-07T06:28:56.422Z (about 2 months ago)
- Topics: agentic-workflow, ai, ai-agents, ai-runtime, ai-sandboxes, code-execution, code-interpreter, developer-tools
- Language: TypeScript
- Homepage: https://daytona.io
- Size: 16.2 MB
- Stars: 19,849
- Watchers: 77
- Forks: 2,294
- Open Issues: 38
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
- awesome - daytonaio/daytona - Daytona is a Secure and Elastic Infrastructure for Running AI-Generated Code (Python)
- awesome-repositories - daytonaio/daytona - The Open Source Dev Environment Manager. (Go)
- awesome - daytona - "Enterprise grade", opensource devcontainers! (Infrastructure / Local Development)
- jimsghstars - daytonaio/daytona - The Open Source Dev Environment Manager. (Go)
- awesome-side-project - Pricing
- awesome-github-repos - daytonaio/daytona - Daytona is a Secure and Elastic Infrastructure for Running AI-Generated Code (Python)
- charm-in-the-wild - Daytona - An development environment manager. (_built with Bubble Tea_) (Applications / Cloud and DevOps)
- awesome - daytonaio/daytona - Daytona is a Secure and Elastic Infrastructure for Running AI-Generated Code (Python)
- AiTreasureBox - daytonaio/daytona - 06-19_20544_2](https://img.shields.io/github/stars/daytonaio/daytona.svg)|Daytona is a Secure and Elastic Infrastructure for Running AI-Generated Code| (Repos)
- awesome-starts - daytonaio/daytona - Daytona is a Secure and Elastic Infrastructure for Running AI-Generated Code (ai)
- awesome - daytonaio/daytona - Daytona is a Secure and Elastic Infrastructure for Running AI-Generated Code (Python)
- awesome-ai-agents - Daytona - Generated Code. | (⚙️ Agent Operations / 🚀 Deployment)
- Awesome-LLMOps - Daytona - Generated Code.    (Runtime / Development Environment)
README
[](https://www.daytona.io/docs)

[](https://goreportcard.com/report/github.com/daytonaio/daytona)
[](https://github.com/daytonaio/daytona/issues)

![]()
Run AI Code.
Secure and Elastic Infrastructure for
Running Your AI-Generated Code.
Documentation ·
Report Bug ·
Request Feature ·
Join our Slack ·
Connect on X---
## Installation
### Python SDK
```bash
pip install daytona-sdk
```### TypeScript SDK
```bash
npm install @daytonaio/sdk
```---
## Features
- **Lightning-Fast Infrastructure**: Sub-90ms Sandbox creation from code to execution.
- **Separated & Isolated Runtime**: Execute AI-generated code with zero risk to your infrastructure.
- **Massive Parallelization for Concurrent AI Workflows**: Fork Sandbox filesystem and memory state (Coming soon!)
- **Programmatic Control**: File, Git, LSP, and Execute API
- **Unlimited Persistence**: Your Sandboxes can live forever
- **OCI/Docker Compatibility**: Use any OCI/Docker image to create a Sandbox---
## Quick Start
1. Create an account at https://app.daytona.io
1. Generate a [new API key](https://app.daytona.io/dashboard/keys)
1. Follow the [Getting Started docs](https://www.daytona.io/docs/getting-started/) to start using the Daytona SDK## Creating your first Sandbox
### Python SDK
```py
from daytona_sdk import Daytona, DaytonaConfig, CreateSandboxParams# Initialize the Daytona client
daytona = Daytona(DaytonaConfig(api_key="YOUR_API_KEY"))# Create the Sandbox instance
sandbox = daytona.create(CreateSandboxParams(language="python"))# Run code securely inside the Sandbox
response = sandbox.process.code_run('print("Sum of 3 and 4 is " + str(3 + 4))')
if response.exit_code != 0:
print(f"Error running code: {response.exit_code} {response.result}")
else:
print(response.result)# Clean up the Sandbox
daytona.remove(sandbox)
```### Typescript SDK
```jsx
import { Daytona } from '@daytonaio/sdk'async function main() {
// Initialize the Daytona client
const daytona = new Daytona({
apiKey: 'YOUR_API_KEY',
})let sandbox
try {
// Create the Sandbox instance
sandbox = await daytona.create({
language: 'python',
})
// Run code securely inside the Sandbox
const response = await sandbox.process.codeRun('print("Sum of 3 and 4 is " + str(3 + 4))')
if (response.exitCode !== 0) {
console.error('Error running code:', response.exitCode, response.result)
} else {
console.log(response.result)
}
} catch (error) {
console.error('Sandbox flow error:', error)
} finally {
if (sandbox) await daytona.remove(sandbox)
}
}main().catch(console.error)
```---
## Contributing
Daytona is Open Source under the [GNU AFFERO GENERAL PUBLIC LICENSE](LICENSE), and is the [copyright of its contributors](NOTICE). If you would like to contribute to the software, read the Developer Certificate of Origin Version 1.1 (https://developercertificate.org/). Afterwards, navigate to the [contributing guide](CONTRIBUTING.md) to get started.