docker sandbox templates
Enhanced docker sandbox templates for using AI agents in a secure vm-based sandbox
CLI to create devcontainer template for running AI agents in a container
devcc creates devcontainer templates for running AI coding agents in isolated, reproducible environments. Pick a language, pick an agent, and get a ready-to-use .devcontainer/.
pip install devcc
devcc list
Languages:
python Python (default: latest)
node TypeScript / Node.js (default: latest)
Agents:
claude-code Claude Code CLI
codex Codex CLI
copilot Copilot CLI
cursor Cursor CLI
gemini Gemini CLI
Go to your project repository and run:
cd /path/to/your/project
devcc create -l python -a claude-code
This creates a .devcontainer/ folder in your project:
.devcontainer/
├── devcontainer.json # container configuration
├── system-setup.sh # system setup (volume permissions, git-delta)
└── zsh-custom.sh # shell customization (oh-my-zsh, autojump, aliases)
# Pin a specific language version
devcc create -l python:3.11 -a claude-code
# Multiple languages in one container
devcc create -l python,node -a claude-code
# Multiple agents
devcc create -l python -a claude-code,codex
# Language only, no agent
devcc create -l node
# Custom output directory
devcc create -l python -a claude-code -o my-devcontainer
Option A: VS Code
F1 and select Dev Containers: Reopen in ContainerOption B: CLI (using the Dev Container CLI)
# Install the CLI (once)
npm install -g @devcontainers/cli
# Build and start the container
devcontainer up --workspace-folder .
# Open a shell inside the container
devcontainer exec --workspace-folder . zsh
Once inside the container, your agent is ready to use (e.g., run claude for Claude Code).
Every generated container includes:
neo/workspaceValidate devcontainer templates against the official devcontainer JSON schema:
devcc validate .devcontainer
You don't need to validate the devcontainer.json created by devcc. However, if you manually edit the generated devcontainer.json, you can run validation to ensure it remains compliant with the schema.
Leveraging GenAI for Research Software Engineering
Enhanced docker sandbox templates for using AI agents in a secure vm-based sandbox