Claude Codex Usage Companion

LINUX APP

Claude Code and Codex usage on your Linux desktop

Claude Codex Usage Companion is a local, open-source usage monitor. A small always-on-top panel, tray icon, Plasma 6 widget, and CLI show remaining session and weekly limits with local reset times.

FEATURES

Keep an eye on your limits while you work

Always-on-top panel

A compact Avalonia panel shows the 5h and weekly limits for each provider, with remaining percentage, local reset time, and credit details.

Two providers, one panel

Claude Code and Codex are both enabled by default. Turn off either provider in Settings to stop its usage checks.

Tray icon and Plasma widget

Four tray icon styles, plus a KDE Plasma 6 widget with circle or bar views for the panel and desktop.

CLI for scripts

Print current limits once, refresh continuously in the terminal, or return JSON for your own tools.

Alerts and logging

Optional low-usage alerts, reset notifications, and CSV usage logs. Automatic update checks tell you when a new release is out.

Local and private

No telemetry. The app talks only to each provider, renews Claude credentials in their original file, and never writes tokens to logs.

SCREENSHOTS

See it in action

Usage panel
Usage panel
Settings window
Settings
Plasma 6 widget in compact circle view
Plasma 6 widget
Expanded Plasma 6 widget popup
Widget popup

REQUIREMENTS

Before you install

INSTALL

Choose a package

Download one package from the latest release. The commands below use v0.1.3; change the file name if you download a newer version.

Debian package (.deb)Debian, Ubuntu, Kubuntu · includes the Plasma widget
sudo apt install ./claude-codex-usage-companion_0.1.3_amd64.deb

Installs the claude-codex-usage-companion command, the shorter claude-codex-usage alias, an application menu entry, and the Plasma 6 widget. Required host libraries are installed automatically.

Snap package (.snap)Any distribution with snapd
sudo apt install libx11-6 libice6 libsm6 libfontconfig1 libharfbuzz0b fonts-noto-cjk libnotify-bin
sudo snap install --classic --dangerous ./claude-codex-usage-companion_0.1.3_amd64.snap
sudo snap alias claude-codex-usage-companion claude-codex-usage

--dangerous is needed because the file does not come from the Snap Store. Classic confinement lets the app read ~/.codex, renew Claude credentials in ~/.claude, start the codex CLI, and send notifications. The alias command is optional.

To add the Plasma widget that ships inside the snap:

kpackagetool6 --type Plasma/Applet --install /snap/claude-codex-usage-companion/current/usr/share/plasma/claude-codex-usage-companion-0.1.3.plasmoid
Portable archive (.tar.gz)No root access needed
sudo apt install libx11-6 libice6 libsm6 libfontconfig1 libharfbuzz0b fonts-noto-cjk libnotify-bin
tar -xzf claude-codex-usage-companion-0.1.3-linux-x64.tar.gz
cd claude-codex-usage-companion-0.1.3-linux-x64
install -D -m 755 claude-codex-usage-companion ~/.local/bin/claude-codex-usage-companion

Make sure PATH includes ~/.local/bin. The archive does not add a menu entry or the short alias. It contains a .plasmoid widget package that you can install with kpackagetool6.

Codex plugin (.zip)Let Codex start and refresh the app
codex plugin marketplace add /path/to/extracted-marketplace

Extract CodexUsageCompanionMarketplace-v0.1.3-linux-x64.zip and add it as a marketplace. Install and enable the plugin, then trust its SessionStart and Stop hooks when Codex asks. The plugin contains its own copy of the app.

To verify downloads, put SHA256SUMS in the same directory and run sha256sum --check --ignore-missing SHA256SUMS. Every file should show OK.

SET UP

Connect Codex and Claude Code

  1. Install and sign in to Codex CLI

    The app reads Codex usage through the official CLI's app-server subcommand.

    curl -fsSL https://chatgpt.com/codex/install.sh | sh
    codex login
  2. Check that Codex is ready

    command -v codex
    codex login status
    codex app-server --help >/dev/null && echo "Codex app-server is available"

    If Codex is somewhere unusual, set CODEX_CLI_PATH=/absolute/path/to/codex.

  3. Sign in to Claude Code (optional)

    Install Claude Code, sign in, and run claude once to create ~/.claude/.credentials.json. If you don't use Claude Code, clear Enable Claude usage in Settings.

USAGE

Start the panel or use the CLI

  1. Open the panel

    Launch Claude Codex Usage Companion from the application menu, or run:

    claude-codex-usage-companion gui

    Select ⚙ Settings to change language, theme, position, tray icon, alerts, logging, and automatic startup at login.

  2. Add the Plasma 6 widget

    Right-click the desktop or panel, select Add Widgets, search for “Claude Codex Usage”, and drag it into place.

  3. Use the CLI

    claude-codex-usage status             # print current limits
    claude-codex-usage status --json      # machine-readable JSON
    claude-codex-usage watch --interval 30 # refresh every 30 seconds
    claude-codex-usage config             # show settings path and values

    Without the alias, use claude-codex-usage-companion. Settings are stored in ~/.config/claude-codex-usage-companion/settings.json.

  4. Uninstall

    Turn off automatic startup in Settings first, then run the command for your package:

    sudo apt remove claude-codex-usage-companion   # .deb
    sudo snap remove claude-codex-usage-companion  # .snap
    rm ~/.local/bin/claude-codex-usage-companion   # .tar.gz

HOW IT WORKS

Where does the usage data come from?

Codex usage comes from the official Codex CLI. Claude Code has no official usage API, so the app uses the token Claude Code stores locally to call Anthropic's undocumented usage endpoint, at most once every 180 seconds. That endpoint can change without notice. This is an independent open-source project under the MIT License, based on gkfriend/codex-usage-companion, and is not affiliated with Anthropic or OpenAI.