How to Disable Claude Code Auto-Update

How to Disable Claude Code Auto-Update

To disable Claude Code auto update, add "DISABLE_AUTOUPDATER": "1" inside the env block of your ~/.claude/settings.json file, then restart Claude Code. Run claude doctor and the Auto-updates line should now read disabled (set by env: DISABLE_AUTOUPDATER) instead of enabled.

That one setting stops the background update check, but you can still update by hand with claude update whenever you like. If you need to block every update, including manual ones, use DISABLE_UPDATES instead. Homebrew, WinGet, apt, dnf and apk installs don’t auto-update at all, so they need no setting.

Below, we walk through each method in a real terminal, show where the setting can live, explain how to turn updates back on, and cover the risks of staying on an old version.

Browse all our Claude Code tutorials for more fixes and how-tos.

Tested with Claude Code v2.1.330 on macOS on November 23, 2026. We installed version 2.1.326 with the native installer inside a throwaway home folder, so the working install on our test machine was never touched. We tested on macOS; the Windows and Linux steps follow Anthropic’s official instructions.

Quick Summary

What you wantWhat to setWhereManual claude update
Stop background updatesDISABLE_AUTOUPDATER=1env in a settings file, or your shellStill works
Block every updateDISABLE_UPDATES=1env in a settings file, or your shellBlocked
Fewer, tested updates"autoUpdatesChannel": "stable"Settings file or /configFollows stable
Turn off all nonessential trafficCLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1Settings file or your shellNot tested here
Homebrew, WinGet or Linux packageNothingAlready off by defaultUse your package manager

How Claude Code Auto-Update Works

A native install of Claude Code checks for a new version when it starts and again from time to time while it runs. When it finds one, it downloads and installs it in the background. The new version takes over the next time you start Claude Code.

That is great for most people, since you get fixes and new features without lifting a finger. But there are good reasons to switch it off:

  • A new release broke something in your workflow and you want to stay on a version that works.
  • You are recording a demo or a course and need the screens to look the same every day.
  • Your company tests each version before people use it.
  • You work on a slow or metered connection and prefer to update when you choose.

Before changing anything, check what you have now. Run claude doctor in your shell (not inside a session) and look at the Auto-updates line. On our fresh native install it said enabled, with the update channel set to latest.

claude doctor output on a fresh native install showing Auto-updates enabled and channel latest
A fresh native install: claude doctor shows Auto-updates enabled on the latest channel.

If you want a full tour of that health check, our claude doctor guide explains every line.

Method 1: Disable Claude Code Auto-Update in settings.json

This is the method Anthropic documents, and it is the one we recommend. You add the variable to the env key of your user settings file, which applies to every project you open.

  1. Open ~/.claude/settings.json in any text editor. Create it if it doesn’t exist. On Windows, ~/.claude means %USERPROFILE%\.claude.
  2. Add the env block shown below. If the file already has other keys, add env next to them and keep the JSON valid.
  3. Save the file and start a new Claude Code session.
  4. Run claude doctor and confirm the Auto-updates line says disabled.
{
  "env": {
    "DISABLE_AUTOUPDATER": "1"
  }
}

Here is the exact result in our test. Right after writing the file, claude doctor showed disabled (set by env: DISABLE_AUTOUPDATER).

Terminal showing DISABLE_AUTOUPDATER in settings.json and claude doctor reporting auto-updates disabled
One line in settings.json, and claude doctor reports auto-updates as disabled.

The official setup page describes the same steps, including the doctor check. Settings files are strict JSON, so a trailing comma or a // comment will cause a settings error at the next start.

Claude Code docs Disable auto-updates section with the env DISABLE_AUTOUPDATER JSON highlighted
Anthropic’s setup docs show the same env block for turning off auto-updates.

Not sure where the file lives on your machine? Our post on finding settings.json covers every location, and these settings.json examples show how to combine env with other keys.

Disable auto-update for one project only

Sometimes you only want one project frozen, such as a demo folder. Put the same env block in .claude/settings.local.json inside that project. That file is personal and stays out of git.

We tried it. Inside the project, claude doctor reported auto-updates as disabled. After moving to another folder, the same command said enabled again.

settings.local.json disables auto-updates in one project while another folder still shows enabled
A project-local setting only applies inside that project; other folders still update.

Keep in mind that the background check runs from whatever session is open. If you start Claude Code in a different folder, that session can still update the shared install. For a machine-wide freeze, use the user file instead.

Method 2: Use an Environment Variable in Your Shell

