这是一款美观的 macOS 菜单栏应用,可实时跟踪您的 Claude 代码使用情况。
A lightweight, native Swift macOS menu bar app for tracking your Claude Code usage in real-time. Monitor token consumption, costs, session blocks, and server-side limits with an elegant native interface.
CCSeva runs as a menu-bar-only app built on NSStatusItem + NSPopover + SwiftUI. It's roughly 3 MB installed with zero runtime dependencies — no Electron, no Node, near-zero idle overhead. It parses your ~/.claude transcripts directly and shows real server-truth limit gauges (5-hour + weekly utilization with reset countdowns and a predicted cutoff time). The app lives in swift/.
Note: The original Electron app is now legacy and being phased out in favor of this native Swift app. It is still present in the repository root (see Legacy: Electron app below).
~/.claude/projects/**/*.jsonl directly with incremental scanning and dedupDownload the latest release from GitHub Releases:
CCSeva--arm64.zip or CCSeva--arm64.dmgFirst launch (unsigned build): Until a Developer ID certificate is configured, release artifacts are ad-hoc signed. The first time you open the app, macOS Gatekeeper will block it. Either right-click
CCSeva.app→ Open (then confirm), or remove the quarantine attribute:xattr -dr com.apple.quarantine CCSeva.app
Requires Xcode 16.4 / Swift 6.1 and macOS 14+ (Sonoma).
git clone https://github.com/Iamshankhadeep/ccseva.git
cd ccseva/swift
./scripts/build-app.sh # release build → dist/CCSeva.app (ad-hoc codesigned)
mv dist/CCSeva.app /Applications/
See swift/README.md for full build, architecture, and data-pipeline details.
The app automatically detects your Claude Code configuration from the ~/.claude directory and refreshes on file changes (with a periodic fallback poll).
Open Settings → claudecode.directory → Connect with GitHub to pair this Mac with your private usage dashboard. CCSeva opens a short-lived verification page in your browser and stores the resulting device credential in macOS Keychain. Connected Macs sync idempotent daily/model aggregates in the background and can be disconnected from either CCSeva or the website.
Sync is local-first and opt-in. CCSeva uploads token totals, estimated cost, date, timezone, harness, provider, and model. It never uploads prompts, responses, transcript content, project names or paths, request IDs, API keys, or Claude OAuth credentials.
For local integration testing, set CCSEVA_DIRECTORY_URL to the dynamic directory server URL.
Production builds default to https://claudecode.directory.
~/.claude data)NSStatusItem / NSPopover)The Electron app is being phased out in favor of the native Swift app above. It remains in the repository root (
main.ts,preload.ts, andsrc/) for now, but new development targets the Swift app.
The original CCSeva was a macOS menu bar app built with Electron 36, React 19, TypeScript 5, Tailwind CSS 3, and Radix UI, using the ccusage package for data integration.
git clone https://github.com/Iamshankhadeep/ccseva.git
cd ccseva
npm install
npm run build
npm start
npm run electron-dev # hot reload development
The Electron app requires Node.js 18+ to build and runs on macOS 10.15+.
MIT License - see LICENSE file for details.
Built with ❤️ using Swift, SwiftUI, and ccusage (for the usage data format and 5-hour block algorithm). The legacy app additionally uses Electron, React, and Tailwind CSS.
Note: This is an unofficial tool for tracking Claude Code usage. Requires a valid Claude Code installation and configuration.
暂无开放 Issues,或尚未同步最近议题。