docs/openai.md
CodexBar's OpenAI API provider targets the API Platform organization dashboard, not ChatGPT/Codex subscription limits.
OPENAI_ADMIN_KEY or configured key with Admin API access.
GET https://api.openai.com/v1/organization/costsGET https://api.openai.com/v1/organization/usage/completionsbucket_width=1d, costs are grouped by line_item, and completion usage is grouped by model.GET https://api.openai.com/v1/dashboard/billing/credit_grants for normal API keys that cannot access organization usage.Store a key in the shared app/CLI config:
printf '%s' "$OPENAI_ADMIN_KEY" | codexbar config set-api-key --provider openai --stdin
Settings → Providers → OpenAI writes the same ~/.codexbar/config.json field. OPENAI_ADMIN_KEY is preferred over
OPENAI_API_KEY because it unlocks organization costs and usage; a normal API key only supports the legacy balance
fallback.