You can also set the variable in your shell. This works well in scripts, CI jobs and containers where you don’t want to touch any settings file.

export DISABLE_AUTOUPDATER=1
claude doctor | grep -A1 'Auto-updates'

To make it stick, add the export line to your shell profile, such as ~/.zshrc on macOS or ~/.bashrc on most Linux systems. On Windows PowerShell, the matching command is $env:DISABLE_AUTOUPDATER = "1" for the current window.

We also tried CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC. The docs say it turns off auto-updates along with telemetry, error reporting, release notes and several other network checks. claude doctor confirmed it, naming that variable as the reason.

Shell exports of DISABLE_AUTOUPDATER and CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC both disable Claude Code auto-updates
Both shell variables turn off auto-updates, and doctor names the one that did it.

Only use the nonessential traffic switch if you want all of those things off. It also stops feature-flag fetching, which makes features such as Remote Control unavailable. Our environment variables guide lists what each variable changes.

DISABLE_AUTOUPDATER vs DISABLE_UPDATES

These two names look alike, but they behave very differently. Picking the wrong one is the most common mix-up we see.

BehaviorDISABLE_AUTOUPDATERDISABLE_UPDATES
Background update checkOffOff
claude updateWorksBlocked
claude install <version>WorksBlocked
Best forDevelopers who update by handCompanies that ship a fixed version

With DISABLE_AUTOUPDATER set, we ran claude update and it still moved our test install from 2.1.326 to 2.1.330. That is the point of this variable: no surprises, but you stay in control.

claude update moves from 2.1.326 to 2.1.330 even with DISABLE_AUTOUPDATER set
With DISABLE_AUTOUPDATER on, a manual claude update still worked.

Then we swapped in DISABLE_UPDATES. Both claude update and claude install 2.1.326 stopped with the message “Updates are disabled by your administrator.” We saw that wording even though we set the variable ourselves.

DISABLE_UPDATES blocks claude update and claude install with an administrator message
DISABLE_UPDATES blocks manual updates and installs too.

The environment variables reference says the same thing in one line: the auto-updater switch leaves manual updates alone, and DISABLE_UPDATES blocks both.

Claude Code environment variables reference row for DISABLE_AUTOUPDATER
The official env var reference entry for DISABLE_AUTOUPDATER.

Which Way to Disable Claude Code Updates Should You Use?

Here is the short version as a picture. Start from what you want, then follow the arrow.

Decision diagram for choosing DISABLE_AUTOUPDATER, DISABLE_UPDATES, the stable channel or package manager installs
Pick the switch that matches your goal.

And here is where the setting can live, from the widest reach to the narrowest. Managed settings from your company sit above everything, and your own files can’t override them.

Diagram of managed settings, project local settings, user settings and shell variables for DISABLE_AUTOUPDATER
The same env key works in several places with different reach.

A softer option: the stable channel

If you mostly want fewer surprises, you may not need to switch updates off at all. Set autoUpdatesChannel to "stable" in your settings file, or pick it in /config under Auto-update channel. The docs say stable serves a version that is typically about one week old and skips releases with major regressions.

{
  "autoUpdatesChannel": "stable"
}

One catch: switching to stable can move a native install down to an older version. To avoid that, the docs suggest also setting minimumVersion to your current version. Our downgrade guide walks through that in detail.

Claude Code Auto-Update on Homebrew, WinGet and Linux

Package manager installs work differently. Homebrew, WinGet, apt, dnf and apk installs do not auto-update by default, so there is nothing to disable. You upgrade them yourself:

  • Homebrew: brew upgrade claude-code or brew upgrade claude-code@latest, depending on which cask you installed.
  • WinGet: winget upgrade Anthropic.ClaudeCode.
  • apt, dnf and apk: use the upgrade commands from Anthropic’s Linux package instructions.

If someone set CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE to 1, Claude Code will run the Homebrew or WinGet upgrade for you in the background. Remove that variable to go back to manual upgrades.

Claude Code docs note that Homebrew, WinGet, apt, dnf and apk installs do not auto-update by default
The docs note that package manager installs don’t auto-update unless you opt in.

Not sure which kind of install you have? claude doctor shows it on the “Running” line. If you find two copies, our duplicate installs fix helps you clean up.

How to Turn Claude Code Auto-Update Back On

Turning updates back on is just as easy. Delete the DISABLE_AUTOUPDATER line (or the whole env block if it has nothing else), remove any export line from your shell profile, and open a new terminal.

claude doctor shows Auto-updates enabled again after removing the env key from settings.json
With the key removed, claude doctor shows auto-updates enabled again.

