| summary | Ollama provider notes: API key auth, settings scrape, cookie auth, and Cloud Usage parsing. | |||
|---|---|---|---|---|
| read_when |
|
The Ollama provider can verify Ollama Cloud API-key access and scrape the Plan & Billing page to extract Cloud Usage limits for session and weekly windows.
- Plan badge: Reads the plan tier (Free/Pro/Max) from the Cloud Usage header.
- Session + weekly usage: Parses the percent-used values shown in the usage bars.
- Reset timestamps: Uses the
data-timeattribute on the “Resets in …” elements. - API key auth: Verifies direct
https://ollama.com/apiaccess withOLLAMA_API_KEYor a configured key. - Browser cookie auth: Required for Cloud Usage quota windows because Ollama does not expose those limits through the documented API.
- Open Settings → Providers.
- Enable Ollama.
- For API-key mode, paste an API key from
https://ollama.com/settings/keysor setOLLAMA_API_KEY. - For quota bars, leave Cookie source on Auto (recommended, imports Chrome cookies by default).
- Open
https://ollama.com/settingsin your browser. - Copy a
Cookie:header from the Network tab. - Paste it into Ollama → Cookie source → Manual.
- API-key mode fetches
https://ollama.com/api/tagswithAuthorization: Bearer <key>to verify Cloud API access. - Cookie mode fetches
https://ollama.com/settingsusing browser cookies. - Parses:
- Plan badge under Cloud Usage.
- Session usage and Weekly usage percentages.
data-timeISO timestamps for reset times.
Log in to https://ollama.com/settings in Chrome, then refresh in CodexBar.
If your active session is only in Safari (or another browser), use Cookie source → Manual and paste a cookie header.
Sign out and back in at https://ollama.com/settings, then refresh.
The settings page HTML may have changed. Capture the latest page HTML and update OllamaUsageParser.