Connect Cloudflare AI Gateway

You need API token. About two minutes.

1Get your API token

API token

Paste the Cloudflare API token
  1. Open My Profile, API Tokens, and click Create Token.
  2. Choose Create Custom Token and give it a name.
  3. Add the Account permission AI Gateway, set to Read, for your account.
  4. Click Continue to summary, then Create Token.
  5. 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 page

https://dash.cloudflare.com/profile/api-tokens

2Add it to CreditBar

  1. Open CreditBar from the menu bar and choose Settings, then Accounts.
  2. Click Add account and pick Cloudflare AI Gateway.
  3. Paste the API token into the matching field, and give the account a label you will recognise.
  4. 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.