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

TypeScript
99%
Apache 2.0

Mastra Code

AI Code Assistants

29,041

"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
90
Repo Health
73
Technical
65
Dependency
Built with
TypeScript 99%
Updated 5 days ago
TypeScript
92%
Other

n8n

Automation · No Code Platforms

208,437

Code when you need it, UI when you don't — the workflow automation platform built for technical teams who refuse to choose.

View details
95
Repo Health
87
Technical
62
Dependency
Built with
TypeScript 92%
Updated 6 days ago
TypeScript
92%
Other

OpenHands

AI Code Assistants · AI Development

91,695

The self-hosted developer control center for running AI coding agents — locally, in Docker, on VMs, or across cloud backends — with automation workflows for GitHub, Slack, and more.

View details
91
Repo Health
82
Technical
67
Dependency
Built with
TypeScript 92%
Updated 6 days ago
TypeScript
85%
MIT

openwork

AI Assistants · Automation

24,237

OpenWork is a free, open-source desktop app for running AI agent workflows on your own files with 50+ LLMs, extensible skills, and MCP server support — the open-source alternative to Claude Cowork and Codex.

View details
87
Repo Health
89
Technical
67
Dependency
Built with
TypeScript 85%
Updated 5 days ago
TypeScript
93%
MIT

paperclip

AI Agents · Automation

106,667

The open-source control plane that turns a pile of AI agents into an actual company — with org charts, budgets, heartbeats, and governance.

View details
86
Repo Health
78
Technical
68
Dependency
Built with
TypeScript 93%
Updated 5 days ago
TypeScript
96%
Apache 2.0

rakazo

AI Agents · AI Assistants

5,488

An open-source platform for persistent AI teammates that own their own conversations, memory, routines, and computers — self-hosted, model-agnostic, and available on web, desktop, and mobile.

View details
82
Repo Health
91
Technical
70
Dependency
Built with
TypeScript 96%
Updated 6 days ago
TypeScript
92%
Other

Suna

AI Agents

20,306

Turn your company into a git repo — one config, one command center, a workforce of AI agents that runs the real work around the clock.

View details
90
Repo Health
79
Technical
65
Dependency
Built with
TypeScript 92%
Updated 5 days ago
TypeScript
54%
MIT

Superagent

AI Agents · Security

6,771

An open-source SDK that blocks prompt injections, redacts PII and secrets, scans repositories for AI-targeted attacks, and red-teams production agents.

View details
66
Repo Health
66
Technical
74
Dependency
Built with
TypeScript 54%
Python 43%
Updated 2 months ago
Python
71%
Apache 2.0

SurfSense

AI Assistants · Search

16,586

The open-source, unlimited NotebookLM alternative with real-time collaboration, a desktop app, and no vendor lock-in.

View details
88
Repo Health
71
Technical
66
Dependency
Built with
Python 71%
TypeScript 27%
Updated 5 days 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