Skip to content

Error: Token refresh failed: 401 #10909

Closed as not planned
Closed as not planned

Description

@R00tedbrain

Description

cant use open ai, all time getting error Error: Token refresh failed: 401 , start building project after 10minuts building get this error, never work, and im using 0uath from my open ai subscriptions in other apps same here and no getting this problem, never refresh, i close all opej again and noting

Image

Plugins

No response

OpenCode version

1.1.36

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

mac os

Terminal

No response

Activity

  1. github-actions commented on Jan 27, 2026

    @github-actions
    Contributor

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

    Feel free to ignore if your specific case differs from these issues.

  2. wangdian1167 commented on Jan 28, 2026

    @wangdian1167

    The same, reopening opencode also cannot be restored.

  3. R00tedbrain commented on Jan 28, 2026

    @R00tedbrain
    Author

    @wangdian1167 fixed re signin

  4. ladislavsulc commented on Feb 10, 2026

    @ladislavsulc

    Same here, had to log out and log in into OpenAI again.

  5. adinvadim commented on Mar 8, 2026

    @adinvadim

    Yeah, same proble, helps disconnect chatgpt agent and login again

  6. andrej-filip commented on Mar 10, 2026

    @andrej-filip

    Same for me, disconnect and reconnect helped

  7. CameronVigil commented on Mar 20, 2026

    @CameronVigil

    I'm having an issue at authentication. Getting an invalid token error. Are we not able to use Claude Pro with OpenCode anymore?

  8. junereycasuga commented on Mar 20, 2026

    @junereycasuga

    I'm not sure if this is related, but when i try to re-authenticate with Anthropic using Claude Pro/Max as a login method. And i get Failed to authorize after pasting in the authorization code I get back from Anthropic

  9. ownerer commented on Mar 20, 2026

    @ownerer

    Same here, opencode tries to reconnect on its own first, then it gets "Token refresh failed: 429". And when I try a manual reconnect it says "invalid token" when I try to submit the token obtained from the Claude authentication page in the browser.

  10. R00tedbrain commented on Mar 20, 2026

    @R00tedbrain
    Author

    Same here, opencode tries to reconnect on its own first, then it gets "Token refresh failed: 429". And when I try a manual reconnect it says "invalid token" when I try to submit the token obtained from the Claude authentication page in the browser.

    On discord https://discord.gg/24qXtJ8xy
    Some devs published fixeds , join it to ask and help comunity

  11. R00tedbrain commented on Mar 20, 2026

    @R00tedbrain
    Author

    I'm not sure if this is related, but when i try to re-authenticate with Anthropic using Claude Pro/Max as a login method. And i get Failed to authorize after pasting in the authorization code I get back from Anthropic

    Yes antropic killed the old versio to auth please review full isue or join discord chanel some devs published fixed for mac os linux and windows https://discord.gg/24qXtJ8xy
    image

  12. smashah commented on Apr 4, 2026

    @smashah

    why does this happen?

  13. r00tedbrain-backup commented on Apr 4, 2026

    @r00tedbrain-backup

    why does this happen?

    Please read full isue ...

  14. removed
    bugSomething isn't working
    on May 3, 2026
  15. github-actions commented on Jul 6, 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