From cc-devcontainer
Troubleshoot devcontainer and Claude Code authentication issues
How this skill is triggered — by the user, by Claude, or both
Slash command
/cc-devcontainer:devcontainer-troubleshootThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Diagnose and fix common devcontainer and Claude Code authentication issues.
Diagnose and fix common devcontainer and Claude Code authentication issues.
Parse the argument to determine what to troubleshoot:
auth or no argument → Check authentication setupcontainer → Check devcontainer statusall → Run all checksauth)Detect which auth method is configured on the host:
Check environment variables:
[ -n "$CLAUDE_CODE_OAUTH_TOKEN" ] && echo "CLAUDE_CODE_OAUTH_TOKEN: set"
[ -n "$ANTHROPIC_AUTH_TOKEN" ] && echo "ANTHROPIC_AUTH_TOKEN: set"
[ -n "$ANTHROPIC_API_KEY" ] && echo "ANTHROPIC_API_KEY: set"
Check platform storage:
macOS:
security find-generic-password -s "Claude Code-credentials" -w 2>/dev/null | jq -r 'keys' 2>/dev/null
Linux:
[ -f ~/.claude/.credentials.json ] && jq -r 'keys' ~/.claude/.credentials.json
[ -f .devcontainer/.env ] && cat .devcontainer/.env | sed 's/=.*/=<redacted>/'
Show which variables are configured (values redacted).
If container is running:
devcontainer exec --workspace-folder . env | grep -E '^(CLAUDE_CODE_OAUTH_TOKEN|ANTHROPIC_AUTH_TOKEN|ANTHROPIC_API_KEY|GH_TOKEN)=' | sed 's/=.*/=<redacted>/'
devcontainer exec --workspace-folder . claude --version
devcontainer exec --workspace-folder . claude /cost 2>&1 | head -5
container)[ -f .devcontainer/devcontainer.json ] && echo "devcontainer.json: exists"
[ -f .devcontainer/Dockerfile ] && echo "Dockerfile: exists"
[ -f .devcontainer/.env ] && echo ".env: exists"
devcontainer exec --workspace-folder . echo "Container is running" 2>&1
devcontainer exec --workspace-folder . which tmux jq claude git gh
devcontainer exec --workspace-folder . tmux list-sessions 2>&1
claude works on host but not in container/devcontainer-init to set up .devcontainer/.envdevcontainer up failsdevcontainer up --workspace-folder . --remove-existing-containerclaude returns auth errorclaude /login, then run /devcontainer-init againtmux or jq not founddevcontainer up --workspace-folder . --remove-existing-containerSummarize findings:
npx 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'.
Debug container agent issues including failures, authentication problems, and sandbox runtime behavior. Covers logs, environment variables, mounts, and common fixes.
Diagnoses and fixes Claude Code setup/runtime issues like API authentication (Anthropic/Bedrock/Vertex), MCP server problems, and config errors using /doctor command, verbose mode, and bash diagnostics.