Skip to content

Add Ollama provider (cloud usage tracking) #534

@h3x89

Description

@h3x89

Summary

Add Ollama as a new provider in CodexBar to track cloud usage limits (session + weekly) displayed at https://ollama.com/settings

Context

Ollama offers cloud subscriptions (Free, Pro /mo, Max /mo) with usage limits that are visible on the user's settings page:

  • Session usage: percentage used, resets in X hours
  • Weekly usage: percentage used, resets in X days
  • Plan tier: Free / Pro / Max

Example from https://ollama.com/settings (Free tier):

Cloud Usage
free
Cloud models and capabilities such as web search contribute to session and weekly limits. Upgrade for higher limits.

Session usage
6.7% used
Resets in 5 hours
Weekly usage
17.3% used
Resets in 7 hours

Why this matters

  • Many users (including myself) use Ollama Cloud alongside local Ollama instances
  • The usage page shows the exact same data that CodexBar displays for other providers (session %, weekly %, reset times)
  • This would make CodexBar a one-stop shop for monitoring all AI tool quotas

Technical considerations

  1. Authentication: Users likely need to authenticate via browser cookies (similar to Cursor, Claude Web)
  2. API vs scraping: There's an open Ollama issue (#12532) requesting a /api/me endpoint for usage data. Until then, the web page may need to be scraped via WKWebView or cookie-based requests
  3. Alternative: If Ollama adds official API, this becomes much simpler

References

Expected behavior

  • Toggle to enable Ollama in Settings → Providers
  • Menu bar shows session % (top bar) + weekly % (bottom bar)
  • Reset countdown timers visible in submenu
  • Works with Free, Pro, and Max tiers

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedConfirmed backlog item or verified open bugarea:providersNew provider support or provider-specific product surfaceenhancementNew feature or requestpriority:mediumMedium priority: real issue or meaningful backlog item

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions