Skip to content

itvincent-git/codex-usage-desktop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

229 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codex Usage Desktop

See where your Codex tokens, limits, and dollars go — without sending your session logs anywhere.

Release Platform: macOS License: MIT Local first

Download for Apple Silicon · Download for Intel Mac · 中文说明

Codex Usage Desktop dashboard showing token costs, trends, and account limits

Codex Usage Desktop turns the Codex CLI logs already on your Mac into a clear usage dashboard. Check token and cost trends, see which projects and models consume the most, inspect individual sessions, and keep an eye on live account limits — all from one native desktop app.

  • Local by default: session logs are read on your Mac and never uploaded by the app.
  • No API key setup: install, open, and scan the Codex data you already have.
  • Free and open source: no separate app account, subscription, or hosted analytics service required.

What you can see

Capability
Usage at a glance Token totals, estimated cost, cache hit rate, daily averages, and trends across preset or custom date ranges.
Know what drives cost Breakdowns by project, model, day, month, and individual Codex session.
Stay ahead of limits Live 5-hour, weekly, or monthly limits, reset times, available reset credits, and quota-reset forecasting when available.
Inspect session activity Search session titles, projects, and models, then open a session for its usage and activity details.
Keep it close Optional menu bar metrics, launch at login, English and Chinese UI, and in-app update checks.
Take your data with you Export the selected dashboard range to Excel (.xlsx) or Markdown (.md).

Install on macOS

Choose the build for your Mac:

Mac Download
Apple Silicon (M1, M2, M3, M4, and newer) Download the latest ARM64 DMG
Intel Download the latest x64 DMG

Open the DMG and move Codex Usage Desktop to Applications. You can also browse the latest release and release notes.

Note

The app does not bypass macOS Gatekeeper. If macOS blocks the first launch, open System Settings → Privacy & Security and allow the app.

Install from Terminal

The installer detects Apple Silicon or Intel, downloads the matching DMG, and copies the app to /Applications:

curl -fsSL https://raw.githubusercontent.com/itvincent-git/codex-usage-desktop/main/scripts/install.sh | sh

The script does not disable or bypass Gatekeeper.

Quick start

  1. Use Codex CLI normally so session logs exist under ~/.codex.
  2. Open Codex Usage Desktop. It scans the local logs and builds a local SQLite index.
  3. Choose a time range or open the Model, Project, Daily, Monthly, or Sessions views to explore your usage.

Live account limits require an authenticated local Codex CLI session. If needed, run codex auth login, then refresh the dashboard.

Privacy and network access

Your Codex session content is sensitive. The app is designed to keep it on your device:

  • Source files under ~/.codex are read locally and are never uploaded, shared, or modified by the app.
  • No OpenAI or LiteLLM API key needs to be entered into or stored by the app.
  • Aggregated usage data is stored in a SQLite cache in the macOS app data directory.
  • Live limits are requested directly from ChatGPT using your existing local Codex authentication; the app does not send session logs with those requests.
  • Network access is also used for public font files, model pricing, quota forecasts, and update checks. Pricing is cached locally, and these requests do not include your session logs or usage analytics.

Compatibility and current limits

  • Release packages currently support macOS on Apple Silicon and Intel. Windows and Linux packages are planned.
  • Usage and cost values are calculated from local Codex logs; cost figures are estimates based on the available model pricing.
  • Unknown models default to zero estimated cost.
  • Session details depend on the information present in each local Codex log.

Advanced options

  • CODEX_HOME: Codex home directory, default ~/.codex
  • CODEX_USAGE_TIMEZONE: timezone used for daily buckets, default system timezone with UTC fallback

Development

Codex Usage Desktop is built with React 19, Vite, Tauri v2, and a native Rust usage pipeline.

Install Node.js >= 24, pnpm, Rust, and the Tauri v2 system dependencies, then start the real desktop app:

pnpm install
pnpm tauri dev

Run the checks:

pnpm test
pnpm typecheck
cd src-tauri && cargo test

Packaged builds use pnpm tauri build.

About

Local-first macOS dashboard for Codex CLI token usage, cost estimates, model usage, and project usage from ~/.codex logs.

https://github.com/itvincent-git/codex-usage-desktop/releases/latest

Topics

Resources

License

Stars

7 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors