A simple shell script to track your Warp AI usage directly from your terminal, without needing to visit the web app every time. Perfect for monitoring your AI requests to avoid overuse!
- ๐ Complete Usage Statistics: Total requests, daily breakdown, weekly summary
- ๐ All-Time Records: Track your usage since day one
- ๐ฅ Top Usage Days: See your most active coding days
- โก Quick Check: One-liner status for fast monitoring
โ ๏ธ Smart Warnings: Alerts when daily usage gets high- ๐ง Model Breakdown: See which AI models you're using
- ๐ฑ Easy Aliases: Simple commands like
warp-usageandwarp-quick
Warp AI is awesome but it's paid, so you want to keep track of your usage without constantly checking the web app. This script reads directly from Warp's local SQLite database to give you instant insights.
# Clone the repo
git clone https://github.com/MatchaBear/warp-ai-usage-tracker.git
cd warp-ai-usage-tracker
# Run the installer
./install.sh# Copy scripts to your home directory
cp warp_usage_checker.sh ~/
cp warp_quick_check.sh ~/
# Make them executable
chmod +x ~/warp_usage_checker.sh
chmod +x ~/warp_quick_check.sh
# Add aliases to your shell config
echo 'alias warp-usage="~/warp_usage_checker.sh"' >> ~/.zshrc
echo 'alias warp-quick="~/warp_quick_check.sh"' >> ~/.zshrc
source ~/.zshrcwarp-usageOutput Example:
๐ค Warp AI Usage Report
=======================
๐ Total AI Requests: 400
๐ฏ Pertama kali pake Warp AI: 2025-04-06
๐ Terakhir pake: 2025-06-01
โฑ๏ธ Total hari menggunakan: 57 hari
๐ Rata-rata requests per hari: 6.9
๐
Requests Hari Ini: 51
๐ Requests 7 Hari Terakhir: 51
๐ All-Time Breakdown Per Hari:
-------------------------------
2025-06-01: 51 requests
2025-05-20: 1 requests
2025-05-18: 210 requests
...
๐ฅ Top 5 Hari Paling Aktif:
---------------------------
2025-05-18: 210 requests
2025-04-08: 98 requests
...
warp-quickOutput Example:
๐ค Warp AI Usage: Total 400 | Hari ini 51 | 7 hari 51 | Avg/hari 6.9
โ ๏ธ Warning: Usage hari ini udah 51 requests, lumayan tinggi nih!
The script reads from Warp's local SQLite database located at:
~/Library/Application Support/dev.warp.Warp-Stable/warp.sqlite
It queries the ai_queries table to get:
- Request timestamps
- Model usage
- Conversation data
- Usage patterns
- macOS (where Warp runs)
- Warp Terminal installed
- SQLite3 (pre-installed on macOS)
- Bash/Zsh shell
- โ Local only: No data sent anywhere, everything stays on your machine
- โ Read-only: Scripts only read from the database, never modify
- โ No sensitive data: Only counts and timestamps, no actual query content
You can modify the scripts to:
- Change warning thresholds
- Add more statistics
- Customize output format
- Add different time ranges
Contributions welcome! Feel free to:
- Add new features
- Improve the output format
- Add support for other platforms
- Fix bugs or improve performance
MIT License - feel free to use, modify, and share!
Made with โค๏ธ for the Warp community. Keep coding and stay aware of your AI usage!
Pro tip: Run warp-quick at the start of your coding sessions to check your usage before diving deep into AI-assisted development! ๐ก