Daytona Python SDK

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

SDK
PyPI
v0.210.0
11stars
Apache License 2.0

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
64/100Good
Development Activity100
Maintenance100
Community20
Maturity16
Momentum20

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation.How we score it →
76/100Good
Architecture76
Code Quality78
Innovation75
Learning Curve74

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 16 apps in this directory

TypeScript
60%
Other

agenta

Developer Tools · Devops · AI Development

4,706

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

View details
91
Repo Health
77
Technical
67
Dependency
Built with
TypeScript60%
Python38%
Updated yesterday
TypeScript
60%
Other

agenta

Developer Tools · Devops · AI Development

4,706

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

View details
91
Repo Health
77
Technical
67
Dependency
Built with
TypeScript60%
Python38%
Updated yesterday
Python
100%
Apache 2.0

Agno

Devops · AI Development · Automation

42,074

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
Python100%
Updated yesterday
Swift
64%
GPL 3.0

cmux

Developer Tools · AI Development

26,845

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
84
Repo Health
81
Technical
72
Dependency
Built with
Swift64%
Rust14%
Updated today
Python
99%
MIT

deepagents

AI Agents · AI Development

29,067

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
Python99%
Updated yesterday
TypeScript
96%

Finance

AI Assistants · Invoicing Finance

895

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

View details
59
Repo Health
62
Technical
70
Dependency
Built with
TypeScript96%
Updated 3 weeks ago
TypeScript
94%
Apache 2.0

flue

AI Agents · Developer Tools

8,141

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

View details
67
Repo Health
82
Technical
73
Dependency
Built with
TypeScript94%
Updated 1 weeks ago
TypeScript
96%
AGPL 3.0

Libra AI

AI Development · No Code Platforms

1,680

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
TypeScript96%
Updated 11 months ago
TypeScript
99%
Apache 2.0

Mastra Code

AI Code Assistants

27,743

"A coding agent that never compacts" — a terminal-based AI coding agent built on the Mastra framework, with Observational Memory instead of context compaction, multi-model support, and OAuth login for Claude Max or ChatGPT Plus.

View details
88
Repo Health
73
Technical
65
Dependency
Built with
TypeScript99%
Updated today

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

Search