Installs the Claude Code CLI globally
"features": {
"ghcr.io/anthropics/devcontainer-features/claude-code:1": {}
}| Options Id | Description | Type | Default Value |
|---|
anthropic.claude-code
This feature requires Node.js and npm to be available in the container. You need to either:
- Use a base container image that includes Node.js, or
- Add the Node.js feature to your devcontainer.json
- Let this feature attempt to install Node.js automatically (best-effort, works on Debian/Ubuntu, Alpine, Fedora, RHEL, and CentOS)
Note: When auto-installing Node.js, a compatible LTS version (Node.js 18.x) will be used.
For most setups, we recommend explicitly adding both features:
"features": {
"ghcr.io/devcontainers/features/node:1": {},
"ghcr.io/anthropics/devcontainer-features/claude-code:1": {}
}If your container already has Node.js installed (for example, a container based on a Node.js image or one using nvm), you can use the Claude Code feature directly without adding the Node.js feature:
"features": {
"ghcr.io/anthropics/devcontainer-features/claude-code:1": {}
}When using with containers that have nvm pre-installed, you can use the Claude Code feature directly, and it will use the existing Node.js installation.
Note: This file was auto-generated from the devcontainer-feature.json. Add additional notes to a NOTES.md.