{"id":51465356,"url":"https://github.com/itvincent-git/codex-usage-desktop","last_synced_at":"2026-07-06T10:30:27.548Z","repository":{"id":358839340,"uuid":"1223617656","full_name":"itvincent-git/codex-usage-desktop","owner":"itvincent-git","description":"Local-first macOS dashboard for Codex CLI token usage, cost estimates, model usage, and project usage from ~/.codex logs.","archived":false,"fork":false,"pushed_at":"2026-06-21T09:39:54.000Z","size":3870,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-21T11:23:52.043Z","etag":null,"topics":["codex-cli","codex-usage","cost-tracking","desktop-app","llm-costs","local-first","macos","model-usage","openai","openai-codex","privacy-first","react","rust","sqlite","tauri","token-usage","usage-dashboard","xlsx-export"],"latest_commit_sha":null,"homepage":" https://github.com/itvincent-git/codex-usage-desktop/releases/latest","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/itvincent-git.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.json","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-04-28T13:47:34.000Z","updated_at":"2026-06-21T09:39:57.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/itvincent-git/codex-usage-desktop","commit_stats":null,"previous_names":["itvincent-git/codex-usage-desktop"],"tags_count":30,"template":false,"template_full_name":null,"purl":"pkg:github/itvincent-git/codex-usage-desktop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itvincent-git%2Fcodex-usage-desktop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itvincent-git%2Fcodex-usage-desktop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itvincent-git%2Fcodex-usage-desktop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itvincent-git%2Fcodex-usage-desktop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itvincent-git","download_url":"https://codeload.github.com/itvincent-git/codex-usage-desktop/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itvincent-git%2Fcodex-usage-desktop/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35187624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-06T02:00:07.184Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codex-cli","codex-usage","cost-tracking","desktop-app","llm-costs","local-first","macos","model-usage","openai","openai-codex","privacy-first","react","rust","sqlite","tauri","token-usage","usage-dashboard","xlsx-export"],"created_at":"2026-07-06T10:30:26.267Z","updated_at":"2026-07-06T10:30:27.533Z","avatar_url":"https://github.com/itvincent-git.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Codex Usage Desktop\n\n![ScreenShot](docs/screen_shot.jpg)\n[![Release](https://img.shields.io/github/v/release/itvincent-git/codex-usage-desktop?label=release)](https://github.com/itvincent-git/codex-usage-desktop/releases/latest)\n[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n[![Platform: macOS](https://img.shields.io/badge/platform-macOS-lightgrey.svg)](https://github.com/itvincent-git/codex-usage-desktop/releases/latest)\n[![Built with Tauri](https://img.shields.io/badge/built%20with-Tauri-24c8db.svg)](https://tauri.app/)\n[![Local first](https://img.shields.io/badge/local--first-privacy-green.svg)](#privacy)\n\n\u003e See where your Codex tokens and dollars go — locally.\n\nA local-first macOS dashboard for OpenAI Codex CLI usage.\nNo cloud account. No API key. No log upload. Reads your local ~/.codex logs.\n\n[Download the latest release](https://github.com/itvincent-git/codex-usage-desktop/releases/latest) · [中文 README](README_zh.md)\n\n## Why this exists\n\nCodex usage can grow quickly, but tracking it shouldn't cost you your privacy or credentials security. \n\nUnlike traditional analytics platforms that require cloud logins and API key uploads, **Codex Usage Desktop** is built with a local-first philosophy.\n\n### 📊 Local-First vs. Cloud SaaS Analytics\n\n| Feature                  | Codex Usage Desktop (Local-First)                         | Traditional Cloud SaaS                             |\n|:------------------------ |:--------------------------------------------------------- |:-------------------------------------------------- |\n| **Data Privacy**         | 🟢 **100% Local**. Your logs never leave your machine.    | 🔴 Uploads logs to third-party cloud servers.      |\n| **Credentials Security** | 🟢 **Zero API Keys required**. No keys are stored.        | 🔴 Requires uploading master API keys/tokens.      |\n| **Costs**                | 🟢 **Free \u0026 Open Source**. No subscription.               | 🔴 Pay-per-seat subscription models.               |\n| **Performance**          | 🟢 **Blazing fast SQLite**. Local TUI/JSONL log indexing. | 🔴 Subject to network latency and API rate limits. |\n\n---\n\n## Features\n\n* 🔍 **Local-First Log Scanner**: Automatically parses Codex CLI session logs (`~/.codex/sessions`) on your machine in real-time. No cloud API keys or accounts required.\n* 📊 **Interactive Dashboard**:\n  * **Multiple Windows**: Filter metrics over different timeframes (1d, 7d, 14d, 30d, 60d, 90d).\n  * **Aggregated Trends**: Real-time charts for input/output tokens, cached tokens, and daily cost estimates.\n* 💼 **Granular Breakdown**:\n  * **Project Analysis**: Track which project directories or repositories are consuming the most tokens.\n  * **Model Cost Estimates**: Segment usage by models (e.g., `gpt-5.5`, `gpt-5.4`) to see where your budget goes.\n* 🗓️ **Natural Month Overview**: Track aggregate monthly spending and token budgets for long-term project planning.\n* 💾 **Flexible Data Export**: One-click export of current dashboard datasets to Excel (`.xlsx`) or Markdown (`.md`) reports.\n* ⚙️ **Cache Management**: Instantly rebuild or purge the local SQLite usage index directly from settings to refresh data.\n\n## Download And Install\n\n### Install Script\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/itvincent-git/codex-usage-desktop/main/scripts/install.sh | sh\n```\n\nThe script downloads the latest macOS DMG for your architecture and installs `Codex Usage Desktop.app` to `/Applications`. It does not bypass macOS Gatekeeper. If macOS blocks the first launch, open System Settings \u003e Privacy \u0026 Security and allow the app.\n\n### Manual Download\n\nYou can also download the latest macOS build from [GitHub Releases](https://github.com/itvincent-git/codex-usage-desktop/releases/latest).\n\nCurrent release builds:\n\n- macOS Apple Silicon\n- macOS Intel\n\nWindows and Linux builds are planned, but the current release workflow only publishes macOS desktop packages.\n\n## Privacy \u0026 Security\n\n\u003e [!IMPORTANT]\n\u003e **Zero Cloud Telemetry \u0026 Credentials Security Guarantee**\n\u003e \n\u003e * **No API Keys Stored**: The app **does not require or store** your OpenAI/LiteLLM API keys. It parses local logs that already contain token counts.\n\u003e * **Logs Stay Local**: Source session files in `~/.codex` are read strictly on your device and are never uploaded, shared, or modified.\n\u003e * **Local-first SQLite Cache**: Summarized metrics are stored in a local SQLite cache in your system's app data directory.\n\u003e * **Minimal Network Activity**: Pricing data is cached locally. If missing, the app fetches public pricing lists from LiteLLM over HTTPS, without sending any user credentials or usage metrics.\n\n## Advanced Options\n\n- `CODEX_HOME`: Codex home directory, default `~/.codex`\n- `CODEX_USAGE_TIMEZONE`: timezone for day bucketing, default system timezone with UTC fallback\n\n## Current Limits\n\n- The app shows daily and monthly aggregate usage, not session-level detail.\n- Unknown models default to zero cost.\n- Release packages are currently macOS-only.\n\n## Roadmap\n\n- Windows and Linux release packages.\n- More detailed usage drilldowns.\n- More export and reporting options.\n\n## Development\n\nThe app is built with React 19, Vite, Tauri v2, and a native Rust usage pipeline.\n\nInstall Node.js `\u003e= 24`, `pnpm`, Rust, and Tauri v2 system dependencies, then run:\n\n```bash\npnpm install\npnpm tauri dev\n```\n\nUseful checks:\n\n```bash\npnpm test\npnpm typecheck\ncd src-tauri \u0026\u0026 cargo test\n```\n\nPackaged builds use:\n\n```bash\npnpm tauri build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitvincent-git%2Fcodex-usage-desktop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitvincent-git%2Fcodex-usage-desktop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitvincent-git%2Fcodex-usage-desktop/lists"}