Dev Sandbox — AI skill for Claude Code
Run untrusted code and AI agents in isolated Podman containers with krun microVMs.
How to install Dev Sandbox
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open kosmrljt/dev-sandbox and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Dev Sandbox does
Run untrusted code and AI agents in isolated Podman containers with krun microVMs. Network control, SSH, Privoxy proxy — one self-contained bash script.
Alternatives in AI
- Ante — Ghost in your shell 1.9k ★
- Agmsg — Cross-vendor messaging for CLI AI coding agents — let Claude Code, Codex, Gemini & Copilot talk to each other 1.5k ★
- Claude Replay — Convert AI coding agent sessions (Claude Code, Cursor, Codex, Gemini, OpenCode) into self-contained, embeddabl 644 ★
README
dev-sandbox
**Run AI coding agents in isolated Podman containers, optionally with krun microVMs.**
For Linux distributions with Podman support. Developed and tested on Fedora 44.
One self-contained bash script. No dependencies beyond Podman. Configure profiles, build, run — everything in a single file.
Why
AI coding agents need shell access and run arbitrary code. Without isolation:
- An agent can read
~/.ssh/,~/.aws/, browser cookies, API keys - A malicious pip package in
setup.pycan exfiltrate data silently - Prompt injection in a file can instruct the agent to run destructive commands
- You have no visibility into what network connections the agent makes
dev-sandbox runs each agent in its own isolated environment with only the current project directory visible.
What this does **not** prevent: an agent can write to `.git/hooks` and persistent volumes, which execute on the next run. See [docs/SECURITY.md](docs/SECURITY.md).
Quick start
# Install (Fedora/RHEL)
sudo dnf install podman crun-krun
# Install (Ubuntu/Debian)
sudo apt install podman
# Download
curl -o ~/.local/bin/dev-sandbox https://raw.githubusercontent.com/kosmrljt/dev-sandbox/main/dev-sandbox.sh
chmod +x ~/.local/bin/dev-sandbox
# Run from your project directory (only this directory is visible inside the sandbox)
cd ~/my-project
dev-sandbox # with krun (Fedora)
dev-sandbox --no-krun # without krun (Ubuntu or any Linux)
The first run builds images (~1.6 GB, several minutes). Subsequent runs start in seconds. The default profile is configured for Claude Code — edit the script to change.
Once inside, you are in an isolated container:
[claude] /app/my-project--[HASH]$ ← colored prompt shows profile name
- You are user
dev, not your host user - Only your project directory is visible (mounted at
/app/...) - Your home directory, SSH keys, and other host files are not accessible
- pip packages, credentials, and co
Related Skills
Devcontainer Airlock
Secure, layered devcontainers for AI coding agents: the agents work in a workbench with no GitHub token and no
Enclave
Sandbox for running AI coding agents autonomously: isolated, network-restricted, host-safe
Full Stack Chat Application With Multi Platform Clients AI Agent Integration
A Claude Code-style AI agent harness in Python. Uses Ollama + native LLM tool-calling to read/write files and
Devsandbox
Run AI coding agents in a per-project sandbox that keeps your real dev environment. Your shell, mise-managed t
Brood Box
10+ Run AI coding agents (Claude Code, Codex, OpenCode) inside hardware-isolated microVMs with snapshot isolat
Nanoclaw Skills
Official skill marketplace for NanoClaw — a lightweight AI assistant that runs agents in isolated containers.
Related Agents
Docker Sandbox
Isolated autonomous scanning agent — runs in a temporary worktree with restricted Bash access. Requires ROE au
Podman Container Architect
Use this agent when working with containerization tasks that involve Podman, Containerfiles, container lifecyc
Sandbox Runner
Runs untrusted, unfamiliar or agent-written code inside a sealed kosa8 microVM and reports the results, so not