Skip to content

OpenCode Go is undetected when the key lives only in the cairn-code keyring #40

Description

@euxaristia

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.

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions