Skip to content

Linux system tray app for monitoring AI subscription usage (Claude, Codex). Inspired by CodexBar for macOS.

License

Notifications You must be signed in to change notification settings

radoslavchobanov/PlasmaCodexBar

Repository files navigation

PlasmaCodexBar

Python 3.8+ KDE Plasma 6 License: MIT

A native KDE Plasma 6 system tray widget for monitoring AI subscription usage. Inspired by CodexBar for macOS.

Quick Install

git clone https://github.com/radoslavchobanov/plasmacodexbar.git
cd plasmacodexbar
./install-plasmoid.sh

That's it! The widget will appear in your system tray.

Features

  • Native Plasma 6 Widget: Seamless system tray integration
  • Multi-Provider Support: Monitor Claude and Codex/ChatGPT usage
  • Real-time Tracking:
    • Session usage (5-hour window)
    • Weekly usage with reset countdown
    • Per-model quotas (Sonnet, Opus, etc.)
    • Extra usage and cost estimation
  • Visual Progress Bars: Color-coded (green → yellow → red)

Requirements

  • KDE Plasma 6
  • Python 3.8+
  • Claude Code CLI authenticated (for Claude monitoring)
  • Codex CLI authenticated (for Codex monitoring)

Alternative Installation

From KDE Store

  1. Right-click desktop → "Add Widgets" → "Get New Widgets" → "Download New Plasma Widgets"
  2. Search for "PlasmaCodexBar"
  3. Click "Install"

From .plasmoid file

kpackagetool6 -t Plasma/Applet -i plasmacodexbar-1.0.0.plasmoid

Usage

Click the robot icon in your system tray to view:

  • Provider tabs (Claude / Codex) with logos
  • Session and weekly usage bars
  • Models section with per-model breakdown
  • Extra usage and estimated costs
  • Quick links to provider dashboards

Configuration

If the widget doesn't appear automatically:

  1. Right-click on the system tray
  2. Select "Configure System Tray..."
  3. Go to "Entries" tab
  4. Find "PlasmaCodexBar" → set to "Always shown"

Troubleshooting

"Not connected" for Claude

  • Ensure Claude Code CLI is authenticated: run claude and complete login

"Not connected" for Codex

  • Ensure Codex CLI is authenticated: check ~/.codex/auth.json exists

Widget not showing

  • Restart plasmashell: kquitapp6 plasmashell && kstart plasmashell

Uninstall

kpackagetool6 -t Plasma/Applet -r org.kde.plasma.plasmacodexbar

Credits

  • Inspired by CodexBar by Peter Steinberger
  • Uses Anthropic and OpenAI OAuth APIs

License

MIT License - see LICENSE file for details.

About

Linux system tray app for monitoring AI subscription usage (Claude, Codex). Inspired by CodexBar for macOS.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •