skillfed

daytona

Python SDK for Daytona

daytona v0.204.0 8.9M downloads/30d#1,577 on PyPI
Permissive license Apache-2.0 Active released

What it is and what it does

Daytona is the official Python SDK for Daytona, a managed infrastructure service that provisions isolated sandboxed environments for running AI-generated or untrusted code. The SDK exposes a programmatic interface to create, configure, and manage these sandboxes, along with operations for file I/O, Git integration, process execution, and language server protocol support. It includes both synchronous and asynchronous clients, with 24 runtime dependencies covering HTTP clients (aiohttp, httpx), async utilities (aiofiles, python-socketio), observability (OpenTelemetry), and configuration management (pydantic, python-dotenv).

The package is designed for developers building AI agents, code execution platforms, or applications that need to safely run untrusted code in isolated environments. You authenticate with an API key, instantiate a Daytona client, create sandboxes with optional resource constraints, and then interact with them via methods for code execution, file operations, Git operations, and LSP support. The SDK handles the complexity of remote sandbox lifecycle management and provides both paginated and cursor-based list operations for querying resources.

Use it for:

  • Build AI agent systems that execute generated code safely in isolated sandboxes without risking the host system.
  • Create code execution platforms or playgrounds where users can run untrusted scripts with resource limits and automatic cleanup.
  • Develop integration workflows that clone Git repositories, modify files, and execute code within managed sandbox environments.
  • Implement language server protocol support for remote code editing and completion in sandboxed development environments.
  • Automate testing and validation of generated code by running it in ephemeral, auto-deleted sandbox instances.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Daytona is a Python SDK for managing and interacting with sandboxed computing environments—isolated, on-demand virtual computers that can execute code, run processes, and perform file and Git operations securely.

Yes, with conditions. The package is actively maintained and has low install friction, but it is still in alpha (Development Status :: 3 - Alpha) and requires a Daytona API key and external service access. Install it if you need to programmatically manage sandboxed code execution environments and are comfortable with an alpha-stage SDK. Not suitable if you need a stable, production-grade API or if you cannot rely on external infrastructure.

Install

daytona on PyPI

pip

pip install daytona

uv

uv add daytona

poetry

poetry add daytona

Installing daytona

Before you install

Low install friction with a pure-Python wheel distribution. Actively maintained with a release 3 days ago. Supports Python 3.10 through 3.14, though the package is still in alpha (Development Status :: 3 - Alpha).

License in practice

Licensed under Apache-2.0 (permissive), allowing commercial use, modification, and distribution with minimal restrictions—suitable for most production and proprietary projects.

Quickstart

pip install daytona

from daytona import Daytona, DaytonaConfig

config = DaytonaConfig(api_key="YOUR_API_KEY")
daytona = Daytona(config)
sandbox = daytona.create()
response = sandbox.process.code_run('print("Hello World")')

Requires a valid Daytona API key from the Daytona Dashboard and network access to the Daytona API endpoint.

Verify before relying

  • Performance characteristics and latency of sandbox creation and code execution.
  • Scalability limits (concurrent sandboxes, resource quotas per account).
  • Pricing model and cost implications of sandbox usage.
  • Data residency and compliance certifications for the hosted infrastructure.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (<4.0,>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 24 — Deprecated, aiofiles, aiohttp, daytona-analytics-api-client, daytona-analytics-api-client-async, daytona-api-client, daytona-api-client-async, daytona-toolbox-api-client, daytona-toolbox-api-client-async, httpx, httpx-ws, obstore, opentelemetry-api, opentelemetry-exporter-otlp-proto-http, opentelemetry-instrumentation-aiohttp-client, opentelemetry-sdk, pydantic, python-dotenv, python-multipart, python-socketio, toml, typing-extensions, urllib3, wsproto
Maintenance actively maintained — 3 days since the last release
First released
Downloads 8,920,138/month — #1,577 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: daytona-0.204.0-py3-none-any.whl

Keywords: daytona, sdk

Development Status :: 3 - AlphaIntended Audience :: DevelopersProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Tags

sandbox management sdksecure code execution environmentisolated compute infrastructureai code execution platformremote sandbox provisioning
sandbox-executionai-code-safetyinfrastructure-as-code

More Application Frameworks packages

fastapi

FastAPI is a Python web framework for building…

permissive · top 100 on PyPI

annotated-doc

Provides a way to document function parameters,…

permissive · top 100 on PyPI

textual

Textual is a Python framework for building…

permissive · top 100 on PyPI

typer

Typer builds command-line applications from…

permissive · top 1,000 on PyPI

mcp

Build and connect to Model Context Protocol…

permissive · top 1,000 on PyPI

Werkzeug

Werkzeug is a WSGI utility library providing…

permissive · top 1,000 on PyPI

daytona_api_client

Generated Python API client for Daytona, a…

permissive · top 5,000 on PyPI

daytona_api_client_async

Async Python client for the Daytona API,…

permissive · top 5,000 on PyPI

daytona_sdk

A deprecated alias package that ships identical…

permissive · top 5,000 on PyPI

daytona_analytics_api_client

Generated Python API client for the Daytona…

unclear · top 5,000 on PyPI

daytona_toolbox_api_client_async

An async Python client for the Daytona Toolbox…

permissive · top 5,000 on PyPI

daytona_analytics_api_client_async

Async Python client for the Daytona Analytics…

unclear · top 5,000 on PyPI

langchain-daytona

Integrates Daytona sandboxes with LangChain's…

permissive · top 15,000 on PyPI

prime-sandboxes

Python SDK for creating, managing, and…

permissive · top 15,000 on PyPI

daytona_toolbox_api_client

Auto-generated Python client for the Daytona…

permissive · top 5,000 on PyPI

e2b-code-interpreter

Runs AI-generated or arbitrary Python code in…

permissive · top 5,000 on PyPI