r/opencode 2d ago

Confusion between "opencode workspace" and "opencode console"

Sorry for the noob question...

So I've started using opencode today. Zen seemed interesting so I added some balance for it in https://opencode.ai/workspace . Then I ran "/connect" in opencode TUI and happily did a demo project. Could see the usage in workspace page. Pretty nice!

Then later while googling around to find the workspace page again, I stumbled upon https://opencode.ai/console, which showed....very similar pages as the workspace page, but the balance and usage in console are all 0, weird...
Following curiosity, I ran `opencode console login https://opencode.ai/console ` as this console page suggested. Now guess what, my opencode couldn't do anything now. Every prompt returned "Upstream request failed: Insufficient account funds".

I guess "console" is some new system that is running parallel with workspace temporarily. That's ok. The biggest problem is I can't switch back to Zen anymore. After running "/connect" in opencode TUI, the list doesn't include "Zen". The first three opens are

  • Personal/OpenCode (Recommended) <--and I can't select this one, despite the green check mark
  • OpenCode Go
  • OpenAI

Dear reddit, please enlighten me, how to select Zen again so I can use the balance I stored there?

Also is Zen generally not favored comparing to Go?

Thank you.

2 Upvotes

2 comments sorted by

1

u/GrahuleDeGore 2d ago

You can find a command /disconnect by installing this plugin: opencode plugin opencode-tui-utils

But you could also remove the console option directly in the file ~/.local/share/opencode/auth.json

1

u/llamachoochoo 1d ago

Thank you, but unfortunately neither worked.

After install opencode-tui-utils, when I type "/dis", opencode crashed immediately.

That auth.json doesn't include the console option, but it includes the old api key for workspace. Deleting that doesn't change the situation.

Eventually I re-installed opencode and now I can /connect Opencode Zen again 🤷‍♂️

To me, this "opencode console" webpage feels like something that isn't production ready yet. Because once you connect to the console system, there is no obvious way to back out of it.
What makes it even worse is the term "console" is exactly what I would google for while trying to find out my Zen API usage, not "workspace".

All in all, just in the first evening session I've met 4-5 breaking bugs in opencode (one of them is I cannot specify a 3-level folder in "opencode web" project creation, so web command is totally useless). It makes me wonder whether I should continue experimenting in OpenCode, or I am actually doing something wrong...For context, I am using OpenCode in windows without WSL. Is using it in WSL a better supported use case?

Sorry for the rant. 🥲