anthropics / anthropics/devcontainer-features

Allow me to install Claude Code locally for devcontainer

Open
#20 0 comments 10 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
303
Forks
60
PR merge metrics
No merged PRs in 30d

Description

I run my devcontainers as the vscode user to minimize blast radius of Claude Code in the devcontainer.

Because of this, the auto update fails to work because claude code is installed globally so the vscode user does not have permissions to update it.

There is a /migrate-installer command that will fix this but if I rebuild the container because of a change, I go back to the old install location and the updater is broken again.

Fix:
Add a `"installAsUser": true` that installs claude code into the same location that /migrate-installer does.

Thanks!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.