News for hackers. Stuff that matters.
Re:Show HN: My LLM CLI tool can run tools now, from Python c... by sorenjan on Tuesday May 27, 2025 @05:28PM (#44110814)
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.
Re:Show HN: My LLM CLI tool can run tools now, from Python c... by simonw on Tuesday May 27, 2025 @05:34PM (#44110846)
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

Re:Show HN: My LLM CLI tool can run tools now, from Python c... by sorenjan on Tuesday May 27, 2025 @05:53PM (#44110965)
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.
Re:Show HN: My LLM CLI tool can run tools now, from Python c... by tionis on Tuesday May 27, 2025 @06:15PM (#44111118)
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 ...

Re:Show HN: My LLM CLI tool can run tools now, from Python c... by johnisgood on Wednesday May 28, 2025 @02:46AM (#44113284)
Is the double "--upgrade" a typo?
Re:Show HN: My LLM CLI tool can run tools now, from Python c... by tionis on Wednesday May 28, 2025 @03:00AM (#44113349)
Yes, autocorrect on my phone worked against me
Re:Show HN: My LLM CLI tool can run tools now, from Python c... by tinodb on Thursday May 29, 2025 @02:02AM (#44123502)
Same, but put that in a llm-upgrade.sh because the list was getting quite long :)
Re:Show HN: My LLM CLI tool can run tools now, from Python c... by varyherb on Tuesday May 27, 2025 @08:40PM (#44111864)
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)

Re:Show HN: My LLM CLI tool can run tools now, from Python c... by simonw on Tuesday May 27, 2025 @09:39PM (#44112097)
Thanks! I didn't realize "llm install -U llm" did that. I'll add that to the upgrade docs.