Run Claude Code autonomously in an isolated Docker container.
Claude Code's --dangerously-skip-permissions flag lets agents act without interruption —
but Anthropic warns you to only use it inside a sandboxed environment. dangerously spins
up that sandbox for you.
- Docker
- Claude Code installed and authenticated on your machine
npm install -g @anthropic-ai/claude-code- Run
claudeonce and complete login before using this tool
``` npm install -g dangerously ```
Navigate to your project folder and run:
``` dangerously ```
Claude Code launches inside an isolated Docker container. File system changes are restricted to your current directory. Your host machine stays safe.
- Runs Claude Code in a fresh Docker container per session
- Mounts your current directory as the working directory
- Passes your Claude credentials from
~/.claude.jsoninto the container - Runs as a non-root user with
--dangerously-skip-permissionsenabled