Connect ClickHouse Cloud
You need Key ID and Key secret. About two minutes.
1Get these from ClickHouse Cloud
Key ID
Paste the key ID- In the ClickHouse Cloud console, open API Keys in the left menu.
- Click New API Key, name it and set an expiration.
- Assign a read-only organization role that can view billing.
- Click Generate API Key and copy the Key ID.
ClickHouse Cloud console, organization Settings, API keys. The key needs the organization view role to read billing.
Open the pagehttps://console.clickhouse.cloud
Key secret
Paste the key secret- Copy the Key Secret from the same confirmation screen as the Key ID.
- Store it now: it is not shown again.
Shown once when the key is created. Sent as HTTP Basic with the key ID.
Open the pagehttps://console.clickhouse.cloud
2Add it to CreditBar
- Open CreditBar from the menu bar and choose Settings, then Accounts.
- Click Add account and pick ClickHouse Cloud.
- Paste the Key ID and the Key secret into the matching fields, 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 ClickHouse Cloud. Nothing passes through a CreditBar server.
3What it reads
- Reports
- finds the organization when none is pinned
- Calls
- https://api.clickhouse.cloud/v1/organizations
- Refreshes
- At most every 30 minutes
- API docs
- ClickHouse Cloud reference, checked 2026-09-18
ClickHouse Credits, not dollars: a CHC converts at the rate in your contract. The API caps a query at 31 days, so a longer window is clamped to that.