{"repo":"majiayu000/ccstats","free":true,"listed":false,"github":"https://github.com/majiayu000/ccstats","clone":"git clone https://github.com/majiayu000/ccstats.git","description":"Fast CLI for Claude Code and OpenAI Codex token/cost usage analytics","language":"Rust","stars":11,"topics":["analytics","claude-code","cost-tracking","developer-tools","openai-codex","rust-cli","token-usage","ai-tools","anthropic","chatgpt"],"license":"MIT","category":"analytics","readme_excerpt":"ccstats ccstats is a fast CLI for token and cost usage analytics for Claude Code, OpenAI Codex, Cursor, Grok, and Kimi Code logs. Search keywords: claude code usage stats , codex usage stats , cursor usage stats , token usage cli , ai token cost tracker . Highlights - Fast local analysis of usage JSONL logs - Claude Code support ( /.claude/projects/ ) - OpenAI Codex support ( /.codex/sessions/ ) - Cursor usage API support ( CURSOR API KEY or CURSOR SESSION TOKEN ) - Grok support ( /.grok/sessions/ ) - Kimi Code support ( /.kimi-code/sessions/ ) - Daily/weekly/monthly/project/session views - Top-N leaderboard ranking models or projects by cost share - Optional model-level token and cost breakdown - Reusable Rust SDK for embedding local usage and cost summaries in other apps Installation Homebrew (macOS/Linux) Cargo binstall (prebuilt binary) Cargo install (from source) Shell script Manual download Download prebuilt archives and SHA-256 checksums from GitHub Releases. Quick Start (Codex) Quick Start (Cursor) Cursor usage comes from Cursor's usage API, not from local state.vscdb files. Enterprise teams should set CURSOR API KEY . Individual and self-serve plans should set CURSOR SESSION TOKEN to the WorkosCursorSessionToken cookie from cursor.com/dashboard/usage. Quick Start (Grok) Grok support reads turn completed.usage records from /.grok/sessions/ /updates.jsonl . Those events are per-turn model request totals, including cache, output, reasoning, model-call counts, and server","default_branch":null,"files":null,"tree":[],"storefront":"/r/majiayu000","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/majiayu000/ccstats/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}