sorenjan 7 days ago

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.

2
simonw 7 days ago

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

sorenjan 7 days ago

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.

tionis 7 days ago

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 ...

tinodb 6 days ago

Same, but put that in a llm-upgrade.sh because the list was getting quite long :)

johnisgood 7 days ago

Is the double "--upgrade" a typo?

tionis 7 days ago

Yes, autocorrect on my phone worked against me

varyherb 7 days ago

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)

simonw 7 days ago

Thanks! I didn't realize "llm install -U llm" did that. I'll add that to the upgrade docs.