1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# ai-usagebar configuration. Lives at ~/.config/ai-usagebar/config.toml.
# Every section and field is optional — missing config = defaults below.
#
# IMPORTANT: if you put an inline `api_key` in any section, chmod 600 the
# file (`chmod 600 ~/.config/ai-usagebar/config.toml`). Otherwise env vars
# are the safer choice.
[]
# Which vendor the widget shows when `--vendor` is omitted, AND which tab
# is selected when the TUI opens. Comment out to default to Anthropic.
# Valid: anthropic | openai | zai | openrouter | deepseek
# primary = "anthropic"
[]
= true
# Path to the Claude CLI OAuth credentials. Leave commented out to use
# the default ~/.claude/.credentials.json.
# credentials_path = "/home/you/.claude/.credentials.json"
[]
= true
# Path to the Codex CLI OAuth credentials. Leave commented out to use
# the default ~/.codex/auth.json.
# codex_auth_path = "/home/you/.codex/auth.json"
# Reserved for a future API-key-only fallback path (admin key reads
# `/v1/organization/costs`). Today, OpenAI requires Codex OAuth.
= "OPENAI_ADMIN_KEY"
[]
= true
# Credential resolution order: env var → inline api_key → error.
= "ZAI_API_KEY" # checked first; if set + non-empty, used
# api_key = "..." # fallback for users who don't export env vars
# Display-only. Used when the API doesn't return a plan tier itself.
# plan_tier = "lite" # lite | pro | max
[]
= true
= "OPENROUTER_API_KEY"
# api_key = "sk-or-v1-..."
[]
# Disabled by default — enable once you've set a key (env var or inline).
= false
= "DEEPSEEK_API_KEY" # checked first; if set + non-empty, used
# api_key = "sk-..." # fallback; chmod 600 the file if you use it