Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Ollama Quota Tracker (Unofficial)New to Visual Studio Code? Get it now.
Ollama Quota Tracker (Unofficial)

Ollama Quota Tracker (Unofficial)

Nicolas Malone

|
12 installs
| (0) | Free
Shows your Ollama Cloud quota (included credits or legacy limits) in the VS Code status bar, with usage charts and multi-token management in a dashboard.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Ollama Quota Tracker (Unofficial)

Displays your remaining Ollama Cloud quota in the VS Code status bar.

Status bar with the Ollama Quota indicator

Expanded status view: the hover tooltip with one block per quota window, a continuous bar per window and the reset stamps

Note: this extension is not affiliated with Ollama. It is an independent project, and it tracks Ollama Cloud quota only — other AI services are out of scope.

Features

  • Queries Ollama's documented endpoints (https://ollama.com/api/balance and /api/usage) using an API key created at https://ollama.com/settings/keys.
  • Shows the used % (default) or the remaining % in the Status Bar, controlled by the ollamaQuota.displayMode option — the setting drives the hover tooltip and the dashboard meters too, so every view shows and fills the same percentage. Percentages keep the API's decimals everywhere (at most one, like ollama.com itself: 58.7% stays 58.7%, 60% stays 60%).
  • Dashboard webview: click the status bar item (or run Ollama Quota: Open Dashboard) for quota meters, daily usage charts of the active week and month, and token management. When the usage API reports model data the chart bars are stacked by model with a colour legend (a model keeps its colour across charts and refreshes), alongside a per-model usage breakdown, and hovering a stacked bar spotlights one segment at a time — the rest of the stack dims and a native tooltip names the day, the model and its spend (e.g. Oct 15 · glm-5.3-flash — 440 requests ($0.85)). Charts adapt to narrow panels: a full month is ticked with the bare day number in every column (the card title carries the month) and thins down to the anchors — the 1st, the Mondays, the busiest day and today — before dropping labels, while days without requests render a neutral tick instead of a bar.

Dashboard (credits plan — a decimal percentage on the meter, week/month charts stacked by model with the Oct 24 glm-5.3-flash segment hovered — spotlight and tooltip shown —, per-model tables and the token selector):

Dashboard on the credits plan: included credits meter, active week and active month charts with per-model tables, token selector

Dashboard (legacy plan — session/weekly meters with the API's decimal percentages and the same stacked-by-model charts, a colour legend and per-model tables):

Dashboard on the legacy plan with decimal meter percentages and stacked model charts with per-model tables

  • Multiple API tokens: store several named keys and switch between them; only the active one is polled, so the shared rate limit (10 requests/minute) is respected.
  • Tooltip and dashboard timestamps (resets, update times, chart labels) rendered as e.g. Nov 1 at 1:00 AM; the clock can be forced to 12‑ or 24‑hour via ollamaQuota.tooltipTimeFormat.
  • Hover tooltip: one block per quota window — the window name with the percentage the setting selects, a continuous bar that fills with that very number, and a muted line carrying the reset stamp plus the compact time to reset (e.g. 5h 23m left) and, on credits, the exact spent/total balance. Footer links open the dashboard or refresh on the spot.
  • One colour language across views: a window's bar and its percentage always share a single tier — blue while the remaining quota is above ollamaQuota.warnThreshold, yellow at or below it and red at half of it — and the same rule paints the tooltip and the dashboard meters, so the percentage you read never disagrees with the bar you see.
  • Configurable auto-refresh (60 s by default; 0 = disabled; values below 30 s are clamped to 30 to protect the rate limit).
  • Keeps the last valid value if a query fails (per token: stale data from a previous token is never shown for the current one).

Usage

  1. Install the extension.
  2. Create an API key at https://ollama.com/settings/keys.
  3. Run the Ollama Quota: Manage API Keys command (or click the status bar item without a token) to add your first key.
  4. Your quota appears in the Status Bar; click it to open the Dashboard, where you can add/rename/delete tokens, switch the active one and view the weekly/monthly usage charts.

Configuration

Option Default Description
ollamaQuota.refreshInterval 60 Polling interval in seconds (0 = disabled; values below 30 are clamped to 30 to protect the shared rate limit).
ollamaQuota.displayMode used Displayed percentage: used (consumed) or remaining (left) — mirrored by the status bar, the tooltip's hero line + bar, and the dashboard meters.
ollamaQuota.warnThreshold 20 Remaining-quota boundary for the bar colours: above it bars and percentages stay blue, at or below it they turn yellow, and red once the remaining quota falls to half of it. The ⚠ status-bar icon uses the same boundary.
ollamaQuota.tooltipTimeFormat auto Hour format of the tooltip timestamps (auto = editor locale, or force 12h / 24h).

Releases

Releases are automated with semantic-release on GitHub Actions (.github/workflows/release.yml). Every push to main runs the compile + unit tests and, when the commits follow Conventional Commits, it automatically:

  1. bumps the version in package.json,
  2. appends the new entry to CHANGELOG.md (generated from the commit messages),
  3. builds the VSIX, bundling the repo's README.md and CHANGELOG.md — these feed the Marketplace listing and its changelog tab,
  4. publishes that exact VSIX to the VS Code Marketplace (requires the VSCE_PAT repository secret; skipped with a warning if it is not set),
  5. pushes the vX.Y.Z tag and publishes a GitHub Release with the VSIX attached.

Marketplace publishing uses a Personal Access Token with the Marketplace "Manage" scope (all accessible organizations), stored as the VSCE_PAT repository secret. The workflow pre-flights the secret before releasing: if VSCE_PAT is missing or empty, the run fails with an actionable error instead of silently publishing only to GitHub Releases. Note that a version already published to the Marketplace can never be overwritten, so the listing (README, screenshots, changelog tab…) only refreshes on each new release.

The release commit (chore(release): X.Y.Z [skip ci]) is created by the bot itself, so no version has to be bumped manually anymore.

Supported commit prefixes:

Commit message Version bump Example
fix: ... patch 0.4.3 → 0.4.4
feat: ... minor 0.4.3 → 0.5.0
docs: ... patch 0.6.0 → 0.6.1²
feat!: or BREAKING CHANGE: in the body major 0.4.3 → 1.0.0¹
anything else (chore:, ci:, style:, refactor:, …) none (no release) —

¹ While the version is 0.x, a major bump stays in the 0.x series.

² docs: releases a patch because the README.md bundled in the VSIX is the Marketplace listing — documentation changes need a new version to become visible there.

To preview what a push would release without touching anything, run npm run release:dry.

Privacy

  • All API keys are stored only in VS Code's local SecretStorage. They are never written to settings.json, logs, or telemetry.
  • This extension does not collect telemetry or usage data.

Disclaimer

  • This project is not affiliated with Ollama.
  • This extension monitors Ollama Cloud only; it does not track quota for other AI tools or providers.
  • The API key is used solely to query the quota.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft