limits status reports no OpenCode Go usage on a machine where OpenCode Go is authenticated in cairn-code.
opencode_key() in src/fetch.rs resolves the key from the config file and the OPENCODE_GO_API_KEY / OPENCODE_API_KEY environment variables only. cairn-code sets neither: it persists the key in the OS credential store under service cairn-code, account opencode-go. The provider therefore reports as unconfigured even though a CLI on the same machine holds a working key.
The upstream opencode CLI keeps its own copy in auth.json under its data directory, which is likewise unread.
Expected: limits reads the OpenCode Go key from the local stores the way it already reads Claude, Codex, Grok, Gemini, and Antigravity credentials.
limits statusreports no OpenCode Go usage on a machine where OpenCode Go is authenticated in cairn-code.opencode_key()insrc/fetch.rsresolves the key from the config file and theOPENCODE_GO_API_KEY/OPENCODE_API_KEYenvironment variables only. cairn-code sets neither: it persists the key in the OS credential store under servicecairn-code, accountopencode-go. The provider therefore reports as unconfigured even though a CLI on the same machine holds a working key.The upstream
opencodeCLI keeps its own copy inauth.jsonunder its data directory, which is likewise unread.Expected:
limitsreads the OpenCode Go key from the local stores the way it already reads Claude, Codex, Grok, Gemini, and Antigravity credentials.