A native macOS menu bar widget that tracks your Ollama Cloud usage (weekly & session quotas, per-model request counts, cost) and your local Ollama server state — right from the menu bar.
GET /api/ps.env fallback)⚠️ Note: The widget uses the undocumented
https://ollama.com/api/usageendpoint. It may change or become gated at any time. If it breaks, please open an issue.
curl -fsSL https://raw.githubusercontent.com/AsharFatmi/ollama-usage-widget/master/install.sh | bash
Downloads the latest release DMG, installs to /Applications, and registers a LaunchAgent so the widget starts at login and restarts if it crashes. Because the file comes via curl (no quarantine attribute), you won't see a Gatekeeper "unidentified developer" prompt.
Already installed? Re-run the same command to upgrade. Remove with curl -fsSL …/install.sh | bash -s uninstall.
brew tap asharfatmi/tap
brew install --cask ollama-usage-widget
git clone https://github.com/AsharFatmi/ollama-usage-widget.git
cd ollama-usage-widget
./scripts/deploy.sh
The script builds with SwiftPM, wraps the binary in an .app bundle, and registers a LaunchAgent so the widget starts at login and restarts if it crashes.
Toolchain note: macOS Command Line Tools can ship a stale SwiftPM manifest library that breaks
swift build. If you hit manifest/linker errors, install Swift via Homebrew (brew install swift) and ensure/opt/homebrew/bincomes first inPATH.
swift build -c release
cp -R .build/release/OllamaUsageWidget.app ~/Applications/
open ~/Applications/OllamaUsageWidget.app
Alternative: create ~/.ollama-usage-widget/.env (or ~/.ollama-usage-widget.env) containing:
OLLAMA_API_KEY=ollama-xxxxxxxx
For compatibility with Hermes-agent environments, ~/.hermes/.env is also read as a fallback.
curl -fsSL https://raw.githubusercontent.com/AsharFatmi/ollama-usage-widget/master/install.sh | bash -s uninstall
Or manually:
launchctl bootout gui/$(id -u)/com.asharfatmi.ollama-usage-widget
rm -rf ~/Applications/ollama-usage-widget
rm -rf /Applications/OllamaUsageWidget.app
rm ~/Library/LaunchAgents/com.asharfatmi.ollama-usage-widget.plist
| Data | Source |
|---|---|
| Weekly / session usage, per-model requests, cost | GET https://ollama.com/api/usage (Bearer token) |
| Local models + VRAM | GET http://localhost:11434/api/ps |
| 7-day activity history | locally accumulated daily deltas (the API exposes no history) |
The API key is never stored in the app bundle — it lives in your Keychain or env file only.
MIT © 2026 Ashar Fatmi
45 commits
Swift
85.3%
Shell
12.9%
Ruby
1.7%
A native macOS menu bar widget that tracks your Ollama Cloud usage (weekly & session quotas, per-model request counts, cost) and your local Ollama server state — right from the menu bar.
GET /api/ps.env fallback)⚠️ Note: The widget uses the undocumented
https://ollama.com/api/usageendpoint. It may change or become gated at any time. If it breaks, please open an issue.
curl -fsSL https://raw.githubusercontent.com/AsharFatmi/ollama-usage-widget/master/install.sh | bash
Downloads the latest release DMG, installs to /Applications, and registers a LaunchAgent so the widget starts at login and restarts if it crashes. Because the file comes via curl (no quarantine attribute), you won't see a Gatekeeper "unidentified developer" prompt.
Already installed? Re-run the same command to upgrade. Remove with curl -fsSL …/install.sh | bash -s uninstall.
brew tap asharfatmi/tap
brew install --cask ollama-usage-widget
git clone https://github.com/AsharFatmi/ollama-usage-widget.git
cd ollama-usage-widget
./scripts/deploy.sh
The script builds with SwiftPM, wraps the binary in an .app bundle, and registers a LaunchAgent so the widget starts at login and restarts if it crashes.
Toolchain note: macOS Command Line Tools can ship a stale SwiftPM manifest library that breaks
swift build. If you hit manifest/linker errors, install Swift via Homebrew (brew install swift) and ensure/opt/homebrew/bincomes first inPATH.
swift build -c release
cp -R .build/release/OllamaUsageWidget.app ~/Applications/
open ~/Applications/OllamaUsageWidget.app
Alternative: create ~/.ollama-usage-widget/.env (or ~/.ollama-usage-widget.env) containing:
OLLAMA_API_KEY=ollama-xxxxxxxx
For compatibility with Hermes-agent environments, ~/.hermes/.env is also read as a fallback.
curl -fsSL https://raw.githubusercontent.com/AsharFatmi/ollama-usage-widget/master/install.sh | bash -s uninstall
Or manually:
launchctl bootout gui/$(id -u)/com.asharfatmi.ollama-usage-widget
rm -rf ~/Applications/ollama-usage-widget
rm -rf /Applications/OllamaUsageWidget.app
rm ~/Library/LaunchAgents/com.asharfatmi.ollama-usage-widget.plist
| Data | Source |
|---|---|
| Weekly / session usage, per-model requests, cost | GET https://ollama.com/api/usage (Bearer token) |
| Local models + VRAM | GET http://localhost:11434/api/ps |
| 7-day activity history | locally accumulated daily deltas (the API exposes no history) |
The API key is never stored in the app bundle — it lives in your Keychain or env file only.
MIT © 2026 Ashar Fatmi
45 commits
Swift
85.3%
Shell
12.9%
Ruby
1.7%