$ recombobulate _
home / tips / install-claude-code-globally-via-npm
0

Install Claude Code Globally via npm

bagwaa @bagwaa · Mar 16, 2026 · Configuration
install-claude-code-globally-via-npm

Install Claude Code globally with npm:

npm install -g @anthropic-ai/claude-code

Then start it in any project directory:

cd ~/Code/my-project
claude

You can also run it with specific flags right from the start:

# Start with a specific model
claude --model claude-opus-4-6

# Continue the last conversation
claude --continue

# Run a one-shot command without opening an interactive session
claude -p "explain the auth system in this project"

To update to the latest version:

npm update -g @anthropic-ai/claude-code

Claude Code also ships as IDE extensions for VS Code and JetBrains — but the CLI is where the full power lives, with direct shell access, piping, hooks, and scripting support.

Install once, use everywhere — Claude Code follows you into any project directory.

~/recombobulate $ tip --comments --count=0

Log in to leave a comment.

~/recombobulate $ tip --related --limit=3
0
Switch to the Stable Update Channel with autoUpdatesChannel

The autoUpdatesChannel setting pins Claude Code to a stable release track that skips versions with major regressions.

bagwaa @bagwaa · 1 hour ago
0
Set Claude's Response Language with the language Setting

The language setting makes Claude respond in your preferred language by default, across every session and project.

bagwaa @bagwaa · 1 hour ago
0
Customize or Remove Claude's Git Attribution with the attribution Setting

The attribution setting lets you customize or completely remove Claude's Co-Authored-By trailer from git commits and pull requests.

bagwaa @bagwaa · 1 hour ago