Claude Code CLI
Anthropic's official command-line tool for agentic coding with Claude.
Usage
{
"features": {
"ghcr.io/hansehart/devcontainer-features/claude-code:3": {}
}
}Version 3.2.0, see the changelog for what changed.
Options
| Option | Default | Description |
|---|---|---|
version | latest | Channel (latest|stable) or an exact version (major.minor.patch). |
stateDir | If set, puts this feature's data at this path, which must be inside the remote user's home. Mount a volume there to persist it across rebuilds. |
Customizations
Open Secure Software Suite
The hosts the tool reaches:
| Host | Ports | Secret | For |
|---|---|---|---|
api.anthropic.com | 443 | ANTHROPIC_API_KEY | Model inference |
platform.claude.com | 443 | Sign-in |
The variables that set its defaults:
| Variable | Value | For |
|---|---|---|
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC | 1 | With 1, telemetry and other optional traffic stay off |
CLAUDE_CONFIG_DIR | ${stateDir} | Claude's config and sessions in the state dir |
The config files it reads:
| File | Path | For |
|---|---|---|
settings.json | ${stateDir}/settings.json | The agent's rules and integrations |
VS Code
The extensions it installs: