Skip to content

Comments

feat: Add installAsUser option for user-local Claude Code installation#23

Open
Siddhant-K-code wants to merge 1 commit intoanthropics:mainfrom
Siddhant-K-code:fix/20
Open

feat: Add installAsUser option for user-local Claude Code installation#23
Siddhant-K-code wants to merge 1 commit intoanthropics:mainfrom
Siddhant-K-code:fix/20

Conversation

@Siddhant-K-code
Copy link

Summary

Adds installAsUser option to allow installing Claude Code locally for the current user instead of globally, resolving permission issues with auto-updates when running devcontainers as non-root users.

Fixes #20

Usage

"features": {
    "ghcr.io/anthropics/devcontainer-features/claude-code:1": {
        "installAsUser": true
    }
}

Benefits

  • ✅ No root permissions required for Claude Code updates
  • ✅ Prevents permission errors when running as vscode user
  • ✅ Eliminates need to run /migrate-installer after container rebuilds
  • ✅ Backward compatible (default behavior unchanged)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow me to install Claude Code locally for devcontainer

1 participant