KDECodexBar is a native Linux/KDE port of CodexBar by Peter Steinberger (@steipete).
It tracks your usage limits for various AI providers (Codex, Claude, Gemini, Antigravity) directly from your system tray.
- Real-time Usage Tracking: Monitors API usage boundaries for:
- Codex (OpenAI)
- Claude (Anthropic)
- Gemini (Google)
- Antigravity (Cursor/IDE integration)
- System Tray Integration:
- Dynamic Icon: Shows a visual pie-chart representation of your remaining quota for the selected provider.
- Tooltip: Displays detailed usage percentages and model breakdowns on hover.
- Context Menu: Quickly switch which provider's metrics are displayed in the icon.
- Antigravity Metrics: Specifically customized order (Pro -> Claude -> Flash) for optimal visibility.
- Settings & Customization:
- Refresh Interval: Configurable polling (Manual, 1 min, 3 min, 5 min, 15 min).
- Autostart: Easily toggle "Run at Startup" for seamless integration.
This application relies on Qt 6 and KDE Frameworks 6.
Install from the AUR package (kdecodexbar):
yay -S kdecodexbarsudo pacman -S cmake extra-cmake-modules qt6-base qt6-tools kstatusnotifieritem kcoreaddons kconfig ki18n kwindowsystem-
Clone the repository (if you haven't already).
-
Create a build directory:
mkdir build cd build -
Configure with CMake:
cmake ..
-
Build:
make -j$(nproc)
Run the executable from the build directory:
./src/app/kdecodexbarTo install system-wide (optional):
sudo make installThis will install the binary and the .desktop file, allowing you to launch it from your application launcher (search for "KDECodexBar").
- Right-click the tray icon.
- Select Settings.
- Adjust the Refresh Interval or toggle Run at Startup.
- Data is automatically refreshed based on the interval. You can also manually trigger a Refresh All from the context menu.
MIT