Claude Cage: Docker Sandbox for Claude Code Security

What Claude Cage Does
A developer on r/ClaudeAI built a Docker container called Claude Cage to address security concerns when using Claude Code. The tool locks Claude into a single workspace folder, preventing it from accessing sensitive files outside that directory.
Security Problem Identified
The developer realized that every shell command Claude Code runs has the same permissions as the user account. This means Claude can read:
- ~/.ssh directory
- ~/.aws credentials
- Browser profiles
- Personal files
- .env files from other projects
How Claude Cage Works
The Docker container restricts Claude to seeing only your code and nothing else. It ships with:
- A claude md that loads every session with security rules including:
- No writing secrets to files
- No force-pushing
- No running destructive commands without confirmation
- A settings.json that blocks dangerous bash patterns
Setup and Development
Setup takes about 2 minutes if you have Docker installed. The developer used Claude Code to help build and polish the tool, and is open to suggestions for additional security rules.
The GitHub repository is available at: https://github.com/jcdentonintheflesh/claude-cage
📖 Read the full source: r/ClaudeAI
👀 See Also

OpenClaw's 'Allow Always' Feature Security Flaws and Safer Alternatives
OpenClaw's 'allow always' approval feature has been the subject of two CVEs this month, allowing unauthorized command execution through wrapper command binding and shell line-continuation bypasses. The deeper issue is how the feature trains users to stop paying attention to security prompts.

Live Dashboard of Exposed OpenClaw Tools
Dashboard showcasing exposed control panels of OpenClaw tools like Moltbot and Clawdbot.

jqwik v1.10.0 Sneaks Prompt Injection That Deletes Code When Used by AI Agents
Johannes Link added a hidden instruction to jqwik v1.10.0 that tells AI coding agents to delete all jqwik tests and code, concealed with ANSI escapes. Claude correctly flags it, but human users may not be so lucky.

OpenClaw User Adds TOTP 2FA After Agent Exposed API Keys in Plain Text
An OpenClaw user created a security skill called 'Secure Reveal' that requires TOTP authentication via Telegram before displaying stored credentials, after their AI agent accidentally leaked API keys and passwords in plain text during a demo.