docs/llm-proxy.md
CodexBar reads aggregate usage from an LLM-API-Key-Proxy compatible /v1/quota-stats endpoint.
Store the API key:
printf '%s' "$LLM_PROXY_API_KEY" | codexbar config set-api-key --provider llmproxy --stdin
Set the base URL with LLM_PROXY_BASE_URL, or add enterpriseHost to the provider config:
{
"id": "llmproxy",
"enabled": true,
"apiKey": "<REDACTED>",
"enterpriseHost": "https://proxy.example.com"
}
The base URL may point at either the service root or /v1; CodexBar normalizes both to /v1/quota-stats.
approx_cost.quota_groups may be either an array or a keyed object; CodexBar accepts both shapes.