[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-84387":3},{"id":4,"name":5,"fullName":6,"owner":5,"repo":5,"description":7,"homepage":8,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":16,"stars30d":16,"stars90d":15,"forks30d":15,"starsTrendScore":17,"compositeScore":18,"rankGlobal":9,"rankLanguage":9,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":20,"hasPages":20,"topics":22,"createdAt":9,"pushedAt":9,"updatedAt":23,"readmeContent":24,"aiSummary":9,"trendingCount":15,"starSnapshotCount":15,"syncStatus":25,"lastSyncTime":26,"discoverSource":27},84387,"ccusage","ccusage\u002Fccusage","Analyze coding (agent) CLI token usage and costs from local data.","https:\u002F\u002Fccusage.com\u002F",null,"Rust",16015,643,24,7,0,95,285,43.43,"Other",false,"main",[],"2026-06-12 02:04:40","\u003Cdiv align=\"center\">\n    \u003Cimg src=\"https:\u002F\u002Fcdn.jsdelivr.net\u002Fgh\u002Fccusage\u002Fccusage@main\u002Fdocs\u002Fpublic\u002Flogo.svg\" alt=\"ccusage logo\" width=\"256\" height=\"256\">\n    \u003Ch1>ccusage\u003C\u002Fh1>\n\u003C\u002Fdiv>\n\n\u003Cp align=\"center\">\n    \u003Ca href=\"https:\u002F\u002Fsocket.dev\u002Fnpm\u002Fpackage\u002Fccusage\">\u003Cimg src=\"https:\u002F\u002Fsocket.dev\u002Fapi\u002Fbadge\u002Fnpm\u002Fpackage\u002Fccusage\" alt=\"Socket Badge\" \u002F>\u003C\u002Fa>\n    \u003Ca href=\"https:\u002F\u002Fnpmjs.com\u002Fpackage\u002Fccusage\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002Fccusage?color=yellow\" alt=\"npm version\" \u002F>\u003C\u002Fa>\n    \u003Ca href=\"https:\u002F\u002Ftanstack.com\u002Fstats\u002Fnpm?packageGroups=%5B%7B%22packages%22:%5B%7B%22name%22:%22ccusage%22%7D%5D%7D%5D&range=30-days&transform=none&binType=daily&showDataMode=all&height=400\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fdt\u002Fccusage\" alt=\"NPM Downloads\" \u002F>\u003C\u002Fa>\n    \u003Ca href=\"https:\u002F\u002Fdeepwiki.com\u002Fccusage\u002Fccusage\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FDeepWiki-ccusage%2Fccusage-blue.svg?logo=data:image\u002Fpng;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAyCAYAAAAnWDnqAAAAAXNSR0IArs4c6QAAA05JREFUaEPtmUtyEzEQhtWTQyQLHNak2AB7ZnyXZMEjXMGeK\u002FAIi+QuHrMnbChYY7MIh8g01fJoopFb0uhhEqqcbWTp06\u002Fuv1saEDv4O3n3dV60RfP947Mm9\u002FSQc0ICFQgzfc4CYZoTPAswgSJCCUJUnAAoRHOAUOcATwbmVLWdGoH\u002F\u002FPB8mnKqScAhsD0kYP3j\u002FYt5LPQe2KvcXmGvRHcDnpxfL2zOYJ1mFwrryWTz0advv1Ut4CJgf5uhDuDj5eUcAUoahrdY\u002F56ebRWeraTjMt\u002F00Sh3UDtjgHtQNHwcRGOC98BJEAEymycmYcWwOprTgcB6VZ5JK5TAJ+fXGLBm3FDAmn6oPPjR4rKCAoJCal2eAiQp2x0vxTPB3ALO2CRkwmDy5WohzBDwSEFKRwPbknEggCPB\u002FimwrycgxX2NzoMCHhPkDwqYMr9tRcP5qNrMZHkVnOjRMWwLCcr8ohBVb1OMjxLwGCvjTikrsBOiA6fNyCrm8V1rP93iVPpwaE+gO0SsWmPiXB+jikdf6SizrT5qKasx5j8ABbHpFTx+vFXp9EnYQmLx02h1QTTrl6eDqxLnGjporxl3NL3agEvXdT0WmEost648sQOYAeJS9Q7bfUVoMGnjo4AZdUMQku50McDcMWcBPvr0SzbTAFDfvJqwLzgxwATnCgnp4wDl6Aa+Ax283gghmj+vj7feE2KBBRMW3FzOpLOADl0Isb5587h\u002FU4gGvkt5v60Z1VLG8BhYjbzRwyQZemwAd6cCR5\u002FXFWLYZRIMpX39AR0tjaGGiGzLVyhse5C9RKC6ai42ppWPKiBagOvaYk8lO7DajerabOZP46Lby5wKjw1HCRx7p9sVMOWGzb\u002FvA1hwiWc6jm3MvQDTogQkiqIhJV0nBQBTU+3okKCFDy9WwferkHjtxib7t3xIUQtHxnIwtx4mpg26\u002FHfwVNVDb4oI9RHmx5WGelRVlrtiw43zboCLaxv46AZeB3IlTkwouebTr1y2NjSpHz68WNFjHvupy3q8TFn3Hos2IAk4Ju5dCo8B3wP7VPr\u002FFGaKiG+T+v+TQqIrOqMTL1VdWV1DdmcbO8KXBz6esmYWYKPwDL5b5FA1a0hwapHiom0r\u002FcKaoqr+27\u002FXcrS5UwSMbQAAAABJRU5ErkJggg==\" alt=\"DeepWiki\">\u003C\u002Fa>\n    \u003C!-- DeepWiki badge generated by https:\u002F\u002Fdeepwiki.ryoppippi.com\u002F -->\n    \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fhesreallyhim\u002Fawesome-claude-code\">\u003Cimg src=\"https:\u002F\u002Fawesome.re\u002Fmentioned-badge.svg\" alt=\"Mentioned in Awesome Claude Code\" \u002F>\u003C\u002Fa>\n    \u003Ca href=\"https:\u002F\u002F技術者倫理.com\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F%E6%8A%80%E8%A1%93%E8%80%85%E5%80%AB%E7%90%86-%E9%81%B5%E5%AE%88%E6%B8%88%E3%81%BF-0a0a0a?style=for-the-badge&labelColor=ffffff\" alt=\"技術者倫理 遵守済み\" \u002F>\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n    \u003Ca href=\"https:\u002F\u002Ftrendshift.io\u002Frepositories\u002F18533\" target=\"_blank\">\u003Cimg src=\"https:\u002F\u002Ftrendshift.io\u002Fapi\u002Fbadge\u002Frepositories\u002F18533\" alt=\"ccusage%2Fccusage | Trendshift\" style=\"width: 250px; height: 55px;\" width=\"250\" height=\"55\"\u002F>\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cdiv align=\"center\">\n    \u003Cimg src=\"https:\u002F\u002Fcdn.jsdelivr.net\u002Fgh\u002Fccusage\u002Fccusage@main\u002Fdocs\u002Fpublic\u002Fscreenshot.png\" alt=\"ccusage terminal report screenshot\">\n\u003C\u002Fdiv>\n\n> Analyze coding (agent) CLI token usage and costs from local data.\n\n## Supported Sources\n\nccusage reads local usage data from coding agent CLIs and turns it into daily, weekly, monthly, and session reports.\n\n| Source             | Focused command example  |\n| ------------------ | ------------------------ |\n| Claude Code        | `ccusage claude daily`   |\n| Codex              | `ccusage codex daily`    |\n| OpenCode           | `ccusage opencode daily` |\n| Amp                | `ccusage amp daily`      |\n| Droid              | `ccusage droid daily`    |\n| Codebuff           | `ccusage codebuff daily` |\n| Hermes Agent       | `ccusage hermes daily`   |\n| pi-agent           | `ccusage pi daily`       |\n| Goose              | `ccusage goose daily`    |\n| OpenClaw           | `ccusage openclaw daily` |\n| Kilo               | `ccusage kilo daily`     |\n| Kimi               | `ccusage kimi daily`     |\n| Qwen               | `ccusage qwen daily`     |\n| GitHub Copilot CLI | `ccusage copilot daily`  |\n| Gemini CLI         | `ccusage gemini daily`   |\n\nUse `ccusage daily`, `ccusage weekly`, `ccusage monthly`, or `ccusage session` to include every detected source in one report.\n\n## Installation\n\n### Quick Start (Recommended)\n\nYou can run ccusage directly without a global installation:\n\n```bash\n# Recommended\nbunx ccusage\n\n# Nix\nnix run github:ccusage\u002Fccusage -- daily\n\n# Alternative package runners\npnpm dlx ccusage\npnpx ccusage\nnpx ccusage@latest\n\n# PR preview builds\nbunx -p https:\u002F\u002Fpkg.pr.new\u002Fccusage\u002Fccusage@\u003Cpr-number> ccusage --offline\n```\n\n> [bunx](https:\u002F\u002Fbun.com\u002Fdocs\u002Fpm\u002Fbunx) caches the downloaded package, so repeated runs are faster after the first launch.\n\n## Usage\n\n```bash\n# Basic usage\nbunx ccusage          # Show all detected sources by day (default)\nbunx ccusage daily    # All detected sources by day\nbunx ccusage weekly   # All detected sources by week\nbunx ccusage monthly  # All detected sources by month\nbunx ccusage session  # All detected sources by session\nbunx ccusage blocks   # Claude Code 5-hour billing windows\nbunx ccusage statusline  # Claude Code status line for hooks (Beta)\n\n# Source-focused reports and options\nbunx ccusage claude daily --mode display\nbunx ccusage codex daily --speed fast\nbunx ccusage opencode weekly\nbunx ccusage amp session\nbunx ccusage droid daily\nbunx ccusage codebuff daily\nbunx ccusage hermes daily\nbunx ccusage goose daily\nbunx ccusage openclaw daily\nbunx ccusage kilo daily\nbunx ccusage kimi daily\nbunx ccusage qwen daily\nbunx ccusage copilot daily\nbunx ccusage gemini daily\nbunx ccusage pi daily --pi-path \u002Fpath\u002Fto\u002Fsessions\nbunx ccusage pi daily --pi-path \u002Fpath\u002Fto\u002Fsessions,\u002Farchive\u002Fpi\u002Fsessions\n\n# Explicit unified report\nbunx ccusage daily --all\n\n# Filters and options\nbunx ccusage daily --since 2026-04-25 --until 2026-05-16\nbunx ccusage daily --json  # JSON output\nbunx ccusage daily --no-cost  # Hide cost columns and JSON cost fields\nbunx ccusage daily --timezone UTC  # Use UTC timezone\n\n# Project analysis\nbunx ccusage claude daily --instances  # Group Claude Code by project\u002Finstance\nbunx ccusage claude daily --project myproject  # Filter to specific Claude project\nbunx ccusage claude daily --instances --project myproject --json  # Combined usage\n\n# Compact mode for screenshots\u002Fsharing\nbunx ccusage --compact  # Force compact table mode\nbunx ccusage monthly --compact  # Compact monthly report\n```\n\n## Features\n\n- 📊 **Daily Report**: View token usage and costs aggregated by date\n- 📅 **Monthly Report**: View token usage and costs aggregated by month\n- 💬 **Session Report**: View usage grouped by conversation sessions\n- 🤖 **Unified CLI Reports**: View Claude Code, Codex, OpenCode, Amp, Droid, Codebuff, Hermes Agent, pi-agent, Goose, OpenClaw, Kilo, Kimi, Qwen, GitHub Copilot CLI, and Gemini CLI usage from one CLI\n- ⏰ **5-Hour Blocks Report**: Track usage within Claude's billing windows with active block monitoring\n- 🚀 **Statusline Integration**: Compact usage display for Claude Code status bar hooks (Beta)\n- 🤖 **Model Tracking**: See which models are used across supported sources\n- 📊 **Model Breakdown**: View per-model cost breakdown with `--breakdown` flag\n- 📅 **Date Filtering**: Filter reports by date range using `--since` and `--until`\n- 📁 **Custom Paths**: Support for custom local data directory locations\n- 🎨 **Beautiful Output**: Colorful table-formatted display with automatic responsive layout\n- 📱 **Smart Tables**: Automatic compact mode for narrow terminals (\u003C 100 characters) with essential columns\n- 📸 **Compact Mode**: Use `--compact` flag to force compact table layout, perfect for screenshots and sharing\n- 📋 **Enhanced Model Display**: Model names shown as bulleted lists for better readability\n- 📄 **JSON Output**: Export data in structured JSON format with `--json`\n- 💰 **Cost Tracking**: Shows costs in USD for each day\u002Fmonth\u002Fsession\n- 🔒 **Cost Hiding**: Remove cost columns and JSON cost fields with `--no-cost`\n- 🔄 **Cache Token Support**: Tracks and displays cache creation and cache read tokens separately\n- 🌐 **Offline Mode**: Use pre-cached pricing data without network connectivity with `--offline`\n- 🧩 **Custom Pricing Overrides**: Override token pricing per raw model name in `ccusage.json` without rebuilding\n- 🏗️ **Claude Instance Support**: Group Claude Code usage by project with `--instances` and filter by specific projects\n- 🌍 **Timezone Support**: Configure timezone for date grouping with `--timezone` option\n- ⚙️ **Configuration Files**: Set defaults with JSON configuration files, complete with IDE autocomplete and validation\n\n## Documentation\n\nFull documentation is available at **[ccusage.com](https:\u002F\u002Fccusage.com\u002F)**\n\n## Development\n\n\u003Cdetails>\n\u003Csummary>Contributor setup\u003C\u002Fsummary>\n\nContributor setup uses the Nix flake development environment with [nix-direnv](https:\u002F\u002Fgithub.com\u002Fnix-community\u002Fnix-direnv) for pinned tools, and `just` for everyday development tasks. Install [Nix](https:\u002F\u002Fnixos.org\u002F) with the `nix-command` and `flakes` experimental features enabled, then let nix-direnv load the dev shell automatically when you enter the directory:\n\n```sh\n# Clone the repository\ngit clone https:\u002F\u002Fgithub.com\u002Fccusage\u002Fccusage.git\ncd ccusage\n\n# Allow direnv to load the Nix dev shell\ndirenv allow\n```\n\nThe dev shell provides the pinned `pnpm`, Rust toolchain, GitHub CLI, git hooks, generated local agent skills, and project utilities from `flake.nix`. It also installs package dependencies from `pnpm-lock.yaml` when needed.\n\nRun project tasks with `just` from inside the Nix environment (`just --list` shows every recipe):\n\n```sh\njust fmt\njust test\njust check\n```\n\n### Nix Package\n\nThe flake exposes `ccusage` as the default package and app:\n\n```sh\nnix run github:ccusage\u002Fccusage\nnix run github:ccusage\u002Fccusage -- codex daily --offline\nnix build github:ccusage\u002Fccusage\n```\n\nNix builds embed the LiteLLM pricing file from the locked `litellm` flake input, so sandboxed builds do not fetch pricing at build time. To update the locked pricing snapshot:\n\nNon-Nix Cargo builds read the same locked LiteLLM revision from `flake.lock` and fetch the pricing file from that revision at build time.\n\n```bash\njust update-litellm-pricing\n```\n\nThe scheduled `update pricing` workflow runs the same update and validation, then opens a PR when the pricing snapshot changes.\n\n\u003C\u002Fdetails>\n\n## Sponsors\n\n\u003Cp align=\"center\">\n    \u003Cstrong>Sponsored by\u003C\u002Fstrong>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n    \u003Ca href=\"https:\u002F\u002Fcoderabbit.link\u002Fryoppippi\">\n        \u003Cpicture>\n            \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"https:\u002F\u002Fcdn.jsdelivr.net\u002Fgh\u002Fccusage\u002Fccusage@main\u002Fdocs\u002Fpublic\u002Fcoderabbit-logo-dark.svg\">\n            \u003Cimg src=\"https:\u002F\u002Fcdn.jsdelivr.net\u002Fgh\u002Fccusage\u002Fccusage@main\u002Fdocs\u002Fpublic\u002Fcoderabbit-logo.svg\" alt=\"CodeRabbit\" width=\"320\">\n        \u003C\u002Fpicture>\n    \u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n    \u003Ca href=\"https:\u002F\u002Fblacksmith.sh\">\n        \u003Cimg src=\"https:\u002F\u002Fcdn.jsdelivr.net\u002Fgh\u002Fccusage\u002Fccusage@main\u002Fdocs\u002Fpublic\u002Fblacksmith.png\" alt=\"Blacksmith\" width=\"320\">\n    \u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n    \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fsponsors\u002Fryoppippi\">\n        \u003Cimg src=\"https:\u002F\u002Fsponsors.ryoppippi.com\u002Fsponsors.png\" alt=\"Sponsors\">\n    \u003C\u002Fa>\n\u003C\u002Fp>\n\n## Star History\n\n\u003Ca href=\"https:\u002F\u002Fwww.star-history.com\u002F#ccusage\u002Fccusage&Date\">\n    \u003Cpicture>\n        \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"https:\u002F\u002Fapi.star-history.com\u002Fsvg?repos=ccusage\u002Fccusage&type=Date&theme=dark\" \u002F>\n        \u003Csource media=\"(prefers-color-scheme: light)\" srcset=\"https:\u002F\u002Fapi.star-history.com\u002Fsvg?repos=ccusage\u002Fccusage&type=Date\" \u002F>\n        \u003Cimg alt=\"Star History Chart\" src=\"https:\u002F\u002Fapi.star-history.com\u002Fsvg?repos=ccusage\u002Fccusage&type=Date\" \u002F>\n    \u003C\u002Fpicture>\n\u003C\u002Fa>\n\n## License\n\n[MIT](LICENSE) © [@ryoppippi](https:\u002F\u002Fgithub.com\u002Fryoppippi)\n",2,"2026-06-11 04:13:02","top_language"]