Skip to main content

claude-sandbox

Run Claude Code, Codex or Pi in a container with a bubblewrap sandbox that isolates host credentials and limits access to internal networks.

On a Linux host with uv and rootless Podman:

uv tool install claude-sandbox
cd ~/src/my-project
claude-sandbox

Log in when prompted. Use claude-sandbox codex or claude-sandbox pi to choose another agent. The host needs /dev/net/tun and unprivileged user namespaces; no devcontainer setup is required.

Update with uv tool upgrade claude-sandbox, then claude-sandbox --recreate in each project. Recreation removes container-local packages and forge logins, but retains project files and shared agent settings.

Already inside a Debian/Ubuntu devcontainer? As root, run uvx claude-sandbox install, then claude. That container must expose /dev/net/tun.

The package is the sandbox itself: the host launcher, the installer and the in-container wrapper, in Python with no dependencies beyond the standard library. Its version selects the matching container image. Documentation · Source

Metadata

Release files for claude-sandbox 5.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for claude-sandbox 5.1.0
File Interpreter ABI Platform Actions
claude_sandbox-5.1.0-py3-none-any.whl Python 3 none any Details for claude_sandbox-5.1.0-py3-none-any.whl

Release files / claude_sandbox-5.1.0-py3-none-any.whl

Download URL claude_sandbox-5.1.0-py3-none-any.whl
Size 166.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5912085d07a4ffaa6471ccee0744933258b96faf35c01971be2784d58c3a4953
BLAKE2b-256 checksum
How to use checksums
ba3558143a117c5ef09eca0cd390f475bcc05ecfa61da6e201cc31af2de9d842
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Security for claude-sandbox 5.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

5.1.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page