Dev Sandbox
Description
Run untrusted code and AI agents in isolated Podman containers with krun microVMs. Network control, SSH, Privoxy proxy — one self-contained bash script.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
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
Agency Agents
A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy inject
AI Awesome Llm Apps
100+ AI Agents, Agent Skills and RAG Apps - Free and Open Source.
AI Firecrawl
🔥 The API to search, scrape, and interact with the web for AI
AI Artifacts Builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web tech
AI Headroom
Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agen
AI CrewAI
Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewA
AI