Run Claude Code CLI inside your project's devcontainer with your host configuration automatically mounted.
ccind launches Claude Code inside a repository's devcontainer, automatically:
- Installing the Claude Code CLI in the container
- Mounting your host's
~/.claudedirectory and~/.claude.jsonsettings - Creating symlinks so Claude finds your authentication and configuration
curl -fLsS https://raw.githubusercontent.com/pipmc/claude-code-into-devcontainer/main/install.sh | bash- devcontainer CLI:
npm install -g @devcontainers/cli - Docker
- A project with a
.devcontainerdirectory
# Run in current directory
ccind
# Run in a specific project
ccind /path/to/projectThe first run may take a while as it builds the devcontainer and installs Claude Code.
Run the devcontainer feature tests:
devcontainer features test -f claude-config-mount .-
Start a local Docker registry:
docker run -d -p 5000:5000 registry:2
-
Publish the feature:
./scripts/dev-publish.sh # Or specify a custom registry: ./scripts/dev-publish.sh my-registry.example.com:5000 -
Test with the published feature:
CCIND_CONFIG_MOUNT_FEATURE=localhost:5000/claude-config-mount:latest ccind
| Variable | Description |
|---|---|
CCIND_CONFIG_MOUNT_FEATURE |
Use a published feature instead of local copy (e.g., localhost:5000/claude-config-mount:latest) |