Connect PostHog
You need Personal API key and Project URL or ID. About two minutes.
1Get these from PostHog
Personal API key
phx_…- Open Settings, Personal API keys (use eu.posthog.com for EU Cloud).
- Click + Create a personal API Key and give it a label.
- Select only the Query Read scope.
- Copy the phx_… key now: it is hidden after a refresh.
Settings, Personal API keys. Give it the Query Read scope and nothing else.
Open the pagehttps://us.posthog.com/settings/user-api-keys
Project URL or ID
https://eu.posthog.com/project/12345- Open your project in PostHog (us.posthog.com or eu.posthog.com).
- Copy the address from the browser bar, which contains /project/<id>.
- Or open Project settings and copy the Project ID shown there.
Paste the address of any page in your project. It says which region and which project to read.
Open the pagehttps://us.posthog.com
2Add it to CreditBar
- Open CreditBar from the menu bar and choose Settings, then Accounts.
- Click Add account and pick PostHog.
- Paste the Personal API key and the Project URL or ID 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 PostHog. Nothing passes through a CreditBar server.
3What it reads
- Reports
- daily unique visitors, page views and sessions for the last 30 days, one query
- Calls
- https://us.posthog.com/api/projects/{id}/query/
- Refreshes
- At most every 15 minutes
- API docs
- PostHog reference, checked 2026-09-28
Visitors are counted per day, so someone who comes back on three days counts three times across a longer window.