You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ollama cloud usage percentages (session and weekly) are not displayed in --monitor or any output mode, even when cloud_enabled = true and enable_alpha_features = true are correctly configured. The root cause is that the API endpoint clawmeter probes (ollama.com/api/account/usage) does not exist — it returns HTTP 404.
This is an upstream dependency, not a clawmeter bug. The code is correctly structured and ready to consume the data once a real endpoint ships.
Upstream Dependency
Cloud usage stats. ollama/ollama#12532 — "Cloud usage stats" (opened Oct 2025, still open). The primary feature request for programmatic access to account usage data. No timeline from the Ollama team.
Account Usage API Endpoint ollama/ollama#15132 — "Account Usage API Endpoint" (opened Mar 2026, closed as duplicate of #12532). Community proposal for GET /api/account/usage with a JSON schema — this is the response format that _parse_cloud_usage() in providers/ollama.py was built to consume.
Current Behaviour
The provider probes https://ollama.com/api/account/usage
The endpoint returns 404
_fetch_cloud_endpoint() returns None on 404 (line 509)
No "Cloud Session" or "Cloud Weekly" windows are created
No error or informational message is shown to the user — the data is simply absent
The user sees local Ollama data (Models Available, Models Loaded, VRAM, RAM) but has no indication that cloud usage monitoring is configured but non-functional.
Research: Why Scraping Is Not Viable
The only known way to access cloud usage data today is scraping ollama.com/settings:
Requires browser session cookies (__Secure-session, aid), not API keys
Subject to Cloudflare challenges (cf_clearance)
HTML structure is undocumented and fragile
Incompatible with clawmeter's security model (no plaintext cookie storage, credential chain expects API keys or keyring)
This approach is unsuitable for a production tool.
What Should Change
Short-term: Improve silent-failure UX
When cloud_enabled = true and the endpoint returns 404, the monitor should display something visible — e.g. a "Cloud: awaiting API" informational row or a note in the provider panel — so users understand why the data is missing.
Medium-term: Probe additional endpoints
ollama/ollama#12532 originally suggested usage data via /api/me. Worth probing alongside /api/account/usage in case Ollama ships the data at a different path.
Long-term: Activate when upstream ships
_parse_cloud_usage() is already implemented and tested (tests/providers/test_ollama_cloud.py). When Ollama publishes a usage API, clawmeter needs only a URL update.
Summary
Ollama cloud usage percentages (session and weekly) are not displayed in
--monitoror any output mode, even whencloud_enabled = trueandenable_alpha_features = trueare correctly configured. The root cause is that the API endpoint clawmeter probes (ollama.com/api/account/usage) does not exist — it returns HTTP 404.This is an upstream dependency, not a clawmeter bug. The code is correctly structured and ready to consume the data once a real endpoint ships.
Upstream Dependency
GET /api/account/usagewith a JSON schema — this is the response format that_parse_cloud_usage()inproviders/ollama.pywas built to consume.Current Behaviour
https://ollama.com/api/account/usage_fetch_cloud_endpoint()returnsNoneon 404 (line 509)_fetch_cloud_usage()setscloud_info["status"] = "no_usage_endpoint"silentlyThe user sees local Ollama data (Models Available, Models Loaded, VRAM, RAM) but has no indication that cloud usage monitoring is configured but non-functional.
Research: Why Scraping Is Not Viable
The only known way to access cloud usage data today is scraping
ollama.com/settings:__Secure-session,aid), not API keyscf_clearance)This approach is unsuitable for a production tool.
What Should Change
Short-term: Improve silent-failure UX
When
cloud_enabled = trueand the endpoint returns 404, the monitor should display something visible — e.g. a "Cloud: awaiting API" informational row or a note in the provider panel — so users understand why the data is missing.Medium-term: Probe additional endpoints
ollama/ollama#12532 originally suggested usage data via
/api/me. Worth probing alongside/api/account/usagein case Ollama ships the data at a different path.Long-term: Activate when upstream ships
_parse_cloud_usage()is already implemented and tested (tests/providers/test_ollama_cloud.py). When Ollama publishes a usage API, clawmeter needs only a URL update.Affected Code
src/clawmeter/providers/ollama.py—_fetch_cloud_usage()(line 332),_fetch_cloud_endpoint()404 handling (line 509)src/clawmeter/formatters/monitor_fmt.py— no representation of "configured but unavailable" cloud statetests/providers/test_ollama_cloud.py— existing tests cover the happy path; no test for the UX when endpoint is absentLabels
Upstream dependency, Ollama provider, UX