OpenCode switching models unbidden #6993

Closed
opened 2026-02-16 18:05:51 -05:00 by yindo · 5 comments
Owner

Originally created by @jrunning on GitHub (Jan 20, 2026).

Originally assigned to: @fwang on GitHub.

Description

I've been using OpenCode for about a week. I've been working in $HOME/projects/my-project. I've been using GLM 4.7 from OpenCode Zen. It's been working great!

However, I just tried to run it in $HOME (instead of a subdirectory) and as soon as I typed a message I got a "No payment method" error, and it appeared to switch to Gemini 3 Pro. (I don't have a payment method set up with OpenCode Zen.)

I tried running it again in the other directory ($HOME/projects/my-project) and it worked again and didn't switch models. I tried a third directory, $HOME/misc, and I got the error again.

Scratch that. After switching directories a couple times I'm getting the error no matter the directory.

Plugins

Superpowers, Beans

OpenCode version

1.1.28

Steps to reproduce

I'm not sure how to reproduce this.

Screenshot and/or share link

https://github.com/user-attachments/assets/0a06d488-c3ad-4519-aa6e-d7fea810674a

Operating System

Ubuntu 24.04

Terminal

ssh in Ghostty

Originally created by @jrunning on GitHub (Jan 20, 2026). Originally assigned to: @fwang on GitHub. ### Description I've been using OpenCode for about a week. I've been working in `$HOME/projects/my-project`. I've been using GLM 4.7 from OpenCode Zen. It's been working great! However, I just tried to run it in `$HOME` (instead of a subdirectory) and as soon as I typed a message I got a "No payment method" error, and it appeared to switch to Gemini 3 Pro. (I don't have a payment method set up with OpenCode Zen.) ~I tried running it again in the other directory (`$HOME/projects/my-project`) and it worked again and didn't switch models. I tried a third directory, `$HOME/misc`, and I got the error again.~ Scratch that. After switching directories a couple times I'm getting the error no matter the directory. ### Plugins Superpowers, Beans ### OpenCode version 1.1.28 ### Steps to reproduce I'm not sure how to reproduce this. ### Screenshot and/or share link https://github.com/user-attachments/assets/0a06d488-c3ad-4519-aa6e-d7fea810674a ### Operating System Ubuntu 24.04 ### Terminal ssh in Ghostty
yindo added the bugzen labels 2026-02-16 18:05:51 -05:00
yindo closed this issue 2026-02-16 18:05:51 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 20, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #7795: i can't use opencode with a「no payment method」 error - Also reports the same "No payment method" error with Zen, though in a different context

Feel free to ignore if your specific case is different.

@github-actions[bot] commented on GitHub (Jan 20, 2026): This issue might be a duplicate of existing issues. Please check: - #7795: i can't use opencode with a「no payment method」 error - Also reports the same "No payment method" error with Zen, though in a different context Feel free to ignore if your specific case is different.
Author
Owner

@jrunning commented on GitHub (Jan 20, 2026):

As far as I can tell this is not a duplicate of the above-linked issue.

@jrunning commented on GitHub (Jan 20, 2026): As far as I can tell this is not a duplicate of the above-linked issue.
Author
Owner

@jrunning commented on GitHub (Jan 20, 2026):

Ah-ha. I ran /connect and re-entered my Zen API key and it's working again.

The behavior still seems like a bug (or, at a minimum, poor UX), though, so I'm going to leave this open for now.

Edit: Apparently I now have to run /connect anew every time I start OpenCode, which is not ideal and definitely a bug.

@jrunning commented on GitHub (Jan 20, 2026): Ah-ha. I ran `/connect` and re-entered my Zen API key and it's working again. The behavior still seems like a bug (or, at a minimum, poor UX), though, so I'm going to leave this open for now. **Edit:** Apparently I now have to run `/connect` anew every time I start OpenCode, which is not ideal and definitely a bug.
Author
Owner

@ebreen commented on GitHub (Jan 21, 2026):

User @huangy-coder confirmed it was the skill called "Superpowers" that caused this issue in issue #9800

I can confirm after i uninstalled Superpowers it works again. Check if you have this skill installed.

@ebreen commented on GitHub (Jan 21, 2026): User @huangy-coder confirmed it was the skill called "Superpowers" that caused this issue in issue #9800 I can confirm after i uninstalled Superpowers it works again. Check if you have this skill installed.
Author
Owner

@jrunning commented on GitHub (Jan 21, 2026):

Yep, @ebreen's advice worked. Thanks!

FWIW there's an issue for this in the Superpowers repo: https://github.com/obra/superpowers/issues/301 Hopefully they'll get it sorted on their end.

Closing.

@jrunning commented on GitHub (Jan 21, 2026): Yep, @ebreen's advice worked. Thanks! FWIW there's an issue for this in the Superpowers repo: https://github.com/obra/superpowers/issues/301 Hopefully they'll get it sorted on their end. Closing.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6993