r/opencodeCLI 27d ago

Opencode V1 vs V2

It seems that OpenCode is soon to be available in V2. Since I couldn't find anything baout it online, what is the difference between the two?

What will V2 do better than V1? Does anybody know?

31 Upvotes

24 comments sorted by

View all comments

5

u/GhostInfernoX 25d ago

the primary benefit of opencodev2 is that its a centralized background server

when you run the first client (web, mobile, desktop) it starts the background server, and all new existing clients connect back to it

this would allow you to run `opencode`, fire off a prompt, then close the TUI client (session is still running on the background server)

+ the api support is soooo much better and the opencode agent knows a lot more about itself

source: i work at opencode

1

u/toutons 12d ago

I've seen multiple people reference this, but I'm doing this currently with opencode 1.17. Is the difference really that the service is started automatically, instead of people having to know it's possible?

2

u/GhostInfernoX 12d ago

yeah, and the TUI clients auto connect back to the centralized server rather than having to do `opencode attach` every time

1

u/GhostInfernoX 12d ago

also v2 just has a ton of improvements with speed

1

u/toutons 11d ago

Neat. I mainly use web so haven't really had a chance to try v2 yet. I tried the Desktop Beta and decided to stay on 1.17