README.md

minimax-quota #

A small desktop app that shows your live MiniMax token-plan quota (5h interval + weekly window) without opening a browser. The tray icon paints a continuous gradient from red to green based on remaining percentage; the popup reveals per-model details and configurable settings.

  • Tray icon — colored by worst-case remaining % across all models.
  • Click — opens a popup with per-model rows, bars, and reset times.
  • Right-click — Refresh now / Show Logs / About / Quit.
  • Background poll — every 2 minutes (configurable 2min–1h).
  • Auto-start — optional, via the system autostart mechanism.
  • API key — stored in your OS credential store (macOS Keychain / Linux libsecret / Windows Credential Manager) or a local encrypted SQLite file via the keyring crate. Never written to disk in plaintext.
  • Multi-window — popup (usage-only), dedicated Settings, Logs, and About windows each persist independently and only close via user action (Esc / ⌘W / close button → hide). The tray menu's Settings… item opens the dedicated Settings window.

Supports macOS and Linux. Windows and Android are planned.

Screenshot #

A screenshot will land here before v1.0 ships. Until then: tray icon is an orange-bordered two-bar gradient (red→amber→yellow→green for interval, then weekly); popup opens where the OS-default positions it (centered on the primary monitor) — drag it once and the position is locked in. Settings → "Reset popup position" forgets the saved geometry. The popup is usage-only; all settings (poll interval, log level, language, autostart, API key) live in a dedicated Settings window opened from the tray menu's Settings… item.

Install #

Build from source — the source is distributed over Radicle, no public release server ships pre-built binaries. Clone the project and build:

rad clone rad:z4XxsojxUggRGoRyuFM5Apunn7FgQ
cd minimax-quota
make build                 # release binary at src-tauri/target/release/minimax-quota

The platform-specific notes below apply to the binary you just built (DMG/.deb/.rpm packaging is in packaging/; use make package for a local release tarball).

macOS #

Download minimax-quota_<version>_aarch64.dmg (Apple Silicon) or ..._x64.dmg (Intel), open it, drag minimax-quota into Applications. First launch: right-click the app → Open to bypass Gatekeeper (notarization covers subsequent launches).

Linux #

The app builds and bundles for Linux via Tauri 2. Three formats ship on the release page — pick whichever fits your distro:

Portable (any distro) — AppImage:

chmod +x minimax-quota_*.AppImage
./minimax-quota_*.AppImage

Debian / Ubuntu — .deb:

sudo dpkg -i minimax-quota_*.deb
sudo apt install -f   # resolve Recommends (libwebkit2gtk-4.1, libsecret, libappindicator)

Fedora / RHEL / openSUSE — .rpm:

sudo dnf install ./minimax-quota_*.rpm

Tray icon hidden on GNOME? #

GNOME hides tray icons by default since 3.26 — and the situation is especially strict on GNOME 48 / Fedora 44 Wayland. If you launch the app and the tray still has nothing, the indicator-helper window surfaces automatically on first run: it walks you through installing the AppIndicator and KStatusNotifierItem Support extension (copy-able dnf install and gnome-extensions enable commands, plus a one-click deep-link to extensions.gnome.org/extension/615). Quit and relaunch once the extension is active.

On KDE Plasma the tray icon works out of the box (no extension needed), and the helper won't open.

Secret Service not running? #

The app needs an OS Secret Service provider to store your API key. GNOME has GNOME Keyring built in; KDE has KWallet; XFCE / Cinnamon need a Secret Service implementation installed (gnome-keyring works on most). If the app says "Secret Service not available" on first launch, install one.

On Fedora 44, gnome-keyring ships pre-installed on the GNOME spin but the daemon only starts after you log in graphically (no daemon in SSH / headless sessions). For the AppImage use case, skip the OS keychain entirely — open the popup → Settings → Secret Backend → db-keystore to switch to the encrypted SQLite fallback that doesn't need any OS service.

Wayland quirks #

On Wayland (Fedora 44 default), global shortcuts may not work because compositors usually refuse to grant cross-window key capture to non-foreground apps. The tray menu's right-click → Quit and the popup's ⌘W / Esc close handlers still work; the ⌘Q global shortcut may silently no-op until you grant "Allow applications to capture keystrokes" in the GNOME Settings → Privacy panel (and even then, support is incomplete depending on compositor version).

First-run setup #

The app needs your MiniMax API key. It's stored in your OS credential store under service minimax-quota, account api-key.

Easiest: paste it via the UI #

Open the popup's Settings… menu item (or right-click the tray icon → Settings…) → API key → paste → save. The app writes to the OS credential store directly; nothing is saved to disk in plaintext.

If you'd rather pre-seed from pass #

macOS:

pass show platform.minimax.io/api-key | security add-generic-password -U \
    -s "minimax-quota" -a "api-key" \
    -l "minimax menubar" -w -

The first launch after seeding triggers a one-time macOS prompt asking whether the app is allowed to read this Keychain entry. "Always Allow" silences all future prompts.

