
Anthropic Devcontainer Features
https://github.com/anthropics/devcontainer-features- Category
- Developer Tools
- Rank
- No. 737Tools index
Previous survey · No. 730 ·
- Pricing
- Open Source
- Type
- TOOL
- Builder
- anthropics
- GitHub
- 302 stars
- Date
About
Dev Container features from Anthropic — drop the Claude Code CLI into any devcontainer-aware editor.
What it does
This repository packages Claude Code as a reusable Dev Container feature. During container setup, it checks for Node.js and npm, attempts to install them when missing, installs the command globally through npm, and adds the matching VS Code extension as an editor customization.
Why it's ranked here
The scope is narrow but useful. One feature declaration produces a working command and editor extension, with automated validation and installation checks. The main reservation is reliability signaling: all three test jobs permit failures without failing the workflow.
What's good
It handles common prerequisites instead of assuming a prepared image. Existing Node.js installations, including those managed by nvm, remain usable. Automatic setup covers package managers used by Debian, Ubuntu, Alpine, Fedora, RHEL, and CentOS. Tests verify Node.js, npm, command discovery, and version output.
Tradeoffs
Automatic Node.js installation is explicitly best effort, and unsupported package managers stop that path. The feature exposes no configuration options and always installs the current npm package globally. Its continuous integration matrix directly exercises only Debian and Ubuntu based images, despite broader installer branches. Test jobs also continue after errors.
How to use it well
Use it when a team already standardizes development environments with Dev Containers and wants Claude Code available at container creation. Prefer declaring the official Node.js feature explicitly for predictable setup, or rely on an existing installation. Do not treat this as general container provisioning: its job is one CLI, one editor extension, and prerequisite bootstrapping.
Technical notes+
src/claude-code/devcontainer-feature.json defines an optionless feature, requests the anthropic.claude-code VS Code extension, and declares installation after ghcr.io/devcontainers/features/node. src/claude-code/install.sh detects apt-get, apk, dnf, or yum, installs Node.js and npm when absent, then runs npm install -g @anthropic-ai/claude-code. test/claude-code/test.sh and test/claude-code/basic.sh check prerequisites, command presence, and version output. test/claude-code/scenarios.json covers an Ubuntu devcontainer with the Node.js feature. .github/workflows/test.yaml runs generated, scenario, and global tests, but every test job sets continue-on-error: true. .github/workflows/validate.yaml validates feature metadata, while .github/workflows/release.yaml publishes features and opens documentation update pull requests.
Observed
- License
- MIT License
- Primary implementation
- POSIX shell installer with Bash test scripts
- Packaging
- Dev Container Feature published through GitHub Container Registry
- Install surface
- A devcontainer feature declaration installs the Claude Code CLI globally through npm
- Interface
- Command-line tool exposed as the claude command
- Platform support
- Best-effort prerequisite installation for Debian, Ubuntu, Alpine, Fedora, RHEL, and CentOS
- Configuration surface
- The feature declares no user options
- Repository structure
- Includes automated feature tests, metadata validation, publishing, and generated documentation workflows
Read from README.md, LICENSE, src/claude-code/NOTES.md, test/claude-code/test.sh, src/claude-code/README.md, test/claude-code/basic.sh, src/claude-code/install.sh, .github/workflows/test.yaml, .github/workflows/release.yaml, .github/workflows/validate.yaml, test/claude-code/scenarios.json, src/claude-code/devcontainer-feature.json.
What it can do
Install Claude Code CLI in development containers
Devcontainer configuration → Development environment with Claude Code CLI available
Enable AI code assistance in devcontainer-aware editors
Development container setup → Editor environment with Claude AI integration
Configure development environment for Claude integration
Devcontainer feature specification → Configured development container with Claude tools
Provide AI-powered code generation within containers
Natural language prompts or code context → Generated code suggestions and completions
Add Claude CLI tools to existing development workflows
Existing devcontainer setup → Enhanced development environment with AI capabilities
Tags
Tech Stack
Comments (0)
No comments yet
Editorially curated, with community endorsements as a secondary signal. Corrections welcome.