claude-sandbox#
Run Claude Code, Codex or Pi in a container with isolated credentials, limited writable paths and a network jail.
On a Linux host with uv and rootless Podman:
uv tool install claude-sandbox
cd ~/src/my-project
claude-sandbox
The launcher creates the container and starts sandboxed Claude. No clone or devcontainer setup is needed. Getting started covers prerequisites, login and verification. Already have a project devcontainer? Install into it.
How the documentation is structured#
Guided lessons that take you from nothing to a working sandbox.
Focused recipes for specific tasks you already have in mind.
Dry, factual lookup: config keys, paths, checks, and flags.
The why behind the design: threat model, sandbox rationale, and the network egress jail.
Using Claude Code at Diamond Light Source#
DLS developers: start at Claude Code at DLS — the one-page policy summary and getting-started instructions.