Linux (libsecret + a Secret Service provider — GNOME Keyring on GNOME, KWallet on KDE):

pass show platform.minimax.io/api-key | secret-tool store \
    --service="minimax-quota" --label="minimax menubar" \
    --account="api-key"

Windows (Credential Manager — built in):

"$(pass show platform.minimax.io/api-key)" | Set-Clipboard
# then paste in the Settings window (right-click tray → Settings…)

Pick a credential backend (Settings → Secret Backend) #

The app reads/writes the API key through one of two backends. The default is db-keystore, an encrypted SQLite file at <config_dir>/secret-store.db. It works on every platform with no ACL prompts and survives reinstalls. Switch to the OS-native backend from Settings → Secret Backend if you prefer the Keychain / libsecret / Credential Manager UI; note that switching backends does not migrate the key — paste it again in Settings.

If you need a key first #

Log in to https://platform.minimax.io/user-center/basic-information/interface-key, create / copy an API key, then paste it via the UI.

Configuration #

All settings live in a dedicated Settings window (right-click the tray icon → Settings…, or use the Settings… menu item):

  • Poll interval — 120s (default) to 3600s.
  • Log level — info (default) or debug for verbose output.
  • Language — UI language. English only at v1.0; the dropdown exists so future translations land without UI plumbing changes. See CONTRIBUTING.md → Adding a translation.
  • Start at login — adds/removes a LaunchAgent (macOS) or ~/.config/autostart/*.desktop entry (Linux).
  • API key — paste to save.
  • Open token usage — opens https://platform.minimax.io/console/usage in your browser.
  • Secret backend — pick between db-keystore (default, encrypted SQLite file with no ACL prompts) and the OS-native credential store. Switching does not migrate the key.
  • Show logs — tray menu item that opens a dedicated Logs window with copy/pause/clear controls and a 200-entry ring buffer.
  • About — tray menu item showing the app version (from Cargo metadata), publisher, license, build commit, and repo URL.

The persistent config lives at:

  • macOS: ~/Library/Application Support/net.wurzerfamily.minimax-quota/config.json
  • Linux: ~/.config/net.wurzerfamily.minimax-quota/config.json

Troubleshooting #

Symptom Cause / fix
Tray icon missing on Linux On first launch without the AppIndicator extension, the indicator-helper window should open automatically with copy-able install commands. If you dismissed it and the tray is still missing, install the GNOME AppIndicator extension, or check that libayatana-appindicator3-1 (or libappindicator3-1 on Debian) is installed. The log at /tmp/mq.log carries indicator check: lines at debug level — set log_level = debug in Settings to see why.
Popup won't open Tray click should always open it. If not, check /tmp/mq.log for stderr.
API 1004: login fail banner Invalid API key. Re-paste via Settings → API key.
Keychain prompt on every launch (macOS) Should not happen on 0.9.1+. If it does, confirm secret_backend in config.json is "DbFile", then file an issue — the db-keystore backend is now end-to-end and never touches the Apple Keychain. The os_keychain backend still prompts on first launch as expected; click "Always Allow" to silence future prompts.
unexpected response shape banner API changed; file an issue with the log output (tray → Show Logs → Copy).
Stale numbers Tray icon shows last good poll. Right-click → Refresh now to force a fetch.
Tray icon stuck red ! First-poll failure (no prior snapshot). Once a poll succeeds, the bars reappear.
Secret Service not available (Linux) Install a Secret Service provider (GNOME Keyring on GNOME, KWallet on KDE). Or switch to db-keystore in Settings → Secret Backend.

Build from source #

Prerequisites: Rust 1.74+, tauri-cli 2.x, the platform's webview dev headers (on Linux: libwebkit2gtk-4.1-dev or libwebkit2gtk-4.2-dev on newer distros, libssl-dev, libgtk-3-dev, libayatana-appindicator3-dev, libsecret-1-dev).

rad clone rad:z4XxsojxUggRGoRyuFM5Apunn7FgQ
cd minimax-quota
make check-deps  # verify toolchain + GTK dev libs (prints distro-specific install hint if anything is missing)
make run         # foreground build + launch (dev logs to stderr)
make build       # release build, single binary in src-tauri/target/release/
make test        # 24 Rust tests on macOS/Windows, 29 on Linux (lock, secret, icons, config, ipc, +5 indicator on Linux)
make ui-test     # 12 JS tests (i18n)

Once you've cloned once, git pull works as normal — rad clone sets up the rad remote for network sync but the working tree is a plain git checkout.

To install the release build into /usr/local (binary, icon, .desktop file — sudo is used automatically):

make install
make uninstall    # remove what `make install` placed

To produce platform bundles (.dmg, .deb, .AppImage):

cargo install tauri-cli --version "^2"
cargo tauri build

Bundles land in src-tauri/target/release/bundle/.

Contributing #

See CONTRIBUTING.md for development setup, PR conventions, and translation guidance. By participating you agree to the CODE_OF_CONDUCT.md.

Report security issues per SECURITY.md.

License #

MIT — Copyright (c) 2026 Willi.

See also #