Skip to content

[Bug]: Usage → Limits never reports OpenCode Go for OpenCode 2 Console logins #14983

Description

@BunBnnuy

What happened

Usage → Limits shows only Codex. My OpenCode Go session/weekly/monthly windows never
appear, even though the subscription is active and OpenCode runs locally. The OpenCode
Console shows 2% / 36% / 22% used for the same account.

This is the case deferred in #11783 ("if this is still an issue once V2 lands, please
reopen or open a fresh PR against the new code"). V2 has landed (#14871), so I'm filing
it against the V2 code.

Diagnosis

  • The capability exists and is documented: docs/user/usage.md says "OpenCode Go
    reports its session, weekly, and monthly allowance when OpenCode runs locally in the
    environment." No API-key condition is documented. docs/user/providers-opencode.md
    supports OpenCode 2.0.18+, and [IMPORTANT] Moving from T3 Code Orchestrator V1 to V2 #14871 requires 2.0.18+ for V2.
  • readOpenCodeGoUsageLimits resolves credentials from auth.json ("opencode-go" →
    { type: "api", key }) or OPENCODE_API_KEY only.
  • OpenCode 2 stores a Console login in its SQLite store (opencode.db → credential,
    integration_id = 'opencode', { type: "oauth", access, metadata: { orgID, ... } }),
    not in auth.json.
  • With no resolved credential the probe publishes
    unavailable: { reason: "unsupported" }. The pooled Limits view filters those accounts
    out, so there is no row and no notice.
  • Not a V2 regression: the credential-resolution logic is unchanged from V1; it is a
    coverage gap in the existing feature.

Steps to reproduce

  1. OpenCode 2.0.22, signed in through the OpenCode Console. No opencode-go entry in
    auth.json, no OPENCODE_API_KEY.
  2. T3 Code V2, local OpenCode instance (Server URL empty), provider enabled, refresh
    provider status.
  3. Open Usage → Limits.
  4. Only Codex appears; the OpenCode Go windows never do.
Image

Version

0.0.46-preview.20261002.2598

Environment

Windows 11 Pro (10.0.26200), x64; OpenCode 2.0.22 (@opencode/cli), local instance.

Evidence

  • Before (installed preview build): Usage → Limits shows only Codex, no OpenCode section
    and no notice. [screenshot]
  • Expected values, local prototype: Go · Session 98% left, Go · Weekly 64% left,
    Go · Monthly 78% left. [screenshot — local build of main @ 8ed276c246b6 plus a local
    patch, not a shipped build]
  • OpenCode Console (Zen/Go): Rolling 2% used, Weekly 36% used, Monthly 22% used.
    [screenshot] Used% + left% = 100 for all three windows; reset times match
    (3h 32m / 1d 21h / 21d 18h).
  • With the prototype, server.trace.ndjson shows
    GET https://opencode.ai/console/api/go/status → 200. That is an internal Console
    endpoint, not a documented public API.
  • opencode --version = 2.0.22; auth.json contains no opencode-go entry.

Related issues

Direction

Is the Console-login configuration intended to be covered by the documented behavior?

  • If yes, which mechanism would you prefer: reading the OpenCode 2 credential database
    plus the Console status endpoint (internal/undocumented), requiring/documenting an API
    key for limits, or an upstream/OpenCode-provided endpoint?
  • If no, would you accept a documentation fix stating that Limits requires an API key?

I have a local prototype for the first option but have not opened a PR without direction.
Happy to move this to Ideas if Console-login support is out of scope.

Image Image

Fix applied or workaround

Nothing was changed on the reporting install. Today, limits on main require a Go API key
in auth.json or OPENCODE_API_KEY; that is the only working path.

Filed by

deepseek-v4.1-flash (OpenCode) in T3 Code — in-thread machine investigation, not
npx t3 triage.

Activity

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

    bugSomething is broken or behaving incorrectly.via-triageFiled through npx t3 triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions