Skip to content
OkamiOpsPublic

About

Every AI coding subscription quota in your macOS menu bar — Claude Code, Codex, Cursor, OpenRouter & more, with alerts before you hit the limit.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

OkTally

Every AI coding subscription quota, in your macOS menu bar — before you hit the wall.

Platform Swift SwiftUI License Release Tests No telemetry

English | Deutsch | Français | Português (BR)


OkTally menu bar label: brand symbol and the tightest quota

OkTally notch panel expanded, with one dense row per pinned quota

OkTally floating island: a black pill at the top of an external display, one quota on each side of the brand mark and a continuous bar underneath

No notch — external monitor, closed lid, iMac? The same panel becomes a floating island.



OkTally popover with an expanded quota forecast and compact pace bars for every renewable provider and model

All screenshots use demo data.


Why OkTally

Subscription AI tools don't warn you. Claude Code's 5-hour window closes mid-refactor, the weekly cap lands on a Thursday, and the first sign of trouble is a "you've reached your limit" message. Meanwhile the quota you do have sitting on another subscription goes unused, because nothing tells you it's there.

OkTally is a native macOS menu bar app that keeps every one of those quotas visible at a glance — one colored strip in the menu bar, one popover with the full picture, a full overview window with usage analytics, and a notification before you run out instead of after.

Features at a glance

Feature What it does
📌 One number in the bar Pin any number of quota windows; the menu bar shows the brand symbol plus the tightest one, colored only when it is running out
↕️ Custom account order Drag the Contas list in Preferences into the order you want; Overview, popover, notch and Analytics follow
🕳️ Notch panel On the MacBook's built-in display, a black panel hugging the notch: one quota of your choosing on each wing when idle, full quota rows on hover, the popover on click
🎯 Bottleneck-first popover The highest-risk quota gets one expanded forecast; dense provider/model rows keep their own compact pace bars below
📈 24h pace forecasts Weekly and monthly limits compare your recent burn rate with the renewal date and say whether to slow down, hold pace, or use more
🪟 Overview window Sidebar navigation, KPI row (providers · bottleneck · estimated cost), capsule bars per window, 7-day trends per provider
📊 Analytics tab Token stats + GitHub-style usage heatmap across Cursor, Devin, Codex, Claude Code and OpenCode — streaks, daily peak, today/yesterday/30 days and known cost
🔔 Configurable alerts Edge-triggered macOS notifications at 70/90/100% (your pick) and a low-balance USD threshold — once per crossing, not once per poll
💰 Cost estimates Measured provider/local cost where available, plus clearly marked API-equivalent estimates from OpenRouter's public price table
🧲 Zero-config detection Cursor, GrokBot, GitHub Copilot, Antigravity and Devin are picked up from the logins already on your Mac — nothing to paste
🔐 Keychain-only secrets OAuth tokens and API keys never touch plaintext; everything runs locally

The overview window

Overview window with KPI cards and bottleneck-first provider cards

Open it from the popover ("Visão geral"). The sidebar lists every provider with a live status dot; the main area starts with the current bottleneck and fleet health, then turns every quota window into a pressure-colored card grouped by watch list, comfortable quotas and balances. Wide windows use a compact card grid instead of a long table.

The analytics tab

Analytics tab with token stat chips and GitHub-style usage heatmap

One panel that answers "how much am I actually using?" across every source that exposes token data:

Source Where the numbers come from Notes
Codex ChatGPT account stats API True lifetime tokens, longest task, streaks
Claude Code Local session transcripts (~/.claude/projects) Incremental per-file cache; model/cache breakdown powers API-equivalent cost
OpenCode Local session database Tokens per day including cache/reasoning plus the cost OpenCode recorded locally
Cursor Cursor dashboard API Daily tokens for the recent detailed window (GrokBot categories included) plus billing-cycle usage cost
Devin Local sessions.db generation metrics Measured input/output/cache tokens without summing context totals twice

The Análise tab sums all token sources into one heatmap + stat chips (lifetime, daily peak, current/longest streak, today, yesterday, last 30 days), with a per-provider breakdown below. Local and provider-reported numbers are measured facts where available; API-equivalent prices are marked as estimates — neither is presented as a subscription invoice.

Provider detail pages do not stay empty when tokens are unavailable. If OkTally only has quota snapshots, it derives an honest consumption trend in percentage-point units from the history already recorded on the machine and renders it as an eight-week heatmap. Quota is never converted into fake token counts.

Providers

Provider Auth Quota windows Analytics Cost est.
Claude Code OAuth, or one-click import of your existing CLI login 5h session + weekly (+ Opus weekly) ✅ local ✅ API-equivalent
Codex OAuth Weekly + per-feature windows (e.g. Spark) ✅ account —
GitHub Copilot Zero-config — reads your Copilot/gh CLI login Chat, completions, premium — —
Cursor Zero-config — reads your local Cursor session Balance + billing-cycle % ✅ account ✅ reported usage cost
GrokBot Zero-config — reuses your local Cursor session Separate weekly GrokBot quota included in Cursor —
Antigravity Zero-config — reads your Antigravity IDE login Gemini + Claude/GPT groups, 5h + weekly — —
Devin Zero-config — reads your local Devin credentials Daily (when exposed by the plan) + weekly ACU windows ✅ local —
SuperGrok OAuth device code Weekly window — —
OpenRouter API key Credit balance — price table source
MiniMax API key (global or China region) 5h + weekly, worst-model-wins — —
OpenCode API key + local database 5h / weekly / monthly (estimated) ✅ local ✅
MiMo In-app web session (self-recovering) or manual estimate Monthly plan — —
Kiro Explicit Kiro CLI OIDC session import, isolated per account Precise monthly credits + plan + renewal — —
Kimi Code Browser device-code OAuth, isolated per account 5h, weekly/monthly windows + booster wallet when supplied — —
Kimi / Moonshot API Global API key Available USD balance, separate from Kimi Code — —
GLM / Z.ai Coding Plan Global Coding Plan key Coding/tool quota usage; renewal only when supplied — —
GLM / Z.ai API Global API key Access validation; balance/spending in provider portal — —
Qwen / Model Studio Global Coding Plan or PAYG API key Access validation; consumed quota/spending requires Console authentication — —
DeepSeek API API key Balance per currency — —
Mistral Organization Admin API key from Backoffice Organization monthly spending and limit (USD) — —
Mistral API Standard API key Access validation; spending requires the Admin connection — —
Meta Muse / Spark API Meta Model API key Access validation; total usage/balance in provider portal — —

Add these accounts through Settings → Add account…. New API connections validate a candidate key before saving it. Keys and OAuth sessions are isolated by account ID in Keychain; duplicate keys/accounts are not enrolled again. Catalog validation never produces a synthetic quota.

For Kiro, sign in with kiro-cli login, then choose Kiro → Import from Kiro CLI. Switch the CLI account and repeat Add account for another account. The importer reads the CLI database once and does not modify it. Account identity includes the authenticated user and quota profile, so users sharing an organization profile remain separate. IDE Secret Storage and Social/Builder ID sessions without the required OIDC registration are not supported by this importer.

Muse Code subscription monitoring is not enrolled in this release. MSP usage/read returns only the last observation made by its own host, and a fresh isolated host can return no usage. The experimental reader is covered by contract tests, but this does not establish live monitoring of another CLI process. Meta Model API credentials remain separate from subscription credentials.

Self-recovering MiMo session. The Xiaomi console session lives in a persistent in-app web view. When its short-lived STS cookie expires, OkTally transparently reloads the console and retries — you only log in again if the underlying Xiaomi SSO session actually dies.

Schema-drift tolerant. These are mostly undocumented APIs. OkTally decodes only the fields it consumes, treats them as optional whenever live traffic has shown null, and keeps showing the last known good data (with an "updated X ago" caption) when a poll fails.

How it works

flowchart LR
    subgraph Providers["Provider plugins"]
        P1["Claude · Codex · Copilot · Cursor · GrokBot<br/>Antigravity · Devin · SuperGrok · OpenRouter<br/>MiniMax · OpenCode · MiMo"]
    end
    P1 -->|"ProviderSnapshot<br/>(QuotaShape)"| S[Scheduler]
    S --> DB[(SQLite history<br/>30-day retention)]
    S --> AE[Alert engine<br/>edge-triggered]
    AE --> N[macOS notifications]
    DB --> FE[24h pace forecast<br/>weekly + monthly]
    FE --> UI["Menu bar · Popover<br/>Overview window · Analytics"]
    S --> UI
    PE[Pricing engine<br/>OpenRouter price table] --> UI
Loading

Every provider is a plugin conforming to a single UsageProvider protocol and normalizes its data into one QuotaShape model — rolling window, periodic counter, credit balance, metered, or estimated — so the UI never has to special-case a vendor.

Install

DMG (recommended)

Requires macOS 26 (Tahoe) or later. Older macOS versions are no longer supported and will not receive updates.

  1. Download OkTally-0.12.0.dmg from the Releases page.
  2. Open it and drag OkTally to Applications.
  3. The app is not notarized: on first launch, right-click (Ctrl-click) OkTally.app → Open → Open.

Build from source

Requires Xcode Command Line Tools with Swift 6.2 or newer (the manifest declares swift-tools-version: 6.2).

git clone https://github.com/OkamiOps/OkTally.git
cd OkTally
bash Scripts/build_app.sh    # builds .build/OkTally.app

Optional extras:

bash Scripts/install_launch_agent.sh   # start OkTally at login
bash Scripts/make_dmg.sh               # package a drag-to-install DMG

Stable signing: build_app.sh automatically signs with a stable identity — a self-signed OkTally Dev certificate if you created one, otherwise any Apple Development certificate already on the machine. Only when neither exists does it fall back to an ad-hoc signature, which changes the app's identity on every build and forces you to log in to providers again after each rebuild.

Getting started

  1. Click the OkTally item in the menu bar — first launch shows a connect your first provider call-to-action.
  2. Open Preferences and connect each provider you use — OAuth login, API key, or nothing at all for Cursor/GrokBot/Copilot/Devin.
  3. Drag accounts in Preferences → Contas into the order you want.
  4. Back in the popover, pin the windows you care about with the pin icon.
  5. Tune alert thresholds (70/90/100% + low balance) in Preferences → General.
  6. Open Visão geral for the full dashboard and the Análise tab.

Development

swift test    # 498 unit tests
Directory What lives there
Sources/OkTally/Core QuotaShape, scheduler, forecast engine, alerts, history & analytics models — pure and unit-tested
Sources/OkTally/Plugins One folder per provider; each normalizes into ProviderSnapshot
Sources/OkTally/UI Popover, per-quota pace, forecast chart, overview, analytics and palette
Sources/OkTally/Pricing Price table source + cost engine
Sources/OkTally/Storage GRDB/SQLite snapshot history with retention
docs/superpowers/ Design documents and research notes

Privacy

Everything runs locally on your Mac.

  • OAuth tokens and API keys are stored in the macOS Keychain, never in plaintext.
  • Usage history lives in a local SQLite database, pruned after 30 days.
  • Claude Code / OpenCode analytics read files already on your machine — nothing is uploaded.
  • No telemetry, no analytics, no external servers — OkTally talks only to the providers' own APIs.

Roadmap

  • Plan badges (Pro/Free/Business) on provider cards
  • Update check (daily, against GitHub Releases — auto-install waits for notarization)
  • Localization (English + Portuguese, follows the system language)
  • Antigravity as a zero-config provider
  • More zero-config providers (Gemini CLI)
  • Notarized builds

License

MIT © OkamiOps

About

Every AI coding subscription quota in your macOS menu bar — Claude Code, Codex, Cursor, OpenRouter & more, with alerts before you hit the limit.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages