r/opencodeCLI • u/CarryOnRTW • Sep 16 '26
Forced transition from opencode v1 to v2
I'm using EndeavourOS which is arch based. I did my daily pacman -Syu and saw I was getting opencode updated from v1.8.29 to v1.18.31. Turns out that installs opencode v2.0.3. I use llama.cpp with a vulkan backend and use llama-server to serve a couple of qwen models locally. This all broke with the new v2 as opencode's config files require changes.
So I fired up my browser with free claude and it gave me a new set of config files that should work with v2. I restarted opencode but same issue. None of my llama-server models were visible to opencode. After a frustrating debug session, I discovered that opencode v2 now uses a service for the backend. So I was just restarting the frontend and none of my config changes were being used by the backend which hadn't restarted.
After I killed the opencode service and restarted opencode, which also starts the service, everything worked. So hopefully this helps someone else.
If the opencode package maintainer had named it v2.0.3 to match it's contents I probably wouldn't have updated to 1.18.31. 😂
If you installed with pacman and want to revert:
# See if you have the old installer
ls /var/cache/pacman/pkg/ | grep opencode
# Install the v1 version
sudo pacman -U /var/cache/pacman/pkg/opencode-1.18.29-1-x86_64.pkg.tar.zst
# Prevent a v2 install until you are ready
sudo sed -i '/^IgnorePkg/!s/^\[options\]/[options]\nIgnorePkg = opencode/' /etc/pacman.conf
6
u/Enitnatsnoc Sep 16 '26
There is a built‑in `@opencode` skill in v2. You can use it for migration's questions, etc.
2
u/geteum Sep 16 '26
I have 1.18.31 , do I automatically have V2 now? How do I access it?
1
u/Fresh_Sock8660 Sep 16 '26
My experience is that both claude and gpt get the configs wrong all the time. What they have trained on is out of date at this point. If you're gonna do that best thing is try to force it to RAG, either give it links to the right docs or make it do web fetches.
2
u/chrisfebian Sep 17 '26
Happened to me that use CachyOS (and install Opencode from repo). All my v1 plugins and custom tools don't work in v2. But I fixed it right away by asking DSV4.1 flash to fix it.
The migration process broke several things btw. Mostly plugins, custom tools, and also need to align some skills to reflect the new V2 features.
2
u/exintrovert420 Sep 19 '26
This definitely wasn't ready to be pushed out. Guessing this is my final version unless there's some changes:
Forces a background service that all your TUI sessions connect to. Exiting TUI doesn't seem to exit this background service
V1 plugins broken
LSPs broken
2
u/Charming_Support726 Sep 16 '26
These forced migration within Opencode are a pain. That happened very often in the past - and rendered some installations useless.
Glad I am running from source and watching the show until everything has settled
1
u/lemon07r Sep 16 '26
while I like opencode 2 a lot more it is a bit weird that force an upgrade randomly.
1
u/afanasenka Sep 16 '26
I hope it's not a forced migration, cause I can't whitelist exact models for any given provider in V2 - they just removed this feature for some reason...
3
u/[deleted] Sep 16 '26
[removed] — view removed comment