Skip to content

opencode go stopped working #50900

Closed as not planned
Closed as not planned

Description

Description

After migrating to the new Console and generating a new oc_s... API key, all opencode-go model requests fail with a 401. The Console log confirms requests hit the gateway but fail at the Go endpoint. The same oc_s key works perfectly on Zen/standard endpoints — only the Go endpoint rejects it.

The old sk-B... key from the legacy Console is no longer viewable or recoverable, so there is no way to use the previous credential.
Steps to reproduce

Have an active OpenCode Go subscription
Generate a new key via Console → Keys (oc_s... format)
Authenticate via opencode auth login
Select any opencode-go model (e.g. mimo-v2.6-flash)
Send a prompt

Expected

Request succeeds — model responds normally.
Actual

TUI error:
json
1
{"message":"litellm.AuthenticationError: AuthenticationError: OpenrouterException - {"error":{"message":"Missing Authentication header","code":401}}","type":"api_error","code":"backend_error"}

Console log (25ms response):
1
2
3
4
5
400 Rejected — xiaomi/mimo-v2.6-flash
Router.ModelNotFound / Model is unavailable.
Endpoint: /inference/go/openai/v1/chat/completions
Product: go
Identity: Service account Legacy:
Key evidence

The same oc_s key works on Zen/standard — mimo-v2.6-flash-free via /inference/openai/v1/chat/completions returns 200, cost $0.00, Product: standard
Old sk-B... key is no longer viewable in Console — "Legacy" identity with "Inference only" label, key shown as sk-B… (redacted, no copy/reveal option)
Switching between Go models does not help — all fail identically
opencode auth list shows the credential is present with correct key length

Environment

Version: 1.18.32
OS: Windows 11
Data dir: ~\.local\share\opencode\ (junction to V:\opencode\share\)
Subscription: OpenCode Go (active, expires in ~4 days)

Plugins

None

OpenCode version

1.18.32

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Windows 10

Terminal

WezTerm PowerShell

Activity

  1. seccentral commented on Sep 23, 2026

    @seccentral

    just subbed to go and cant use it in opengo or in pi , i requested a refund

  2. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions