Installs the Claude Code CLI (@anthropic-ai/claude-code).
"features": {
"ghcr.io/synergy-shock/devcontainer-features/claude:2": {}
}| Options Id | Description | Type | Default Value |
|---|---|---|---|
| version | Select or enter the version of @anthropic-ai/claude-code to install globally. | string | latest |
Debian/Ubuntu-based images. The feature uses apt-get to install curl, ca-certificates, and git, then runs the official installer from https://claude.ai/install.sh.
Claude Code is installed under /usr/local/share/claude ($HOME is redirected during install) so that bind-mounting /home/<remoteUser>/.claude from the host at runtime does not shadow the binaries. A symlink at /usr/local/bin/claude exposes the launcher on PATH without depending on shell rc files.
Bind ~/.claude and ~/.claude.json from the host so login state, project history, and memory survive container rebuilds — no re-authenticating after every Rebuild Container.
Note: This file was auto-generated from the devcontainer-feature.json. Add additional notes to a NOTES.md.
{ "image": "mcr.microsoft.com/devcontainers/typescript-node:24-trixie", "features": { "ghcr.io/synergy-shock/devcontainer-features/claude:2": {} }, "mounts": [ "source=${localEnv:HOME}/.claude,target=/home/node/.claude,type=bind", "source=${localEnv:HOME}/.claude.json,target=/home/node/.claude.json,type=bind" ] }