Connect Cloudflare AI Gateway
You need API token. About two minutes.
1Get your API token
API token
Paste the Cloudflare API token- Open My Profile, API Tokens, and click Create Token.
- Choose Create Custom Token and give it a name.
- Add the Account permission AI Gateway, set to Read, for your account.
- Click Continue to summary, then Create Token.
- Copy the token now: it is shown only once.
My Profile, API Tokens. Needs AI Gateway read. A Global API Key is a different credential and is refused.
Open the pagehttps://dash.cloudflare.com/profile/api-tokens
2Add it to CreditBar
- Open CreditBar from the menu bar and choose Settings, then Accounts.
- Click Add account and pick Cloudflare AI Gateway.
- Paste the API token into the matching field, and give the account a label you will recognise.
- Click Test connection, then Add. Numbers appear in the menu bar within a minute.
Keys are stored in your Mac's Keychain and only ever sent to Cloudflare AI Gateway. Nothing passes through a CreditBar server.
3What it reads
- Reports
- finds the account when none is pinned
- Calls
- https://api.cloudflare.com/client/v4/accounts
- Refreshes
- At most every 10 minutes
- API docs
- Cloudflare AI Gateway reference, checked 2026-09-18
AI Gateway credit only. The rest of Cloudflare is billed against a plan rather than a balance, so it has nothing to run out of.