Daytona Python SDK

The official Python SDK for creating and managing secure Daytona AI code sandboxes

SDK
PyPI
v0.226.1
15 stars
Apache License 2.0

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
66 /100 Good
Development Activity 100
Maintenance 100
Community 24
Maturity 20
Momentum 20

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
76 /100 Good
Architecture 76
Code Quality 78
Innovation 75
Learning Curve 74

Daytona is the official Python client for Daytona, a hosted sandbox platform for running AI-generated code in isolated, elastic “composable computers.” The SDK wraps sandbox lifecycle management (create, snapshot, stop, delete), file system operations, git operations, language server protocol access, and process/code execution behind both synchronous and native async APIs.

It lives in the daytona/clients monorepo alongside SDKs for other languages (Go, Java, Ruby, TypeScript) and the Daytona CLI, all maintained by Daytona Platforms Inc. The daytona PyPI package is the current, actively developed SDK — it supersedes the older daytona_sdk package, which now ships identical code during a deprecation window.

What You Get

  • A Daytona/AsyncDaytona client for creating, listing, and deleting sandboxes
  • Sandbox-scoped APIs for process/code execution, file system operations, and git commands
  • Language server protocol (LSP) access for code intelligence inside a sandbox
  • Ephemeral sandboxes, custom resource limits (CPU/memory/disk), and snapshot-based sandbox creation
  • Object storage and computer-use (GUI automation) helpers alongside the core sandbox API

Common Use Cases

  • Giving an AI agent a secure, isolated place to execute LLM-generated code
  • Spinning up ephemeral sandboxes per user request in a code-execution-as-a-service product
  • Running reproducible dev/test environments from a shared base image or snapshot
  • Automating file, git, and process operations inside a remote sandbox from a Python backend

Under The Hood

Architecture: The SDK lives at sdk-python/ inside the daytona/clients monorepo, structured around a daytona/ package with parallel _sync and _async implementations sharing common models (daytona/common/), plus handle and internal modules wrapping the underlying HTTP/WebSocket API generated from Daytona’s OpenAPI spec (shared across the Go, Java, Ruby, and TypeScript SDKs in sibling directories). Tech Stack: Python 3.10+, built with Poetry, using httpx/httpx-ws/aiohttp for sync/async/WebSocket transport, Pydantic for models, and OpenTelemetry instrumentation baked in for tracing SDK calls. Code Quality: The tests/ directory has 25+ test modules mirroring the sync/async API surface (sandbox, filesystem, git, LSP, process, computer-use, object storage), plus dedicated end-to-end test files (test_e2e.py, test_async_e2e.py); the monorepo enforces per-package licensing via .licenserc.yaml and ships CLA/contribution docs for external contributors. API Design: The SDK mirrors the sync and async surfaces one-to-one (e.g. daytona.create() vs await async_daytona.create()), and models common operations as typed parameter objects (CreateSandboxFromImageParams, Resources) rather than long positional argument lists, keeping the common “create and run code” path to a handful of lines.

Used by 18 apps in this directory

Go
58%
Apache 2.0

agent-orchestrator

AI Agents · AI Code Assistants · Developer Tools

13,536

A local desktop workspace that gives every coding task its own agent, Git branch, and worktree, then tracks tasks, pull requests, CI, and reviews for 27 coding agents on one live Kanban board.

View details
87
Repo Health
83
Technical
67
Dependency
Built with
Go 58%
TypeScript 39%
Updated today
TypeScript
55%
Other

agenta

AI Development · Developer Tools · Devops

4,856

The open-source LLMOps platform unifying prompt engineering, evaluation, and observability for teams building reliable LLM applications.

View details
91
Repo Health
77
Technical
66
Dependency
Built with
TypeScript 55%
Python 40%
Updated today
TypeScript
55%
Other

agenta

AI Development · Developer Tools · Devops

4,856

The open-source LLMOps platform unifying prompt engineering, evaluation, and observability for teams building reliable LLM applications.

View details
91
Repo Health
77
Technical
66
Dependency
Built with
TypeScript 55%
Python 40%
Updated today
Python
100%
Apache 2.0

Agno

AI Development · Automation · Devops

42,874

Build, run, and manage agent platforms with a full production stack — SDK, runtime, and control plane included.

View details
93
Repo Health
87
Technical
66
Dependency
Built with
Python 100%
Updated yesterday
Swift
61%
GPL 3.0

cmux

AI Development · Developer Tools

28,379

A native, Ghostty-based macOS terminal with vertical tabs, agent-aware notifications, and a scriptable browser built for running many parallel AI coding agent sessions instead of juggling tmux panes.

View details
85
Repo Health
81
Technical
68
Dependency
Built with
Swift 61%
Rust 11%
Updated today
Python
99%
MIT

deepagents

AI Agents · AI Development

30,539

The batteries-included Python agent harness — planning, sub-agents, filesystem, shell, memory, and skills bundled in, built on LangGraph.

View details
88
Repo Health
83
Technical
70
Dependency
Built with
Python 99%
Updated today
TypeScript
96%

Finance

AI Assistants · Invoicing Finance

906

Bloomberg-grade financial data and AI-powered analysis through a conversational chat interface you can self-host.

View details
51
Repo Health
62
Technical
69
Dependency
Built with
TypeScript 96%
Updated 1 months ago
TypeScript
94%
Apache 2.0

flue

AI Agents · Developer Tools

8,521

Build autonomous AI agents and powerful workflows with a programmable TypeScript harness that gives any model sessions, tools, sandboxes, and durable execution.

View details
81
Repo Health
82
Technical
69
Dependency
Built with
TypeScript 94%
Updated 1 weeks ago
TypeScript
96%
AGPL 3.0

Libra AI

AI Development · No Code Platforms

1,695

Open-source AI-powered platform that generates and deploys full-stack web applications from natural language prompts, built natively for Cloudflare Workers.

View details
31
Repo Health
71
Technical
68
Dependency
Built with
TypeScript 96%
Updated 1 years ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers