A standalone Quickshell left panel that shows CodexBar provider usage, reset timers, credits, cost, and status on Linux.
codexbar CLI → codexbar-sidebard → state.json → Quickshell sidebar
This repository ships only the Rust daemon, control CLI, and Quickshell UI. It does not vendor the CodexBar macOS app or SwiftUI sources. The CodexBar CLI is installed as an upstream prebuilt Linux binary from steipete/CodexBar releases.
git clone https://github.com/rabesss/codexbar-linux-sidebar.git
cd codexbar-linux-sidebar
./scripts/install.shRequirements:
- Rust toolchain (
cargo) - Quickshell (for the UI panel)
curl,sha256sum(for CodexBar CLI fetch)
# Start background daemon (systemd --user if available)
codexbar-sidebarctl start
# One-shot refresh / mock dev data
codexbar-sidebard --once --mock
# Status summary
codexbar-sidebarctl status
# Launch sidebar UI
quickshell --path ~/.local/share/codexbar-linux-sidebar/quickshellState file: $XDG_RUNTIME_DIR/codexbar-sidebar/state.json
| Component | Role |
|---|---|
codexbar |
Upstream CLI: usage + status + cost JSON |
codexbar-sidebard |
Polls CodexBar, normalizes provider cards, atomic-writes state |
codexbar-sidebarctl |
start / stop / status / refresh |
quickshell/ |
FileView.watchChanges UI with 5s timer fallback |
Collectors (each poll cycle):
codexbar --provider all --format json --json-only --status
codexbar cost --format json --json-only # Claude + Codex onlyWe intentionally do not ship CodexBar Swift/macOS sources in this repo.
scripts/fetch-codexbar-cli.shdownloads the officialCodexBarCLI-v*-linux-*.tar.gzrelease asset- Installs to
~/.local/share/codexbar-cli/with aVERSIONfile - Symlinks
~/.local/bin/codexbar
To pin a version:
CODEXBAR_VERSION=0.32.4 ./scripts/fetch-codexbar-cli.sh~/.config/codexbar-linux-sidebar/config.toml — see examples/config.example.toml.
cargo test
cargo test -- --ignored # requires codexbar on PATH
./scripts/e2e-smoke.shSee packaging/PKGBUILD for an Arch Linux package that builds the sidebar and optionally fetches the CodexBar CLI at install time.
MIT
- CodexBar — provider usage CLI (installed separately)
- Quickshell — Wayland shell for the panel UI