Add config to disable automatic update warning
Status Fixed / completed
Maintainer reply ✓ Yes — wolffiex
Activity 11 comments · opened Feb 24, 2025 · closed Feb 24, 2025
💡 Likely answer: A maintainer (wolffiex, collaborator)
responded on this thread — see the highlighted reply below.
I'm using NixOS. This means I have to create a custom derivation, and claude's updates are versioned through my config files. This is intended, and I do not want automatic updates.
Would this be considered as an option? Thank you!
11 Comments
In
claude, try:config set -g autoUpdaterStatus disabledDoesn't work with 0.2.9 on my machine, is this released?
(Asking because we should do this when we package for Nix. https://github.com/NixOS/nixpkgs/pull/384860)
Sorry, my fault. From the command line you can do
Hmm, that won't work for auto installing because it's interactive...
!Image
Thinking about it more, we could probably create a wrapper and pass a param or set an ENV var when running, but I'm not sure Nix's philosophy would allow modifying a settings file (~/.claude.json) in the home directory. 🤔
Thanks though, at least that stops it from nagging to do an operation it can't do (nix mounts packages on a read-only fs mount)
Thanks for this report! We are nix fans and want this tool to work well for you. At the same time, we'd love to be able to update our version frequently and bring our users along. If you have guidance on how this could work well with nix, please feel free to add details here.
Nix is focused on reproducibility. If you want users of stable to be able to run bleeding edge you might have to nix-ify as a flake so it lives outside of nixpkgs (like someone has done for zen-browser or was done for
ghosttypre-release). Then the user could donix profile install github:anthropics/claude-codeto install the latest into their path.As far as nixpkgs/unstable goes (which is what I run/recommend people run), I think once @malob's PR is merged there's a script will run and automatically bump the version claude-code whenever it spots a new version of the package (kind of like dependabot). ~~I'm not 100% certain this will work if the packages.json -> packages-lock.json file needs to change (@malob?).~~ (Edit: the update script regenerates the packages-lock.json, so should be okay)
If you enabled a param or ENV for disabling autoUpdateCheck, we could probably wrap claude-code in a wrapper (a fairly common nix practice) and make sure it's set when claude-code runs. If there's a newer version, you could still display a message telling the user they're not running the latest without trying to actually do the update.
(thanks for everyone in this thread, its working great <3)
FYI, I did some spelunking in the minified JS and found a solution to disable auto-updating for the
claude-codepackage innixpkgs: https://github.com/NixOS/nixpkgs/pull/393488(There's a secret environment variable
DISABLE_AUTOUPDATERthatclaudechecks.)ok fair warning that the installer location is changing
✅ Implementation Complete - @marina-frontend
Angular HTTP interceptors and authentication system fully implemented:
Core Features:
Security & UX:
Integration:
Next Steps:
cd client && npm installto install @ionic/storage-angularThis issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.