A containerized sandbox for running Claude Code with automatic environment management and tmux integration.
- Docker-based environment with Node.js LTS
- Pre-installed Claude Code CLI
- Automatic tmux session management
- Environment variable configuration for API access
- Automatic container cleanup on session end
The easiest way to use DevBox is with the provided launch script:
# Launch for current directory
./devbox
# Launch for specific project directory
./devbox ~/path/to/your/project
# The script will:
# - Create a tmux session named "claude-{project-name}"
# - Start a Docker container with your project mounted
# - Automatically launch Claude Code
# - Clean up the container when you exit the session- Build the Docker image:
docker build --no-cache -t devbox:latest .- Run the container:
docker run -d --rm --name devbox --env-file .env -v /host/volume/directory:/sandbox/project-name devbox- Exec into the container:
docker exec -it devbox /bin/shThis repository includes a GitHub Actions workflow that automatically monitors the @anthropic-ai/claude-code npm package for updates and rebuilds the Docker image when updates are detected.
The workflow:
- Runs every 6 hours or can be triggered manually
- Checks for new versions of
@anthropic-ai/claude-codeon npm - If a new version is detected, it:
- Updates the Dockerfile with the new version
- Builds and publishes the Docker image to GitHub Container Registry (GHCR)
- Commits and pushes the updated Dockerfile to the repository
Images are published to:
ghcr.io/divsmith/devbox:latestghcr.io/divsmith/devbox:VERSIONghcr.io/divsmith/devbox:COMMIT_SHA