claude

Installs Claude Code CLI and the anthropic.claude-code VS Code extension, with config persistence across rebuilds.

Current version: 0.2.0 | Claude Code docs

Usage

"features": {
  "ghcr.io/devopsbuildingblocks/devcontainer-features/claude:0": {}
}

With options:

"ghcr.io/devopsbuildingblocks/devcontainer-features/claude:0": {
  "version": "1.5.0"
}

Options

OptionTypeDefaultDescription
versionstringlatestClaude Code version to install

What’s included

  • claude-code CLI installed via devbox global
  • anthropic.claude-code VS Code extension
  • ~/.claude and ~/.claude.json symlinked to a persistent Docker volume

Config persistence

Claude Code stores its configuration, authentication, and conversation history in ~/.claude. This feature mounts a named Docker volume at /mnt/devcontainer-features/claude and symlinks ~/.claude there via a postCreateCommand script. Your Claude auth and settings survive container rebuilds without needing to re-authenticate each time.