Every time I update llm I have to reinstall all plugins, like gemini and ollama. My Gemini key is still saved, as are my aliases for my ollama models, so I don't get why the installed plugins are lost.
Sorry about that! Presumably you're updating via Homebrew? That blows away your virtual environment, hence why the plugins all go missing.
I have an idea to fix that by writing a 'plugins.txt' file somewhere with all of your installed plugins and then re-installing any that go missing - issue for that is here: https://github.com/simonw/llm/issues/575
No, I'm using uv tool just like in that issue. I'll keep an eye on it, at least I know it's not just me.
I'm also using uv tools and fixed it by doing something like this to upgrade:
uv tool install llm --upgrade --upgrade --with llm-openrouter --with llm-cmd ...
Same, but put that in a llm-upgrade.sh because the list was getting quite long :)
Is the double "--upgrade" a typo?
I was running into this too until I started upgrading with
llm install -U llm
instead of
uv tool upgrade llm
(the latter of which is recommended by simonw in the original post)
Thanks! I didn't realize "llm install -U llm" did that. I'll add that to the upgrade docs.