Skip to content

OpenCode Go CLI OAuth loop - Demands non-existent API Key #50895

Closed as duplicate

Description

@aynuta

Description

Hi OpenCode Team,

I have an active OpenCode Go subscription ($10/month), but I am unable to use the service via the CLI / VS Code terminal environment.

Issue Summary:

  1. When running opencode or npx opencode-ai@latest auth login and selecting OpenCode Go, the CLI fails to complete the OAuth browser callback in my WSL / Windows environment.
  2. Because the OAuth handshake fails, the CLI automatically falls back to prompting for a manual API Key.
  3. However, there is no API Key provided on my opencode.ai account dashboard for the Go subscription.

As a result, I am stuck in an authentication loop where the CLI demands an API key that does not exist in the dashboard.

Could you please either:

  • Provide an API key for my Go subscription, or
  • Help resolve/manually link the OAuth authentication for my account?

My Account Email: aynuta@hotmail.com
Thank you.

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. Tarquinen commented on Oct 20, 2026

    @Tarquinen
    Member

    Thanks for the report! Closing as a duplicate of #50885, which has the answer: #50885 (comment)

    In short: in OpenCode 2.0, run /connect, choose opencode, and pick the workspace that has Go when signing in. Then select a model marked as Go. To use an API key instead, create one under a service account in the console and add it with /connect → opencode go.

    If this still fails on 2.0, please open a new issue with your 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