HOW-TO

How to Update Claude Code to the Latest Version

A practical guide to updating Claude Code: how auto-update works, how to update manually via npm, how to check your version, and how to know when a release lands.

By Ian MacCallum··7 min read

If you're wondering how to update Claude Code to the latest version, the good news is that it's usually painless — Claude Code is designed to keep itself current in the background. But there are times when you want to force an update, confirm exactly which version you're running, or fix an install that's stuck on an old release. This guide walks through every reliable path: the built-in auto-update, the manual npm flow, how to verify your version, and how to make sure you never miss a release in the first place. Claude Drops is an independent project and is not affiliated with Anthropic.

How Claude Code updates itself

Claude Code is Anthropic's agentic coding tool that runs in your terminal and integrates with editors like VS Code and JetBrains IDEs. It's distributed as the npm package @anthropic-ai/claude-code, and for most people the short answer to how to update Claude Code is: you usually don't have to do anything. Claude Code generally checks for new releases and updates itself automatically, so the version you launch tomorrow is often newer than the one you launched today.

Releases ship frequently — sometimes multiple times a week — with bug fixes, performance work, and new capabilities. You can see the full history on the Claude Code changelog, which mirrors the official CHANGELOG.md from the anthropics/claude-code repository.

Auto-update behavior can depend on how you installed Claude Code and your environment. In locked-down or CI environments, or with a global package manager that requires elevated permissions, auto-update may be disabled — in which case the manual steps below are what you want.

Check your current Claude Code version

Before you update, it helps to know where you're starting. To check your Claude Code version, ask the CLI directly:

claude --version

This prints the version number Claude Code is currently running. You can also check from inside an interactive session — Claude Code exposes built-in slash commands, including diagnostic ones that surface version and environment details. If you're unsure of the exact command on your build, run /help inside Claude Code to list what's available, since the slash-command surface evolves between releases.

Compare the number you see against the newest entry on the changelog. If they match, you're already on the Claude Code latest version and there's nothing to do. If yours is older, read on.

How to update Claude Code manually

When you want the newest release immediately — instead of waiting for the background updater — the most common path is a global npm install. If you originally installed Claude Code globally via npm, re-running the global install pulls the latest published version:

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

That command installs the newest published version over your existing one. Afterward, confirm it took effect:

claude --version
Some builds of Claude Code also ship a built-in update command you can run from inside the tool. If yours has one, it's the cleanest option because it knows exactly how your copy was installed. Run /help inside Claude Code to see whether an update command is listed for your version.

After updating, fully restart Claude Code — quit the running session and start a new one — so the new binary is loaded. If you have Claude Code open in multiple terminals or an IDE extension, restart those too.

If you installed without npm

Anthropic has offered more than one installation method over time, including native installers and package-manager options beyond npm. If npm install -g doesn't match how you set things up, don't guess — the safest move is to follow the official, current instructions in the Claude Code docs, which always reflect the installation and update flow for the latest release.

Troubleshooting a stuck or failed update

If claude --version still shows the old number after updating, work through these in order:

  • Restart everything. Quit all Claude Code sessions and IDE extensions, then open a fresh terminal. A new binary won't load into an already-running process.
  • Check which binary is on your PATH. Run which claude (macOS/Linux) or where claude (Windows). If two copies are installed from different methods, your shell may be launching the old one.
  • Watch for permission (EACCES) errors during a global npm install. These usually mean your npm global directory needs different permissions or a different prefix. Configuring npm so global installs don't require sudo is the long-term fix — npm's own docs cover this.
  • Confirm Node.js is recent enough. Claude Code requires a reasonably modern Node.js LTS. An outdated Node can block installs or cause odd runtime errors.
  • Reinstall as a last resort. Uninstall with npm uninstall -g @anthropic-ai/claude-code and reinstall fresh if the install is corrupted.
Avoid mixing install methods. If you started with npm, stick with npm; if you used a native installer, use its update path. Two parallel installs are the most common reason an update appears to do nothing — you upgraded one copy while your shell keeps running the other.

How to know when a new version shipped

Knowing how to update Claude Code is only half the battle — the other half is knowing when there's something worth updating for. Because releases are frequent, it's easy to be several versions behind without realizing a feature you'd love already exists. A few ways to stay current:

  1. Read the release notes. Each version on the Claude Code changelog is summarized so you can quickly see new features, fixes, and any breaking changes before you upgrade.
  2. Watch the source. The official CHANGELOG.md on GitHub is the canonical record; you can watch the repo for releases.
  3. Get push notifications. Claude Drops is an iOS app that sends a push the moment a new Claude Code release lands, so you can decide whether to update right away — no manual polling required. Grab it from the app.

For a deeper look at staying current as a daily Claude Code user, see how to stay up to date with Claude Code, and if you want to get more out of the release notes themselves, our guide to reading the Claude Code changelog breaks down how to scan a release in seconds.

Quick reference

GoalCommand / action
Check current versionclaude --version
See available commands/help (inside Claude Code)
Update via npm (global install)npm install -g @anthropic-ai/claude-code
Apply an updateRestart Claude Code, then re-check --version
See what changedBrowse /changelog

That's the whole update loop: check your version, update (auto or via npm), restart, and confirm. Lean on auto-update for the day-to-day, and reach for the manual npm command when you want the newest release right now. When in doubt about exact syntax for your install method, the official Claude Code docs are the source of truth.

Want to never wonder whether you're on the latest build? Browse the Claude Code changelog to see what's new across recent releases, and get the Claude Drops app so the next release pings your phone the moment it ships. (Claude Drops is an independent project, not affiliated with Anthropic.)

IM

Ian MacCallum

Maintainer, Claude Drops

Ian builds Claude Drops and reads every Claude Code release so you don't have to. He writes plain-English guides to Claude Code's features, drawing directly from the official changelog and documentation.

Stay on top of Claude Code

Get notified the moment a new version ships, and browse the full Claude Code changelog.

Get Claude Drops

FAQ

Frequently asked questions

How do I update Claude Code to the latest version?+
Claude Code generally auto-updates in the background, so you're often already current. To force the newest release, re-run the global npm install — npm install -g @anthropic-ai/claude-code — then restart Claude Code and run claude --version to confirm. If you installed with a non-npm method, follow the update steps in the official Claude Code docs at docs.claude.com.
How do I check which version of Claude Code I'm running?+
Run claude --version in your terminal to print the current version number. You can also run /help inside an interactive Claude Code session to find a diagnostic command that shows version and environment details. Compare your number against the newest entry on the changelog to see if you're up to date.
Does Claude Code update automatically?+
In most setups, yes — Claude Code checks for and applies new releases automatically. Auto-update can be limited in locked-down environments, CI, or installs that require elevated permissions for global package updates. In those cases, update manually with npm or your install method's update path.
Why does Claude Code still show an old version after I updated?+
The most common cause is a still-running session loading the old binary, so quit and restart Claude Code (and any IDE extensions) first. Also check for two parallel installs from different methods using which claude or where claude, and watch for npm permission (EACCES) errors during a global install. Mixing install methods is the usual culprit.
How do I find out when a new Claude Code version is released?+
Read the release notes on the Claude Code changelog, watch the official CHANGELOG.md in the anthropics/claude-code GitHub repo, or use the Claude Drops iOS app to get a push notification the moment a new release ships. Claude Drops is an independent project and is not affiliated with Anthropic.