Back to Codexbar

Ollama Provider

docs/ollama.md

0.241.5 KB
Original Source

Ollama Provider

The Ollama provider scrapes the Plan & Billing page to extract Cloud Usage limits for session and weekly windows.

Features

  • 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-time attribute on the “Resets in …” elements.
  • Browser cookie auth: No API keys required.

Setup

  1. Open Settings → Providers.
  2. Enable Ollama.
  3. Leave Cookie source on Auto (recommended, imports Chrome cookies by default).
  1. Open https://ollama.com/settings in your browser.
  2. Copy a Cookie: header from the Network tab.
  3. Paste it into Ollama → Cookie source → Manual.

How it works

  • Fetches https://ollama.com/settings using browser cookies.
  • Parses:
    • Plan badge under Cloud Usage.
    • Session usage and Weekly usage percentages.
    • data-time ISO timestamps for reset times.

Troubleshooting

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.

“Could not parse Ollama usage”

The settings page HTML may have changed. Capture the latest page HTML and update OllamaUsageParser.