Then run claude update once to catch up right away instead of waiting for the next background check. If updates still don’t arrive, our not updating fix covers the usual causes.

Risks of Turning Off Updates

Freezing your version is safe for a while, but it has a cost the longer you wait. Here is what to keep in mind:

  • You miss security fixes. The docs remind package manager users to upgrade for “the latest features and security fixes,” and the same applies to a frozen native install.
  • New models may need a newer version. The docs note a newly launched model can require a Claude Code version newer than the stable channel serves.
  • Bug reports get harder. If you report a problem, the first answer is often to update and try again.

Turning off auto-update is a pause button, not a forever setting. Put a reminder on your calendar to update by hand.

Try It Yourself

Practice in a throwaway folder first. Create a test project, add a local settings file, and ask Claude Code to explain what it did. Paste this prompt into a session started in that folder:

Create .claude/settings.local.json in this folder with an "env" block that sets
DISABLE_AUTOUPDATER to "1". Keep the JSON valid. Then tell me which shell
command I should run to confirm auto-updates are disabled, but don't run it.

Approve the file write, exit the session, and run claude doctor in the same folder. You should see the disabled line. Delete the file when you’re done.

Common Mistakes

  • Putting the key at the top level. "DISABLE_AUTOUPDATER": "1" must sit inside "env": { }, not next to it.
  • Using DISABLE_UPDATES on a personal machine, then wondering why claude update says your administrator blocked it.
  • Breaking the JSON with a trailing comma or a comment. Claude Code reports a settings error at the next start.
  • Setting the variable in one terminal tab only. A plain export disappears when you close that window.
  • Expecting a project-local file to freeze the whole machine. Sessions started in other folders can still update.
  • Forgetting that a Homebrew or WinGet install never auto-updated in the first place.

Pro Tips

  • Always confirm with claude doctor. It names the exact setting that turned updates off, which saves guessing.
  • Pair DISABLE_AUTOUPDATER with a weekly habit of running claude update, so you never fall far behind.
  • Read the changelog before a manual update. Our weekly Claude Code roundup sums up what changed.
  • For teams, managed settings beat asking everyone to edit their own file. Admins can also use requiredMinimumVersion and requiredMaximumVersion to keep everyone in a version range.
  • Check the official setup docs after big releases, since update settings can change.

Cheat Sheet

Cheat sheet of settings and commands to disable Claude Code auto-update and update by hand
Every setting and command from this guide on one card.

Frequently Asked Questions

How do I disable Claude Code auto-update?

Add "DISABLE_AUTOUPDATER": "1" inside the env block of ~/.claude/settings.json, or export it in your shell. Then run claude doctor to confirm the Auto-updates line says disabled.

Can I still update Claude Code manually after disabling auto-update?

Yes, as long as you used DISABLE_AUTOUPDATER. In our test, claude update still worked. Only DISABLE_UPDATES blocks manual updates.

Does Claude Code auto-update on Homebrew?

No. Homebrew, WinGet, apt, dnf and apk installs don’t auto-update by default. Run your package manager’s upgrade command, or opt in with CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE on Homebrew and WinGet.

Why does claude update say “Updates are disabled by your administrator”?

DISABLE_UPDATES is set somewhere, either in a settings file, your shell or your company’s managed settings. Remove it from your own files to update again, or ask your IT team if it comes from managed settings.

Is it safe to turn off Claude Code updates?

For a short time, yes. Over months you miss security fixes and may lose access to new models, so update by hand on a regular schedule.

Conclusion

Disabling Claude Code auto-update takes one line: "DISABLE_AUTOUPDATER": "1" in the env block of your settings file, confirmed with claude doctor, while claude update keeps working for when you’re ready. Use DISABLE_UPDATES only when no one should update at all, try the stable channel if you just want calmer updates, and remember that package manager installs never auto-updated to begin with. Whatever you choose, plan regular manual updates so you keep getting fixes, and see our common errors list or our Claude AI overview if you run into anything else.

Newsletter

New AI tools in your inbox

The best new tools and the AI news that matters, in one short email. Unsubscribe any time.

Free · No spam · Unsubscribe any time

✓ Looks like you’re subscribed

Loading Google’s sign-up form…

Looks like you’re already subscribed

Thanks for reading! New AI tools and the AI news that matters will land in your inbox.

Not subscribed yet? Refresh the page to load the sign-up form.

The sign-up form couldn’t load. If you use an ad or content blocker, allow news.google.com and reload the page.

Free instant check before you pay. Takes a few seconds.

Scroll to Top