Find your next open-source project

Search by name, purpose, or keyword, or paste a GitHub URL. Start with / to search agent skills (e.g. /pdf)

andylizf/open-daytona

AI EngineeringSandboxes

Self-hosted gVisor sandboxes for agent RL and code execution on Slurm clusters, compatible with the Daytona Python SDK.

This project ships 2 agent skillsSkill list and install →
211
10
Python
Apache-2.0
4 days old
+52 stars in 24h

What it does

open-daytona turns ordinary Slurm CPU nodes into a pool of isolated Linux sandboxes for agent reinforcement learning and terminal-benchmark workloads. It runs gVisor in rootless mode inside Slurm jobs, so there is no Docker daemon and no root requirement; nodes only need unprivileged user namespaces enabled. A gateway receives HTTP requests and places each sandbox on the least-loaded node, preferring a node that already has the requested image cached.

The client-facing selling point is compatibility: the unmodified official daytona Python SDK (both 0.x and 2.x) works against the gateway, alongside the pool's own /v1 API, a standard-library client and an asyncio adapter for RL harnesses. The project is aimed at agent researchers and infrastructure teams that already have access to a Slurm cluster and want sandbox execution without a hosted service.

Quickstart on one node

Requirements: Linux x86_64 or aarch64 with working unprivileged user namespaces (unshare -Ur true), Python 3.9+ (stdlib only), and tools including curl, bzip2, tar and lz4. Tens of GB of node-local disk are needed.

Install gVisor and start a node daemon plus a gateway:

git clone https://github.com/andylizf/open-daytona.git && cd open-daytona
bash sbxd/install_runsc.sh
mkdir -p ~/.config/open-daytona
(umask 077; python3 -c 'import secrets; print(secrets.token_hex(32))' > ~/.config/open-daytona/token)
python3 -I sbxd/sbxd.py --bind 127.0.0.1 --port 8791 --job-dir ./tmp/job --images-dir ./tmp/images \
    --runsc ./bin/runsc --token-file ~/.config/open-daytona/token --mem-gb 16 --log ./tmp/sbxd.log &
python3 -I gateway/gateway.py --port 8790 --backends 127.0.0.1:8791 &

Then create a sandbox through the Daytona SDK:

pip install daytona
export DAYTONA_V2_API_URL=http://127.0.0.1:8790/api/v2 DAYTONA_API_KEY=$(cat ~/.config/open-daytona/token)
python3 -c 'from daytona import Daytona; s = Daytona().v2.create("python:3.12-slim"); print(s.exec("echo 42").stdout); s.delete()'

The command should print 42. Details for aarch64, SDK 0.x and the smoke test are in the single-node quickstart.

Running a pool on Slurm

Clone the repository onto a filesystem shared by the login and compute nodes, set that path as SBX_HOME, and copy slurm/open-daytona.env.example to $SBX_HOME/open-daytona.env with the target partition and paths. Submit pilot jobs and start the gateway on the registry directory they populate:

slurm/start_pilots.sh 0:64:128 1:64:128 2:64:128 3:64:128
python3 -I gateway/gateway.py --bind <address> --port 8790 --registry-dir $SBX_HOME/registry

Each argument is one pilot job in slot:cores:mem_gb form. The Slurm pool guide covers the full procedure, pilot reload/stop scripts and the reverse-SSH relay for training on a different cluster.

Measured results

Replaying the same 1,536 recorded terminal-agent RL episodes (no model, no GPU) against this repo and Daytona's hosted service, with CPU admission on, gave a median command round trip of 0.070 s versus 0.156 s. In a separate run starting all 1,536 sandboxes at once, the median time from create to ready sandbox was 4.0 s versus 32.1 s. 99 of 104 terminal-agent task reference solutions pass; the 5 failures also fail on Daytona. Setup and measurement details are in the results documentation.

Constraints and known gaps

  • No inbound ports, so preview links are not possible; no Docker-in-Docker, so docker compose tasks are out.
  • No GPU sandboxes.
  • CPU is enforced by pinning cores rather than a quota, so a sandbox can use idle neighbors' cores.
  • The memory limit is polled and can overshoot; fork-heavy workloads need extra memory.
  • Dockerfile support is limited: one FROM stage, some instructions unsupported. Cold image builds take seconds to minutes once per pool (cold builds).
  • On upstream gVisor, Ctrl-C after typed-ahead terminal input raises no SIGINT; the default x86_64 runsc in this repo carries a patch that fixes it (SIGINT note).
  • The gateway is plain HTTP; run it on a trusted network.
  • Some Daytona SDK setters are accepted but not applied, and calls outside the compatibility list are unsupported (SDK notes).
  • Sandbox behavior compared with a cgroup-based hosted service is documented in semantics.

Licensed under Apache-2.0; gVisor itself is fetched as a pinned runsc release rather than vendored (license).

HotRepo's take

open-daytona appeared on HotRepo's new-project list on 2026-11-30 with 106 stars after gaining 5 in an hour-long window, so the recorded traction is early and thin; there is no GitHub daily-rank history or HN discussion to draw on. What stands out is the specificity of its claims: two independent runs with distinguishable setups, a compatibility test against two SDK versions, and a candid gap list. The project solves a real friction point for Slurm-owning teams — sandboxed code execution during RL rollouts without root or Docker — and the unmodified Daytona SDK makes migration cheap. Its practical ceiling, however, is exactly what the gaps describe: no GPU, no inbound ports, polled memory limits, and a plain-HTTP gateway.

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

You might also like

  1. kubernetes-sigs/agent-sandboxA Kubernetes CRD and controller for running stateful, singleton sandboxes with stable identity, aimed at AI agent runtimes and RL workloads.Go4,429
  2. pydantic/montyRuns Python code written by an LLM in a sandbox that has no filesystem, network, or environment variables, and starts in under a millisecond.Rust8,769
  3. TencentCloud/CubeSandboxA hardware-isolated MicroVM sandbox service for AI agents, with sub-60ms cold starts and E2B SDK compatibility.Go13,351
  4. opensandbox-group/OpenSandboxRun AI agents in isolated Docker or Kubernetes sandboxes to execute code, commands, files, browsers and desktops through one API.Python16,743
  5. CodeGeek04/agent-desktop-fleetRun lightweight sandboxed Linux desktops on your own machine and expose computer-use tools to any AI agent via MCP.Go123