Skip to content

feat: v0.7.0 Ollama provider with local and cloud monitoring#20

Merged
danielithomas merged 2 commits into
mainfrom
feature/v0.7.0-ollama-provider
Apr 10, 2026
Merged

feat: v0.7.0 Ollama provider with local and cloud monitoring#20
danielithomas merged 2 commits into
mainfrom
feature/v0.7.0-ollama-provider

Conversation

@danielithomas
Copy link
Copy Markdown
Owner

@danielithomas danielithomas commented Apr 10, 2026

Summary

  • Ollama provider (providers/ollama.py) with @register_provider — polls /api/tags (model inventory) and /api/ps (loaded models, VRAM/RAM) per host
  • Multi-host support — single host or [[providers.ollama.hosts]] array, with host-prefixed window names and error isolation per host
  • Cloud usage tracking (alpha) — probes ollama.com/api/account/usage when enable_alpha_features = true and cloud_enabled = true; API key auth via credential chain; one-time stderr warning; alpha: true in extras
  • Config changesenable_alpha_features flag in [general], [providers.ollama] section with host validation, is_alpha_enabled() helper
  • 45 new tests across test_ollama.py, test_ollama_cloud.py, and test_config.py (481 total pass)
  • Research reportdocs/research/ollama-v0.7.0-research.md

Closes #7

Test plan

  • All 481 existing + new tests pass (uv run pytest)
  • Manual test with local Ollama instance (ollama serve + uv run llm-monitor -p ollama --now)
  • Verify multi-host config with two instances
  • Verify alpha gating: cloud features disabled without enable_alpha_features = true
  • Verify host/hosts mutual exclusivity raises ValueError

🤖 Generated with Claude Code

danielithomas and others added 2 commits April 10, 2026 12:58
Add Ollama provider supporting local instance monitoring (model inventory,
loaded models, VRAM/RAM usage) with multi-host support, and alpha-gated
cloud usage tracking (session/weekly quotas behind enable_alpha_features).

- providers/ollama.py: @register_provider with /api/tags + /api/ps polling,
  multi-host support, error isolation per host, cloud model detection,
  cloud API key auth and /api/account/usage probe (alpha, D-053)
- config.py: enable_alpha_features flag, [providers.ollama] section,
  host/hosts mutual exclusivity validation, is_alpha_enabled() helper
- 45 new tests (test_ollama.py, test_ollama_cloud.py, test_config.py)
- 4 fixture files for mocked Ollama API responses
- Research report: docs/research/ollama-v0.7.0-research.md
- README: Ollama prerequisites, multi-host config examples
- SPEC: v0.7.0 checklist updated

Closes #7

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The table and monitor formatters only handled "percent" and "usd" units,
showing utilisation (always 0.0) as "0%" for Ollama's count/mb windows.
Now displays raw_value with appropriate suffix (e.g. "1", "5,086 MB")
and skips the percentage bar for non-percentage units.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@danielithomas
Copy link
Copy Markdown
Owner Author

Limited Ability to Fully test at this stage. Some test deferred to v0.7.1

@danielithomas danielithomas merged commit e5fd9d5 into main Apr 10, 2026
3 checks passed
@danielithomas danielithomas deleted the feature/v0.7.0-ollama-provider branch April 10, 2026 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v0.7.0 — Ollama Provider

1 participant