TokenTracker is a lightweight, self-hosted CLI tool that gives you complete visibility and control over your AI token usage and spending across any OpenAI-compatible provider.
It tracks every API call, calculates real costs in real-time, enforces monthly budgets, and sends intelligent Telegram alerts when you’re approaching or exceeding your limits.
Key Features:
• Track usage per agent, per model, and per task
• Set custom monthly budgets with alerts at 80%, 90%, and 100%
• Generate beautiful daily/weekly reports with breakdowns
• Continuous “watch” mode with automated daily summaries
• Supports DeepSeek V4 Flash, GPT-4o, GPT-4.1, Claude Sonnet 4, Claude Haiku, and any custom OpenAI-compatible endpoint
• Local-first — your data never leaves your server
• One-command install and setup
Installation: