@@ -8,19 +8,26 @@ Docker-based Claude Code CLI with full development capabilities and host isolati
88# One-line install
99curl -fsSL https://raw.githubusercontent.com/lroolle/claude-code-yolo/main/install.sh | bash
1010
11+ ```
12+
13+
14+ ``` bash
1115# Navigate to your project and run
1216cd ~ /projects/my-project
13- claude-yolo .
17+ claude-yolo
1418```
1519
1620## ⚠️ CRITICAL SAFETY WARNING
1721
22+ Claude will have ** FULL ACCESS** to the current workspace and ALL subdirectories.
23+
24+ Always ` cd ` to a specific project directory first!
25+
1826** NEVER run ` --yolo ` mode in:**
1927- Your home directory (` $HOME ` )
2028- System directories (` / ` , ` /etc ` , ` /usr ` , etc.)
2129- Any directory containing sensitive data
2230
23- Claude will have ** FULL ACCESS** to the current directory and ALL subdirectories. Always ` cd ` to a specific project directory first!
2431
2532## How It Works
2633
@@ -42,21 +49,22 @@ The installer provides two commands:
4249
4350``` bash
4451# YOLO mode (Docker) - recommended
45- claude-yolo . # Run in current directory
52+ claude-yolo # Run in current directory
4653
4754# Using claude.sh for more control
48- claude.sh --yolo . # YOLO mode
49- claude.sh . # Local mode (no Docker)
50- claude.sh --auth-with api-key . # Use API key
51- claude.sh --auth-with bedrock . # Use AWS Bedrock
52- claude.sh --auth-with vertex . # Use Google Vertex AI
55+ claude.sh --yolo # YOLO mode
56+ claude.sh # Local mode (no Docker)
57+ claude.sh --auth-with api-key # Use API key(may have to rerun `/login`)
58+ claude.sh --auth-with bedrock # Use AWS Bedrock
59+ claude.sh --auth-with vertex # Use Google Vertex AI
5360claude.sh --shell # Open shell in container
5461claude.sh --help # Show all options
5562```
5663
5764## Authentication Methods
5865
5966- ** Claude App** (default): Uses ` ~/.claude ` OAuth - ` --auth-with claude `
67+ - Run ` /login ` in claude-code, open the oauth link, then paste the code back in the terminal
6068- ** API Key** : Set ` ANTHROPIC_API_KEY ` environment variable - ` --auth-with api-key `
6169 - If OAuth exists, use ` /login ` in Claude to switch to API key auth
6270- ** AWS Bedrock** : Uses ` ~/.aws ` credentials - ` --auth-with bedrock `
@@ -71,7 +79,7 @@ For GitHub operations (creating PRs, managing repos), set the `GH_TOKEN` environ
7179export GH_TOKEN=" ghp_xxxxxxxxxxxx"
7280
7381# Now gh commands work in containers
74- claude-yolo .
82+ claude-yolo
7583# Inside container: gh pr create, gh issue list, etc.
7684```
7785
@@ -83,17 +91,20 @@ You can mount additional configuration files or directories using the `-v` flag:
8391
8492``` bash
8593# Mount Git configuration
86- claude-yolo -v ~ /.gitconfig:/root/.gitconfig .
94+ claude-yolo -v ~ /.gitconfig:/root/.gitconfig
8795
8896# Mount SSH keys (read-only)
89- claude-yolo -v ~ /.ssh:/root/.ssh:ro .
97+ claude-yolo -v ~ /.ssh:/root/.ssh:ro
98+
99+ # Resume with SSH keys and tracing enabled
100+ claude-yolo -v ~ /.ssh:/root/.ssh:ro --trace --continue
90101
91102# Multiple mounts
92- claude-yolo -v ~ /tools:/tools -v ~ /data:/data .
103+ claude-yolo -v ~ /tools:/tools -v ~ /data:/data
93104
94105# Mount custom tool configs
95- claude-yolo -v ~ /.config/gh:/root/.config/gh .
96- claude-yolo -v ~ /.terraform.d:/root/.terraform.d .
106+ claude-yolo -v ~ /.config/gh:/root/.config/gh
107+ claude-yolo -v ~ /.terraform.d:/root/.terraform.d
97108```
98109
99110** Note** : Volumes mounted to ` /root/* ` are automatically symlinked to ` /home/claude/* ` for non-root user access.
@@ -106,6 +117,21 @@ claude-yolo -v ~/.terraform.d:/root/.terraform.d .
106117- ** Request Tracing** : Debug with ` --trace ` flag using claude-trace
107118- ** Docker Socket** : Optional mounting with ` CLAUDE_YOLO_DOCKER_SOCKET=true `
108119
120+ ## Docker Images
121+
122+ Claude Code YOLO is available from multiple container registries:
123+
124+ ``` bash
125+ # GitHub Container Registry (recommended, primary)
126+ docker pull ghcr.io/lroolle/claude-code-yolo:latest
127+
128+ # Docker Hub (fallback)
129+ docker pull lroolle/claude-code-yolo:latest
130+
131+ # Use specific registry
132+ DOCKER_IMAGE=lroolle/claude-code-yolo claude-yolo
133+ ```
134+
109135## Manual Setup
110136
111137``` bash
@@ -117,7 +143,7 @@ cd claude-code-yolo
117143make build
118144
119145# Run directly
120- ./claude.sh --yolo .
146+ ./claude.sh --yolo
121147```
122148
123149## Inspired by
@@ -126,4 +152,3 @@ make build
126152- ** [ meal/claude-code-cli] ( https://github.com/meal/claude-code-cli ) ** - Containerized Claude Code with ready-to-use Docker setup
127153- ** [ gagarinyury/claude-code-root-runner] ( https://github.com/gagarinyury/claude-code-root-runner ) ** - Root privilege bypass for Claude Code using temporary users
128154- ** [ textcortex/claude-code-sandbox] ( https://github.com/textcortex/claude-code-sandbox ) ** - Full sandbox environment with web UI and autonomous workflows
129-
0 commit comments