AI Agent Sandbox — AI skill for Claude Code
A secure bubblewrap-based sandboxing solution for running Claude Code with strict filesystem isolation.
How to install AI Agent Sandbox
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open janvojt/ai-agent-sandbox and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What AI Agent Sandbox does
A secure bubblewrap-based sandboxing solution for running Claude Code with strict filesystem isolation.
Alternatives in AI
- Anthropic Quickstarts — by Anthropic - Offers comprehensive development guides for three distinct AI-powered demo projects with standa 15.4k ★
- Codex Skill — by klaudworks - Enables users to prompt codex from claude code 914 ★
- Recomby Geo — GEO 领域 AI 员工开源方案 · Open-source GEO AI-employee solution (MIT) 449 ★
README
AI Agent Sandbox Script
A secure bubblewrap-based sandboxing solution for running AI coding agents with strict filesystem isolation.
Features
- ✅ Whitelist-based filesystem access - Only explicitly allowed paths are readable
- ✅ Blacklist protection - Block sensitive files within working directory
- ✅ Full network access - Both local and internet access enabled
- ✅ Configurable environment - Optional
.envfiles and direct variables, no SSH agent access - ✅ Virtualenv support - Optionally expose the active Python virtual environment
- ✅ Working directory isolation - Full read-write only in current directory
Requirements
- bubblewrap - Install with:
- Debian/Ubuntu:
sudo apt install bubblewrap - Fedora:
sudo dnf install bubblewrap - Arch:
sudo pacman -S bubblewrap
- Debian/Ubuntu:
- An AI coding agent - Claude Code or OpenCode are currently supported
Installation
- Make the script executable:
chmod +x ai-agent-sandbox.sh
- (Optional) Move to a directory in your PATH:
sudo mv ai-agent-sandbox.sh /usr/local/bin/ai-agent-sandbox
- Create configuration directory:
mkdir -p ~/.config/ai-agent-sandbox
- Copy and customize the whitelist and blacklist files:
cp whitelist-example.txt ~/.config/ai-agent-sandbox/whitelist.txt
cp blacklist-example.txt ~/.config/ai-agent-sandbox/blacklist.txt
- Edit the files to match your needs:
nano ~/.config/ai-agent-sandbox/whitelist.txt
nano ~/.config/ai-agent-sandbox/blacklist.txt
Usage
Basic usage:
./ai-agent-sandbox.sh
Custom whitelist/blacklist:
# Single custom file (default file is still included)
./ai-agent-sandbox.sh \
--whitelist /path/to/my-whitelist.txt \
--blacklist /path/to/my-blacklist.txt
# Multiple whitelist/blacklist files
./ai-agent-sandbox.sh \
--whitelist ~/shared-whitelist.txt \
--whitelist ./project-whitelist.txt \
--blacklist ~/shared-blacklist.txt \
--blacklist
Related Skills
Mino
Secure sandbox for AI coding agents. Temporary credentials, filesystem isolation, persistent caching.
AI Bwrap
Run AI coding agents (Claude Code, opencode, Grok, ...) inside a bubblewrap sandbox — one wrapper, any agent.
Claude Code Wsl Sandbox
Run Claude Code on Windows inside a real Linux sandbox. WSL 2 + ai-jail (bubblewrap, Landlock, seccomp) so the
Cloister
Run multiple Claude Code accounts & AI agents on one Mac — isolated macOS VMs with secure sandboxing
ReqSolve
Self-hosted, AI-assisted ticketing & request management for organizations — multi-department with strict isola
Agentacl
Access control and sandboxing for AI coding agents on macOS. Stop Claude Code, Codex, Gemini CLI, Copilot CLI
Related Agents
Tauri Security Reviewer
Use when reviewing changes that touch the sandbox boundary or credential handling — path_guard.rs, workspace_p
Junction Sandbox Security
STUB (activates at increment 8). Reviews junction's sandbox/code-execution layer for OS-level isolation correc
Iac
Writes AWS/OpenTofu infrastructure enforcing least-privilege IAM, secure-by-default patterns, environment isol