Claude Code config
Claude Code Sandbox
macOS sandbox-exec config for Claude Code that restricts filesystem READ access for enhanced security
Install
git clone https://github.com/neko-kai/claude-code-sandbox.gitFrom the README
Claude Code Sandbox
A macOS sandbox configuration for Claude Code that restricts filesystem READ access for enhanced security.
Just about all sandbox-exec attempts for claude you'll find on GitHub allow full filesystem read access and full network access – all they protect against is file overwrites. But that's not very secure - prompt injection could leak data from all over your filesystem if claude can read it.
This project provides a macOS sandbox-exec profile that limits claude's access to your filesystem. It prevents Claude Code from reading your home directory (except for the current working directory) and restricts writes to only the target directory and temporary locations.
Features
- Restricted Read Access: Blocks reading from file system except for:
- Current working directory (TARGET_DIR)
- Git configuration files (.gitconfig, .config/git)
- System directories (/usr, /bin, /opt, /var, /nix, /etc, /System, /Library/Java)
- It allows _listing_ directories leading up to TARGET_DIR, because otherwise claude will glitch and set PATH to "" for agent.
However, even though files in ~ can be listed with ls by claude, they (and their metadata) cannot be read
- Restricted Write Access: Only allows writing to:
- Current working directory (TARGET_DIR)
- Temporary directories (/tmp, /var/folders)
- Cache directory (~/.cache)
- Claude, Gemini & Codex configuration (~/.claude, ~/.gemini, ~/.codex)
- Network Access: Full network access enabled (required for Claude API)
- Keychain Access: Allows reading from macOS Keychain for API key storage
Installation
Manual Installation (Without Nix)
Run the installation script:
This will:
1. Concatenate the default sandbox profile noread.sb and claude-sandbox script together to make the script…Details
- Repository
- neko-kai/claude-code-sandbox
- Type
- Config & memory
- Language
- Shell
- Last updated
- 23 September 2026
FAQ
What is Claude Code Sandbox?
macOS sandbox-exec config for Claude Code that restricts filesystem READ access for enhanced security It is a config for Claude Code, from neko-kai/claude-code-sandbox on GitHub.
How do I install Claude Code Sandbox?
Clone neko-kai/claude-code-sandbox from GitHub and follow the setup steps in its README.
Is Claude Code Sandbox popular?
neko-kai/claude-code-sandbox has 63 GitHub stars and 10 forks. It was last updated on 23 September 2026.
More config & memory
Orb
65KarryViber/Orb
Self-evolving AI agent framework — wraps Claude Code CLI with persistent memory, multi-profile isolation, and messaging platform integration
Easy Coding Agents
56yushui2022/easy-coding-agents
One of the early China-built lightweight Claude Code-inspired terminal coding agents, with autonomous execution, tool calling, custom agents, task control, and evidence-gated memory.
Faf CLI
43Wolfe-Jam/faf-cli
The context every AI coding agent reads — authors AGENTS.md, CLAUDE.md, GEMINI.md & .cursorrules from your repo's real stack. IANA-registered .faf format.
cc-rig
34runtimenoteslabs/cc-rig
Project setup generator that produces a fully configured Claude Code project with CLAUDE.md.
Clipaste
64hqhq1025/clipaste
Screenshot clipboard paste fix for Claude Code, Codex & Cursor — works on macOS, SSH remote, WSL2. Tiny background daemon (9 MB RAM, 0% CPU), zero config.
Claude Code
61Esonhugh/claude-code
基于 2.1.88 版本自维护的开源 Claude Code Cli,甚至支持 OpenAI 订阅和使用 Codex Apps
Browse the most popular Claude Code mods, all config & memory, or the skills and MCP server directories.