Skip to content

Error: 402 Insufficient Balance - opencode-go #27593

Closed as not planned
Closed as not planned

Description

@masc-it

Description

Hello,

I have 98% session usage available, but I have this "402 Insufficient Balance" , specifically with ds4-flash.
If I select another model, it seems to work fine.
jfyi regarding ds4-flash, usage dashboard says I have 74 cents of spend today.

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. github-actions commented on May 14, 2026

    @github-actions
    Contributor

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

    If the problem persists after reviewing those issues, please add your OpenCode version and OS to help with investigation.

  2. msobh13 commented on May 14, 2026

    @msobh13

    same here

  3. natan-olivr commented on May 14, 2026

    @natan-olivr
    Image
    HTTP response error from OpenCode's API: status 402 Payment Required - "{\"error\":{\"message\":\"Insufficient Balance\",\"type\":\"unknown_error\",\"param\":null,\"code\":\"invalid_request_error\"}}"
    
  4. amantix commented on May 14, 2026

    @amantix
    Image
  5. GRAnimated commented on May 14, 2026

    @GRAnimated

    Bad timing I guess.

    Image
  6. wstrother commented on May 14, 2026

    @wstrother

    Same here. My usage page also shows no data even though I've been using it extensively over the past week.

    Image
  7. TheAPIguys commented on May 14, 2026

    @TheAPIguys

    Same issue here. Windows 11 latest ver. user in the powershell terminal latest version. Opencode 1.14.48

    Image Image
  8. masc-it commented on May 14, 2026

    @masc-it
    Author

    it seems to be back.

  9. bu6n commented on May 14, 2026

    @bu6n

    Same here. My usage page also shows no data even though I've been using it extensively over the past week.

    I think usage must be related to "Zen" API calls, so empty if you only use Go

  10. redtux commented on May 14, 2026

    @redtux

    it seems to be back.

    And "MiniMax M2.5 Free" was/is still working, so we could use this for the six minutes that Big Pickle had issues. :-)

  11. bahaa-kallas commented on May 14, 2026

    @bahaa-kallas

    Have the same issue on while on opencode zen billing model (not subscription based). I have 20$ worth of balance too and the current session I was having didn't even reach the limits.

    Image
  12. TheAPIguys commented on May 14, 2026

    @TheAPIguys

    Same issue here. Windows 11 latest ver. user in the powershell terminal latest version. Opencode 1.14.48

    Image Image

    It seems to be back for me:

    Image
  13. KevinArizaga commented on May 17, 2026

    @KevinArizaga

    Have the same issue:

    Image Image
  14. Calandagan commented on May 17, 2026

    @Calandagan

    I see this issue is quite common and it happens often, why is it not permanently patch?

    I saw a post from like a month ago with the same issue and someone from opencode said it was fixed but 1 month later is happening again.

  15. masc-it commented on May 17, 2026

    @masc-it
    Author

    it's probably a passthrough error from whatever provider(r) they're using behind the scenes. I don't see another reason why they wouldn't show a better error message.

    however, I agree, I'm starting to get annoyed by this. it's the only complaint I have regarding opencode-go atm and reason why I am not suggesting this at my company.

    I'm confident they'll be more transparent about this.

  16. RyanChen1997 commented on Jun 5, 2026

    @RyanChen1997

    the same error i encounter.

    Image Image
  17. github-actions commented on Aug 5, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions