Registry /
http-networking / daytona-toolbox-api-client
Install & Compatibility
Where this runs
tested against v0.207.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.580s · 32.3MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 3.7s · import 0.538s · 32MB
31MB installed
● package 31MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
DaytonaToolboxApiClient
✓ from daytona_toolbox_api_client import ApiClient
✗ from daytona_toolbox_api_client.client import DaytonaToolboxApiClient
This quickstart initializes the Daytona client using environment variables for authentication and then attempts to list the user's workspaces. Ensure DAYTONA_SERVER_URL and DAYTONA_API_KEY are set.
import os
from daytona_toolbox_api_client.client import DaytonaToolboxApiClient
daytona_server_url = os.environ.get("DAYTONA_SERVER_URL", "")
daytona_api_key = os.environ.get("DAYTONA_API_KEY", "")
if not daytona_server_url or not daytona_api_key:
print("Please set DAYTONA_SERVER_URL and DAYTONA_API_KEY environment variables, or log in via the Daytona CLI.")
else:
try:
client = DaytonaToolboxApiClient(
server_url=daytona_server_url,
api_key=daytona_api_key,
)
# Example: List workspaces
workspaces = client.workspace.list_workspaces()
print("\nYour workspaces:")
if workspaces:
for workspace in workspaces:
print(f"- {workspace.name} (ID: {workspace.id})")
else:
print("No workspaces found.")
except Exception as e:
print(f"Error interacting with Daytona API: {e}")
Debug
Known issues
breakingThe library is pre-1.0 (0.x.x versioning), meaning API stability is not guaranteed between minor versions. Backward-incompatible changes can be introduced frequently without a major version bump.fixAlways review release notes for new versions. Pin exact versions in production environments and test updates thoroughly.
affects: All versions < 1.0.0
breakingError handling was standardized across SDKs in v0.163.0. If you have custom error handling logic, it may need to be updated.fixReview the updated error types and adjust `try-except` blocks accordingly. Refer to the official documentation for the new error structures.
affects: Prior to 0.163.0
gotchaAuthentication primarily relies on environment variables (`DAYTONA_SERVER_URL`, `DAYTONA_API_KEY`) or the CLI `daytona login`. Failure to configure these will result in client initialization errors or failed API calls.fixEnsure `DAYTONA_SERVER_URL` and `DAYTONA_API_KEY` are correctly set in your environment, or pass them explicitly to the `DaytonaToolboxApiClient` constructor.
affects: All versions
gotchaThe client is a thin wrapper around the OpenAPI specification. Direct access to API endpoints (e.g., `client.workspace.list_workspaces()`) relies on the OpenAPI structure and may change if the underlying API definitions are modified.fixConsult the official Daytona API documentation or the client's source code to understand the available methods and their signatures for your installed version.
affects: All versions
Upgrade
Version history
0.207.0latest on PyPI · released Aug 24, 2026
Audit
Dependencies
pydanticrequiredUsed for data validation and serialization of API models.
httpxrequiredHTTP client for making API requests.
python-dateutilrequiredUtility for parsing and handling dates in API responses.