You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Usage → Limits never reports OpenCode Go for OpenCode 2 Console logins #14983
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
OpenCode 2.0.22, signed in through the OpenCode Console. No opencode-go entry in auth.json, no OPENCODE_API_KEY.
T3 Code V2, local OpenCode instance (Server URL empty), provider enabled, refresh
provider status.
Open Usage → Limits.
Only Codex appears; the OpenCode Go windows never do.
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.
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.
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.
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
docs/user/usage.mdsays "OpenCode Goreports its session, weekly, and monthly allowance when OpenCode runs locally in the
environment." No API-key condition is documented.
docs/user/providers-opencode.mdsupports OpenCode 2.0.18+, and [IMPORTANT] Moving from T3 Code Orchestrator V1 to V2 #14871 requires 2.0.18+ for V2.
readOpenCodeGoUsageLimitsresolves credentials fromauth.json("opencode-go"→{ type: "api", key }) orOPENCODE_API_KEYonly.opencode.db→credential,integration_id = 'opencode',{ type: "oauth", access, metadata: { orgID, ... } }),not in
auth.json.unavailable: { reason: "unsupported" }. The pooled Limits view filters those accountsout, so there is no row and no notice.
coverage gap in the existing feature.
Steps to reproduce
opencode-goentry inauth.json, noOPENCODE_API_KEY.provider status.
Version
0.0.46-preview.20261002.2598
Environment
Windows 11 Pro (10.0.26200), x64; OpenCode 2.0.22 (
@opencode/cli), local instance.Evidence
and no notice. [screenshot]
Go · Monthly 78% left. [screenshot — local build of
main @ 8ed276c246b6plus a localpatch, not a shipped build]
[screenshot] Used% + left% = 100 for all three windows; reset times match
(3h 32m / 1d 21h / 21d 18h).
server.trace.ndjsonshowsGET https://opencode.ai/console/api/go/status→ 200. That is an internal Consoleendpoint, not a documented public API.
opencode --version= 2.0.22;auth.jsoncontains noopencode-goentry.Related issues
different provider.
auth.json/env.Direction
Is the Console-login configuration intended to be covered by the documented behavior?
plus the Console status endpoint (internal/undocumented), requiring/documenting an API
key for limits, or an upstream/OpenCode-provided endpoint?
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.
Fix applied or workaround
Nothing was changed on the reporting install. Today, limits on
mainrequire a Go API keyin
auth.jsonorOPENCODE_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.