From cc-devcontainer
Initialize devcontainer with Claude Code authentication for headless agents
How this skill is triggered — by the user, by Claude, or both
Slash command
/cc-devcontainer:devcontainer-initThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Initialize a devcontainer configuration with automatic Claude Code authentication detection.
Initialize a devcontainer configuration with automatic Claude Code authentication detection.
Parse optional arguments:
--name <name>: Custom container name (default: "claude-devcontainer")git rev-parse --git-dir
If not a git repo, initialize it:
git init
Note: Git init runs on HOST because typically the docker host is local and the directory is mounted into the devcontainer.
If .devcontainer/ exists, ask user if they want to:
Run the auth detection script from ../../scripts/detect-auth.sh:
bash <script-path>/detect-auth.sh
The script checks (in priority order):
CLAUDE_CODE_OAUTH_TOKEN - env var, then platform storage:
~/.claude/.credentials.jsonANTHROPIC_AUTH_TOKEN - env var only (enterprise)ANTHROPIC_API_KEY - env var only (API key)If no auth detected, warn user they'll need to configure manually.
mkdir -p .devcontainer
Read and write the template:
.devcontainer/devcontainer.jsonIf --name was provided, update the "name" field in devcontainer.json.
Based on the auth method detected in step 3, add a remoteEnv block to the generated devcontainer.json:
"remoteEnv": { "CLAUDE_CODE_OAUTH_TOKEN": "${localEnv:CLAUDE_CODE_OAUTH_TOKEN}" }"remoteEnv": { "ANTHROPIC_AUTH_TOKEN": "${localEnv:ANTHROPIC_AUTH_TOKEN}" }"remoteEnv": { "ANTHROPIC_API_KEY": "${localEnv:ANTHROPIC_API_KEY}" }If no auth detected, skip this step.
Show:
devcontainer up --workspace-folder . to startnpx claudepluginhub gnnng/cc-kit --plugin cc-devcontainerSets up and launches a Docker devcontainer running Claude Code with --dangerously-skip-permissions for autonomous sandboxed coding without prompts. Triggers on 'yolo' or 'autonomous mode'.
Creates devcontainers with Claude Code, Python/Node/Rust/Go tooling, and persistent volumes for isolated development environments and sandboxed workspaces.
Generates .devcontainer configs for Python/Node/Rust/Go projects with Claude Code plugins, language tooling (uv/fnm), and persistent volumes for isolated dev environments.