pub fn credential_key() -> Option<String>Expand description
The Go credential opencode itself is using.
v2 keeps provider credentials in the store’s credential table; auth.json
is the legacy v1 file. Reading the file alone produced a dashboard that said
api_key_expired while Go inference worked: /connect had written the
replacement key to the store, and the file still held the superseded one.
opencode-go is the Go subscription and opencode is Zen — the same
account, and the endpoint answers an entitlement refusal for a Zen key
rather than silence, which is more useful than no key at all.