Skip to content

Devboxes

Run a repository with its toolchains and coding harness in local Docker or a cluster, with recorded sessions and a persistent workspace.

A devbox runs a repository and its development tools in local Docker or a cluster.

Initialize and start

Sign in with exo login, then initialize from your repository. Local mode requires Docker; cluster mode requires access to an Industric deployment. Initialization detects languages and harness settings and saves the choices in devbox.yaml.

Initialize and start a local devbox:

bash
exo devbox init --runtime local
exo devbox start

For a cluster-backed workspace, initialize it with a deployment instead:

bash
exo devbox init --runtime cluster --deployment my-deployment
exo devbox start

Detach with Ctrl+P, Ctrl+Q and reattach with exo devbox attach. Local --mounted mode shares repository edits directly with the host. Copy mode keeps a separate workspace; save changes held only inside it before recreating the container.

Sessions and movement

Inspect the devbox and its recorded sessions:

bash
exo devbox status
exo devbox sessions

Use exo devbox replay or exo devbox resume with a session ID. To move a devbox to another runtime, use exo devbox mv, for example exo devbox mv --runtime cluster my-deployment.

The platform stores the spec, lifecycle, and recorded event stream, including terminal timing and supported harness transcripts. Devbox records are visible within the organization. Reads require devboxes:read; writes require devboxes:write.

Cluster workspace lifecycle

Cluster devboxes use the Devbox custom resource under autonomic.sh/v1alpha1. The workspace is mounted at /workspace; its PVC survives stop and idle eviction. Explicit removal with exo devbox rm deletes the workspace PVC.

Install the current CRDs and RBAC before restarting the Industric Operator. Existing Sandbox-backed devboxes transition through an explicit stop and start, reusing their workspace PVC. Copy out files from the old container's writable layer first. A custom workspace claim must be retained when creating the replacement resource.

Repository tools

Generated local images include gh; GitLab, Bitbucket Cloud, and Forgejo repositories add glab, bb, or tea. Select an ambiguous self-hosted forge with --git-provider during initialization. Authenticate inside the devbox or explicitly pass credentials through copy.env; choosing a provider does not change network policy.

For pull-request workflows, see Code Review & Composer. For automated tests, see Testboxes.