The `daytona-api-client-async` library provides an asynchronous Python client for interacting with the Daytona platform. Daytona offers a secure and elastic infrastructure for running AI-generated code within isolated development environments called sandboxes. This client enables programmatic management of these sandboxes, including creation, code execution, and lifecycle operations. The library is part of the larger Daytona SDK ecosystem, which receives frequent updates, often multiple times a week.
pip install daytona-api-client-asyncVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to initialize the asynchronous Daytona client, create a sandbox, execute a simple command within it, and then delete the sandbox. It assumes `DAYTONA_API_KEY` is set as an environment variable or passed explicitly.
Refer to the official migration guide for v0.21.0. Update sandbox creation parameters (`CreateSandboxParams` is now split), utilize the new `SnapshotService`, and adjust for flattened Sandbox object properties.
Always use `from daytona import AsyncDaytona, DaytonaConfig` for the high-level SDK. If `pip install daytona-api-client-async` was explicitly chosen, be aware that you might be using a lower-level component than the primary SDK documented on daytona.io/docs. The recommended installation for the full SDK is `pip install daytona`.
Set the `DAYTONA_API_KEY` environment variable (e.g., `export DAYTONA_API_KEY="your_key_here"`) or pass it directly to `DaytonaConfig(api_key="your_key_here")` during client initialization.
Use the `api_url` parameter instead of `server_url` for configuring the Daytona API endpoint. Example: `DaytonaConfig(api_url="https://app.daytona.io/api")`.
No dependency data recorded yet.