Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(opencode): Go limits use the OpenCode Console sign-in #23606

Closedonlydole(GitHub profile, opens in a new tab)wants to merge 9 commits intomain fromrefs/pull/23606/headopened View on GitHub

Showing 3 changed files with 92 additions and 13 deletions (loading 1).

x
0 of 3 viewed, 3 left
5 additions and 4 deletionsdocs/user/usage.mdModified
View file
@@ -156,10 +156,11 @@
​
OpenCode Go reports its session, weekly, and monthly allowance when OpenCode runs locally in
the environment. T3 cannot report limits for external OpenCode servers because their credentials
-belong to the remote server. Limits need an OpenCode Go API key, or an OpenCode Console connected
-in OpenCode with an API key. A Console browser sign-in alone does not report them. You can also add
-your Go API key as `OPENCODE_API_KEY` in the OpenCode instance's **Environment variables**, then
-refresh provider status. Cursor reports
+belong to the remote server. Limits use the OpenCode Console account you signed in to with
+`opencode auth login`, or an OpenCode Go API key. OpenCode renews the sign-in while it runs; if
+limits stop appearing, sign in again. You can also add your Go API key as
+`OPENCODE_API_KEY` in the OpenCode instance's **Environment variables**, then refresh provider
+status. Cursor reports
its monthly allowance, including separate Auto and API usage, for `CURSOR_AUTH_TOKEN` when it is set,
otherwise for the account you signed in with in T3 or set as `CURSOR_API_KEY`, otherwise for the CLI
login. On macOS, this includes the default Keychain login after you enable Cursor usage. Sign-in, API key,
87 additions and 9 deletionspackages/provider-opencode/src/server/status.test.tsModified
View file
@@ -98,7 +98,7 @@
);
​
it.effect(
- "uses the selected public Console key for Go limits, falling back only on auth rejection",
+ "uses the selected public Console credential for Go limits, falling back only on auth rejection",
() =>
Effect.gen(function* () {
const fs = yield* FileSystem.FileSystem;