Cohere is API-token based. No browser cookies. No usage quota – shows model availability only.
Data sources + fallback order
- API token (single source, one fetch strategy).
Credentials
Token resolution order:
- Keychain token (stored from Preferences).
- Environment variable
COHERE_API_KEY.
Keychain location
- Service:
com.sriinnu.athena.Runic.provider-credentials.v2 - Account:
cohere-api-token
API endpoints
GET https://api.cohere.ai/v1/models- Headers:
Authorization: Bearer <token>Content-Type: application/json
Parsing + mapping
- Response: model records read from both
models[]anddata[]fields (combined). - Each record: model ID resolved from
idorname(first non-nil, trimmed). - Snapshot:
usedPercent: 0,hasKnownLimit: false. The snapshot surfaces a model count and a preview of the first 3 model names in the reset description. - No window computation, no reset time, no percentage – this is an availability check, not a usage meter.
- No model or plan detection beyond listing model IDs.
Key files
Sources/RunicCore/Providers/Cohere/CohereProviderDescriptor.swiftSources/RunicCore/Providers/Cohere/CohereUsageFetcher.swift
Read the source ↗ Checked against Runic 2.13.5 · 9730f91