Simple tray application that shows LLM usage limits.
The config file is located at ~/.config/liment/config.toml and is created automatically on first launch.
Uses the Claude Code OAuth token from the system keychain (CLAUDE_CONFIG_DIR is honored). No extra configuration needed.
When the access token expires, liment refreshes it itself and writes the new tokens back to the keychain,
so Claude Code and liment stay logged in together.
provider = "claude_code"Optionally, you can provide a token manually:
provider = "claude_code"
[settings.claude_code]
token = "sk-ant-..."Uses the ChatGPT token from ~/.codex/auth.json (written by codex login; CODEX_HOME is honored). No extra configuration needed.
When the access token expires, liment refreshes it itself and writes the new tokens back to auth.json,
so the Codex CLI and liment stay logged in together.
provider = "codex"Optionally, you can provide the token and account id manually:
provider = "codex"
[settings.codex]
token = "eyJ..."
account_id = "e0204854-c988-4e72-9edc-6bb0d1c35e9b"Proxies requests through a CLIProxy instance.
provider = "cliproxy_claude"
[settings.cliproxy_claude]
base_url = "http://localhost:8317"
management_token = "your-management-secret"
auth_index = "0"Fetches auth metadata via CLIProxy management API, then proxies wham/usage.
provider = "cliproxy_codex"
[settings.cliproxy_codex]
base_url = "http://localhost:8317"
management_token = "your-management-secret"
auth_index = "1b3ba41df68b1b45"All control center notifications on macOS require the app to be code-signed. If you're running a non-signed build (which you probably are, since release builds are not signed), you can either:
/Applications/liment.app/Contents/MacOS/liment --self-signto ad-hoc sign and relaunch.- Enable automatic signing in the config, which effectively does the same thing but on startup.
auto_codesign = trueThis will ad-hoc sign the app on startup if needed and relaunch it automatically.
# Whether to render the tray icon in monochrome.
monochrome_icon = true
# Display mode: "usage" or "remaining".
display_mode = "usage"
# Which usage windows to show in the tray, by short label, in order (e.g. ["5h"] or ["7d", "5h"]).
# Empty = the first two available. At most two are used, unknown labels are skipped.
# A single window is drawn stacked (label over percentage) instead of in one line.
tray_windows = []
# Whether to show period percentage next to "resets in".
show_period_percentage = false
# Reset time format: "relative" (resets in 3h) or "absolute" (resets on 13 Feb, 14:00).
reset_time_format = "relative"
# How often to refetch usage data, in seconds.
refetch_interval = 450Distributed under the The Unlicense, except for the Claude logo.