Skip to content

Upstream request failed: Invalid credential #56646

Closed as not planned
Closed as not planned

Description

@hragixthai-ctrl
No description provided.

Activity

  1. opencode-agent commented on Oct 18, 2026

    @opencode-agent
    Contributor

    Thanks for the report! The issue body is empty, and several different problems produce Upstream request failed: Invalid credential. To tell which one this is, could you share:

    1. Your OpenCode version (opencode --version), your OS, how you installed it, and whether you use the TUI, opencode run, the desktop app or something else.
    2. The provider and model you're using (e.g. opencode/... free models, opencode-go/..., or another provider), and whether every model fails or only some.
    3. How you're authenticated: the output of opencode auth list with keys and emails removed, whether OPENCODE_API_KEY is set (just yes or no, please don't paste the value), and any provider/providers entry in your opencode.json/opencode.jsonc (keys removed), especially a baseURL.
    4. What you did right before the error appeared and when it started (for example, after an update or after opencode auth login/logout).

    You can reply here with the details or edit the issue. If you edit it, please also leave a comment saying you've updated it, so we know you're done.

    These existing issues show the same error. They're ordered from most to least likely, so please check whether one of them already covers your problem:

  2. opencode-agent commented on Oct 21, 2026

    @opencode-agent
    Contributor

    We're closing this for now. The issue only has a title, and we haven't heard back since we asked for your version, provider/model and auth setup. Several different problems cause Upstream request failed: Invalid credential, so we can't tell which one this is without those details.

    If you're still seeing it, these may help:

    If none of these match, reply here with your opencode --version, OS, provider and model, and what you did before the error. We can reopen it then, or you can open a new issue with those details.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions