Skip to content

Commit b3d7c30

Browse files
Initial commit
0 parents  commit b3d7c30

26 files changed

Lines changed: 1515 additions & 0 deletions

.gitignore

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# macOS
2+
.DS_Store
3+
.AppleDouble
4+
.LSOverride
5+
6+
# Xcode user data
7+
xcuserdata/
8+
*.xcuserstate
9+
*.xccheckout
10+
*.xcscmblueprint
11+
12+
# Xcode workspace settings
13+
project.xcworkspace/xcuserdata/
14+
project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
15+
16+
# Build artifacts
17+
build/
18+
DerivedData/
19+
*.app
20+
*.ipa
21+
*.dSYM.zip
22+
*.dSYM
23+
24+
# Swift Package Manager
25+
.build/
26+
Packages/
27+
Package.resolved
28+
*.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/
29+
30+
# Temporary files
31+
*.swp
32+
*~

LICENSE

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Stuart Cameron
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Clive
2+
3+
A macOS menu bar app that displays your [Claude Code](https://docs.anthropic.com/en/docs/claude-code) usage statistics at a glance.
4+
5+
![Screenshot](image.png)
6+
7+
![macOS](https://img.shields.io/badge/macOS-14.0+-blue)
8+
![Swift](https://img.shields.io/badge/Swift-5.9+-orange)
9+
![License](https://img.shields.io/badge/License-MIT-green)
10+
11+
## Features
12+
13+
- **Real-time usage tracking** - Monitor your Claude Code session and weekly usage limits
14+
- **Multiple display modes**:
15+
- Text: Shows percentages directly (e.g., `CC: 45% (32% weekly)`)
16+
- Pie Charts: Visual representation with two pie charts
17+
- Bar Charts: Stacked horizontal bars
18+
- **Color-coded indicators** - Green (<70%), Orange (70-89%), Red (90%+)
19+
- **Configurable refresh intervals** - From 1 minute to 30 minutes
20+
- **Session reset times** - See when your session usage will reset
21+
22+
## Disclaimer
23+
24+
Honestly, I vibe coded this thing in the space of an hour. It works for me, hopefully it works for you too. I just wanted to be able to keep an eye on my token budget without having to manually go looking for it.
25+
26+
## Requirements
27+
28+
- macOS 14.0 or later
29+
- [Claude Code CLI](https://docs.anthropic.com/en/docs/claude-code) installed at `/opt/homebrew/bin/claude`
30+
31+
## Installation
32+
33+
1. Clone this repository
34+
2. Open `clive.xcodeproj` in Xcode
35+
3. Build and run (⌘R)
36+
4. Optionally, add to Login Items for auto-start
37+
38+
## Usage
39+
40+
Once running, Clive appears in your menu bar showing your Claude Code usage. Click the icon to see:
41+
42+
- **Session usage** - Current session percentage and reset time
43+
- **Weekly usage** - Current week's percentage
44+
45+
Access Settings (⌘,) to configure:
46+
- Display mode (Text, Pie Charts, or Bar Charts)
47+
- Refresh interval (1-30 minutes)
48+
49+
## How It Works
50+
51+
Clive periodically runs `claude /usage` to fetch your current usage statistics and displays them in the menu bar. The app parses the output to extract session and weekly usage percentages.
52+
No hacking of session tokens etc required :).
53+
54+
## License
55+
56+
MIT License - see [LICENSE](LICENSE) for details.

0 commit comments

Comments
 (0)