Skip to content

ai-dev-2024/UsageBar

Repository files navigation

UsageBar Banner

πŸ–₯️ Windows system tray app for AI coding tool usage stats

Windows Built with Antigravity Ko-fi Release License

Download

Features β€’ Screenshots β€’ Installation β€’ Providers β€’ Acknowledgments


🎯 What is UsageBar?

UsageBar is a lightweight Windows-only system tray application that displays your AI coding tool usage statistics at a glance. Stay on top of your usage limits across multiple AI coding assistants without switching between browser tabs or apps.

⚠️ Windows Only – This app is designed exclusively for Windows 10/11. For macOS, check out CodexBar.


✨ Features

  • πŸ–₯️ System Tray Integration – Lives in your taskbar, always accessible
  • πŸ“Š Real-time Usage Meters – Session and weekly usage at a glance
  • ⌨️ Customizable Hotkey – Default Ctrl+Shift+U, configurable in Settings
  • ⏱️ Reset Countdown Timers – Shows "Resets in 2h 15m" for quick reference
  • πŸ”” Quota Alert Notifications – Windows toast notification when usage > 80%
  • πŸ”„ Auto-Refresh – Configurable refresh intervals (1-30 minutes)
  • 🎨 Glassmorphism UI – Modern gradient design with transparency slider
  • πŸ”Œ Multi-Provider Support – Monitor usage across multiple AI tools
  • ⚑ Instant Toggle – Enable/disable providers with one click
  • πŸ“ˆ Dynamic Tray Icon – Usage meter updates in real-time
  • πŸ”— Quick Links – Jump to dashboards and status pages
  • πŸͺŸ Frameless & Resizable – Drag to move, resize as needed
  • πŸ†• One-Click Updates – Version badge shows when updates are available

πŸ“Έ Screenshots

Tray Popup
System tray popup with transparent glass effect and usage stats

Settings Window
Settings window with gradient glassmorphism theme


πŸ“₯ Installation

Windows (Portable) - Recommended

Latest Version: v1.4.1 – Glassmorphism UI, transparency slider, click-to-update

  1. Go to Releases.
  2. Download UsageBar-v1.4.1-Portable.zip.
  3. Extract the ZIP file to a folder of your choice (e.g., Documents\UsageBar).
  4. Open the folder and double-click UsageBar.exe to run.
  5. (Optional) Right-click UsageBar.exe β†’ "Send to" β†’ "Desktop (create shortcut)" for easy access.

Auto-Updates

UsageBar automatically checks for updates on launch. When an update is available:

  1. The version badge (top-right in Settings) changes to "πŸ”„ Update Available"
  2. Click it to download the update
  3. Once downloaded, click "βœ… Install Update" to restart with the new version

Build from Source

# Clone the repository
git clone https://github.com/ai-dev-2024/UsageBar.git
cd UsageBar

# Install dependencies
npm install

# Run in development
npm run dev

# Build installer
npm run package

πŸ”Œ Supported Providers

Status Summary: βœ… 3 Tested & Working | ⚠️ 1 Limited | ❓ 3 Untested

Provider Auth Method Status Docs
Cursor Browser login βœ… Tested docs/cursor.md
GitHub Copilot GitHub OAuth βœ… Tested docs/copilot.md
Antigravity (Windsurf) Auto-detect βœ… Tested docs/antigravity.md
Claude Browser/CLI ⚠️ Limited docs/claude.md
Codex (OpenAI) CLI ❓ Untested docs/codex.md
Factory (Droid) App login ❓ Untested docs/factory.md
z.ai API Token ❓ Untested docs/zai.md

πŸ“– See docs/provider.md for the provider authoring guide.


βš™οΈ Configuration

General Settings

  • Refresh Interval: 1, 2, 5, 10, 15, or 30 minutes
  • Reset Session Daily: Auto-reset session meter every 24 hours
  • Global Hotkey: Customizable keyboard shortcut (default: Ctrl+Shift+U)

Provider Settings

Each provider can be individually enabled/disabled. Some require additional configuration:

  • Providers with auto-detection work out-of-the-box
  • CLI-based providers need you to run their login command
  • API-based providers need an API key in Settings

πŸ› οΈ Development

# Install dependencies
npm install

# Run development mode
npm run dev

# Build for production
npm run package

# Clean build artifacts
npm run clean

Tech Stack

  • Electron – Cross-platform desktop framework
  • TypeScript – Type-safe JavaScript
  • electron-builder – Packaging and distribution
  • electron-store – Persistent settings storage

πŸ™ Acknowledgments

  • CodexBar by @steipete – The original macOS inspiration for this project. UsageBar is the Windows counterpart, bringing the same great experience to Windows users.
  • Thanks to all the AI coding tool providers for making development more productive!

πŸ’– Support

If you find UsageBar helpful, consider supporting the development:

Support on Ko-fi

πŸ“„ License

MIT License – feel free to use, modify, and distribute.


Made with ❀️ for the Windows developer community

About

Windows system tray app for AI coding tool usage stats - Inspired by CodexBar for macOS

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 20