Skip to content

Usage and quota

Mjolnir has separate views for recorded session usage and the latest provider quota readings. Usage Dashboard summarizes recent work and estimates its API cost. Quota shows provider-reported allowances and reset times. Both are estimates or provider readings, not billing guarantees.

In the terminal dashboard, open the command palette with prefix+: and choose Usage Dashboard. The dashboard refreshes successful reports every 30 seconds while it remains open. Press Refresh to request a report immediately. A failed read waits for an explicit refresh. The Profiles pane remains the quick view of current quota windows.

In the Web UI, choose Usage Dashboard or Quota in the navigation. The Usage Dashboard loads on entry and when you change its filters or selected hours; use Refresh to reload it. The Quota page displays profile windows, remaining or used percentage, reset time, stale/error and rate-limit status, and the next scheduled check. It updates as the daemon publishes new quota readings.

For command-line readings, use mj quota; the flags and output are in the CLI reference. Profile setup and provider-specific quota behavior are described in Profiles.

The dashboard groups usage by provider. Expand a provider to see primary-session and sub-agent role shares, model names, estimated costs, and unreported-turn counts. The table also lists sessions and their token/cost totals. The Profile filter includes turns run on the selected profile, including turns in a parent’s sub-agent tree. Include suspended sessions adds inactive parent sessions.

The timeline covers the last 24 clock hours. Select a single hour, toggle additional hours with Ctrl-click, or select a range with Shift-click; Ctrl+Shift-click adds a range. In the terminal, the arrow keys move the hour selection and Enter restores all 24 hours. In the Web UI, click or drag across hour columns; modifier-clicks toggle or extend selections. Selecting hours filters the cost, pace, and session report to that time range.

Provider pace compares estimated consumption in the selected period with the provider’s usable allowance and window reset schedule. The percent is relative to a sustainable pace for the allowance to last until reset: about 100% is on pace, above 100% is faster than that pace, and below 100% is slower. Tank is remaining quota; share attributes a provider’s usage among roles. Providers without a reported quota can show pay-as-you-go or unknown instead of a percentage. Forecast text estimates whether the observed pace would exhaust a window before reset.

Estimated API cost uses recorded token counts and base API rates. It is not the amount charged to a subscription account, and it does not include every provider-specific premium. A + on a cost or token total means accounting is partial; ~ marks a partial pace estimate. unreported names turns or models without a complete usage report. ?, unknown, or a dash means there is not enough data to calculate a value; it does not mean zero use. Incomplete harness reporting, unpriced models, external activity on the same account, stale readings, and selected-hour boundaries all limit accuracy.

Quota values come from provider usage reports when available. Profiles can report short windows, weekly windows, model-specific windows, and reset times. Some allowances overlap: a short window and a weekly window describe separate constraints on the same account, so do not add their percentages or limits together. Antigravity can expose multiple independent quota pools; read each pool separately. A missing window means unknown or unreported, not unlimited.

The quota projection uses recent quota-history readings for the same profile configuration and reset window. Observed pace is the measured change in allowance over time. Sustainable pace is the remaining allowance divided by the time until reset. The dashboard compares them and projects exhaustion from the observed rate. A value above 100% indicates faster-than-sustainable use. Projections can be absent when history is insufficient, the reading is stale, the reset is unknown, or use is too small to estimate. They can change after a reset, a profile configuration change, external account use, or a new provider reading. Treat a forecast as a planning signal, not a promise that a provider will accept or reject a future request.

The scheduler first groups eligible choices into quota pools for the requested model, then orders the pools by tier. A subscription whose reported windows pass the estimated task-cost and runway checks ranks first. Unknown quota ranks next. Usage-priced profiles and subscription paid credits (when allowed) form the paid tier; estimated cost orders that tier. A subscription that fails the short-window runway check ranks after paid capacity, and one that fails the long-window runway check or the 1% reserve floor ranks last. A model known to be exhausted, or paid credits disallowed by the profile setting, is excluded. Within tiers, Mjolnir uses estimated capacity, recent quota pace, and profile ranking data to choose among pools; the choice is a forecast based on available reports, not a guarantee. The API’s model-based profile selection and CLI mj new options document the selection contract. Antigravity’s independent pools are considered separately; their balances are not summed into one allowance.

The daemon normally refreshes profile quota every ten minutes; provider rate limits can extend the interval. mj quota --refresh requests a fresh reading. A failed request can leave the last known reading visible with an error or stale marker. Explicit provider rate-limit, quota, or overload diagnostics can trigger a fault-driven probe for the affected profile so selection can use fresher data. Such probes are deduplicated, respect a provider’s Retry-After hold, and do not turn unrelated request failures into quota facts. When a fresh reading arrives, quota status and subsequent profile selection are recalculated from that report.

A compatible worker can identify a genuine subscription quota stop and, when [jev].enabled is true, record a quota recovery for that turn. When the stop comes from a long quota window, the model is known, and another eligible profile of the same harness can run that model, Mjolnir can move the session there instead of waiting for the current reset. It uses quota-aware profile selection for the destination. If no such profile is available, or an automatic move cannot be prepared, it records a wait. When the provider gives a reliable reset time no more than 16 hours away, Mjolnir schedules continuation one minute after the reset. It uses provider-reported reset information when possible and can use a last-known quota reset when that is the best available evidence; the notice says when it did so. The session remains stopped while it waits, and the pending continuation can be reviewed in the conversation.

Mjolnir does not schedule an automatic continuation when [jev].enabled is false (disabled in Settings → Privacy or config.toml), when it cannot determine a reliable reset time, or when the reset is more than 16 hours away. With Jev disabled, quota readings and reset times remain visible, but stopped sessions do not move or resume automatically. When a reset is more than 16 hours away, the pending work may be stale by the time quota returns; resume the session yourself if the work still applies. A continuation is also no longer appropriate if the blocked turn or selected profile has changed; changing the profile or acting on the session can supersede the recorded recovery. Automatic recovery requires a worker that reports the quota assessment; older workers do not receive this behavior.

Usage-priced or API-billed profiles do not have a subscription reset window to wait for. A provider error or overload is not automatically treated as proof of exhausted subscription quota. Mjolnir may refresh quota or mark a profile temporarily unhealthy so later work can use another eligible profile, but it does not promise to retry a billed request at an invented reset time. See Sessions for session recovery, and Configuration for settings.

For profile-specific quota reports and quota history, see Profiles. For the TUI pane layout and refresh controls, see Terminal surface; for the browser dashboards, see the Web UI.