Skip to content

About

Lightweight, native system tray indicator for OpenAI Codex usage and rate limits on KDE Plasma.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

Repository files navigation

Codex Pulse logo

Codex Pulse

Your Codex limits, a click away.

A lightweight, native system tray indicator for OpenAI Codex usage on KDE Plasma.

Build Qt 6 C++17 MIT license

Download · Get started · Data sources · Contributing · Report a bug

A quiet place for your quotas

  • Local by default. Reads quota snapshots already saved by Codex. Online checks for free resets are optional and use the existing CLI login.
  • An outline and a dot. A monochrome pulse icon fits the panel; a small color dot shows the quota state. A fully colored variant is also available.
  • Details on demand. Click the tray icon for 5-hour and weekly limits, remaining percentages, progress bars and reset times.
  • Free resets before they expire. Open the Free resets tab for available resets, their expiry dates and a countdown to the closest deadline. The tray opens on Usage.
  • Light and dark. Follow the desktop theme or choose an appearance. Adjust icon contrast independently for the panel.
  • Window status at a glance. A replenished quota shows 100% and an idle timer. Local snapshots show their recording time and a stale label when applicable.
  • Native Qt 6. C++17 and Qt Widgets, with an optional Codex app-server source for live reads through the CLI.

Take a look

Usage · light Usage · dark
Codex Pulse in light mode Codex Pulse in dark mode

Free resets tab with three demo credits and a countdown to the closest expiry
Free resets · available credits and expiry dates

Outline tray icons with green, amber, red and grey status dots on light and dark panels

Previews use demo data. The tray dot indicates the current status.

Hover over the tray icon for a quick read of your remaining quotas:

5-hour: 76% left
Weekly: 24% left

Click the icon for progress bars and reset times. Right-click for Settings and Quit.

Get started

Requires Linux, a C++17 compiler, CMake 3.21+ and Qt 6.4+ Widgets development files.

On Ubuntu 24.04 / KDE neon:

sudo apt install build-essential cmake qt6-base-dev python3
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -j
./build/codex-pulse --tray

The app reads ~/.codex/sessions and ~/.codex/archived_sessions, or the corresponding directories in CODEX_HOME. If no quota snapshot exists yet, use Codex in your terminal, then click Refresh.

Local mode does not need to find codex on the desktop's PATH. It uses the files your CLI already writes.

Try the interface without touching your Codex data:

./build/codex-pulse --demo

Install for your user

cmake --install build --prefix ~/.local

Ensure ~/.local/bin is in the desktop session's PATH for the installed launcher. Closing the window keeps the app in the tray; right-click the icon and choose Quit to exit. If no system tray is available, the app opens a regular window and exits when it closes.

Debian package

Download the .deb for your distribution from GitHub Releases. Packages are available for KDE neon with native Wayland placement and Ubuntu 24.04 with XWayland placement, both for amd64. In the download directory, install the package using its filename:

sudo apt install ./codex-pulse_0.1.1_kde-neon_amd64.deb

For Ubuntu, use codex-pulse_0.1.1_ubuntu-24.04_amd64.deb. See Building a Debian package for other build environments.

Start automatically in Plasma

Add the command /usr/bin/codex-pulse --autostart in System Settings → Autostart. For a user install, use the absolute path to ~/.local/bin/codex-pulse instead. Codex Pulse waits for the tray to come up at login and runs in the background. You can remove the entry from the same settings page.

KDE Wayland panels

With LayerShellQt 6.6+ available at build time, the usage panel uses a native Wayland layer surface. It opens next to the tray when icon geometry is available, or at the lower right of the active screen, above the desktop panel. It reserves no screen space. Click again, press Escape or switch focus to dismiss it. Settings open as a separate window.

On a recent KDE neon installation, install liblayershellqtinterface-dev before configuring CMake. The integration is detected automatically. Builds without it use XWayland when available so the popup can still be positioned; an explicit QT_QPA_PLATFORM setting is respected. -DWITH_LAYER_SHELL=OFF disables the native integration.

Make it fit your panel

Open Settings from the popup or the tray menu.

Setting Options
Usage source Local session logs (default), or Codex app-server
Free resets Check on demand in the Free resets tab, or enable automatic online checks through Codex
Appearance Follow desktop, Light, Dark
Tray icon Outline with a status dot (default), or colored outline
Outline contrast Automatic, light panel, dark panel
Refresh interval 30–3600 seconds; default 60

The lower of the available remaining percentages determines the status:

Dot Meaning
🟢 Normal More than 25% left
🟡 Low 25% or less left
🔴 Critical 10% or less left
⚪ Offline / stale No usable windows, or a local snapshot older than 15 minutes

Refresh in local mode rereads the quota files. It also checks free resets if you enable automatic online checks. Local snapshots may lag behind activity on other devices. The popup shows their original recording time. How data is read →

Useful commands

# Print the local quota snapshot as JSON
QT_QPA_PLATFORM=offscreen ./build/codex-pulse --read-local

# Open the demo with a specific appearance
./build/codex-pulse --demo --theme dark

# Run the offline test suite
ctest --test-dir build --output-on-failure

See Contributing for development and preview commands. GitHub Actions builds Debug and Release and publishes demo previews as workflow artifacts.

Credits & license

The interaction takes cues from Omarchy's agents panel: compact quota rows, meters and reset times. Codex Pulse has its own Qt Widgets implementation.

Licensed under MIT. An independent project, unaffiliated with OpenAI or KDE.

About

Lightweight, native system tray indicator for OpenAI Codex usage and rate limits on KDE Plasma.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages