by PACHAKUTlQ
Claude Code running in sandbox. Packed as single portable executable with no dependency. Has better performance than official version.
# Add to your Claude Code skills
git clone https://github.com/PACHAKUTlQ/ClaudeCageRun the SOTA AI coding agent in a portable, secure sandbox.
Claude Code is a state-of-the-art AI coding assistant. Unfortunately, its CLI is distributed as closed-source and obfuscated javascript. You don't know what it's doing. Is it reading your SSH keys? Is it indexing your photos? Is it planning some Skynet world domination from your ~/Downloads folder?
Probably not... but why risk it?
ClaudeCage solves this by packaging the Claude Code CLI into a fully isolated, single-file container. It cannot access any part of your system except for the single project directory you are currently working in.
Breaking change: the build output is now named
claude(plusclaude.rcfg), so it can act as a drop-in replacement for the originalclaudeCLI (but sandboxed).
claude process is heavily restricted and cannot access your home directory, network information, or other processes.claude binary, the bun runtime, and all dependencies—is packed into a single executable file. Download it, make it executable, and run it.node, bun, or anything else installed on your system./usr, /etc, /opt) are mounted read-only so Claude can use your existing compilers/tools without being able to modify them.ClaudeCage is built using the RunImage project, which leverages Bubblewrap to create lightweight, unprivileged containers. This project provides a simple build script to automate the creation of a custom RunImage container specifically for Claude Code.
Download claude binary and claude.rcfg config file, copy both files to a location in your ${PATH}, like ~/.local/bin/.
First, clone the repository. The build script has no dependencies other than curl and standard ...