Requirements
- Dev Container CLI:
npm install -g @devcontainers/cli - Docker daemon running
- A
devcontainer.jsonin the project
How it works
- Xum creates a git worktree on the host machine
- Runs
devcontainer upto build/start the container - Commands execute inside the container via
devcontainer exec - Deleting the workspace stops the container and removes the worktree
Configuration
Select Dev Container in the workspace creation UI. If your project has multiple configs, choose one from the dropdown. Xum searches these locations:.devcontainer.json.devcontainer/devcontainer.json.devcontainer/*/devcontainer.json(named configs)
Credential sharing
Like the Docker runtime, you can check “Share credentials” to enable git authentication inside the container:- SSH agent forwarding — Your SSH keys work without copying private keys
- Git config — Host
~/.gitconfigis copied into the container - GitHub CLI — If
GH_TOKENis set in project secrets, it’s passed to the container
Filesystem layout
Worktrees live on the host at~/.xum/src/<project>/<workspace>. The Dev Container CLI mounts the worktree at /workspaces/<name> by default, and Xum automatically translates workspace paths between the host and container.
If other tools or scripts require absolute host paths, you can configure both sides to use the same path:
Notes
- The Dev Container runtime button only appears if Xum finds a
devcontainer.jsonin the project.