Metadata-Version: 2.4
Name: open-daytona
Version: 0.3.1
Summary: open-daytona, a self-hosted Daytona-compatible sandbox pool (rootless gVisor, GPUs included): a one-command local pool, the pool client, the Daytona SDK build-context patch and a Harbor environment
License-Expression: Apache-2.0 AND GPL-2.0-only AND MIT
Project-URL: Homepage, https://github.com/andylizf/open-daytona
Project-URL: Documentation, https://github.com/andylizf/open-daytona/blob/main/docs/daytona-compat.md
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: NOTICE
License-File: client/open_daytona/_bin/licenses/busybox-LICENSE
License-File: client/open_daytona/_bin/licenses/gvisor-LICENSE
License-File: client/open_daytona/_bin/licenses/musl-COPYRIGHT
Provides-Extra: harbor
Requires-Dist: harbor==0.25.0; extra == "harbor"
Requires-Dist: daytona<1,>=0.234; extra == "harbor"
Requires-Dist: pyyaml; extra == "harbor"
Dynamic: license-file

# open-daytona (Python clients)

[open-daytona](https://github.com/andylizf/open-daytona) is a self-hosted sandbox pool that speaks the Daytona API and
runs each sandbox under rootless gVisor, GPU sandboxes included. This package holds a one-node pool and the clients.

- `open-daytona`, a command that runs a one-node pool on this machine (Linux x86_64, unprivileged user namespaces) or
  inside a Slurm allocation:

  ```bash
  pip install open-daytona
  open-daytona up              # prints DAYTONA_API_URL and DAYTONA_API_KEY
  eval "$(open-daytona env)"
  open-daytona status
  open-daytona down
  ```

  On Linux x86_64, pip picks the wheel that bundles gVisor's runsc (patched) and a static busybox, so `up` itself
  downloads nothing and starts on a node without internet (images then come from `--shared-cache`); elsewhere `up`
  downloads runsc and busybox into its state directory on the first run. The bundled programs and their licenses
  (busybox is GPL-2.0; its source is in the wheel) are listed in
  [`NOTICE`](https://github.com/andylizf/open-daytona/blob/main/NOTICE).

  `up` gives sandboxes the allocation's GPUs and its memory less 10% (`--gpus`, `--mem-gb`, `--port`,
  `--state-dir`, `--shared-cache` change that). What each step does: the repository's `docs/quickstart.md`. A pool
  across many nodes runs from a checkout of the repository on Slurm; see its README.
- `open_daytona.harbor.OpenDaytonaEnvironment`: a Harbor environment for a pool. Install with the `harbor` extra and
  run Harbor with it:

  ```bash
  pip install "open-daytona[harbor]"
  open-daytona up && eval "$(open-daytona env)"     # or DAYTONA_API_URL=http://<gateway>:8790/api, DAYTONA_API_KEY=<pool token>
  harbor run -e open_daytona.harbor:OpenDaytonaEnvironment -p <task> -a <agent> ...
  ```

  It is Harbor's Daytona environment with two changes: build contexts upload over plain http, and a task whose
  `docker-compose.yaml` only sizes `/dev/shm` and reserves GPUs runs as one sandbox instead of Docker-in-Docker.
- `open_daytona.daytona_s3_http`: importing it lets the Daytona SDK upload build contexts to a gateway over http.
- `open_daytona.sbxclient`: a standard-library client for the pool's own `/v1` API.
