> AI agents: this is one page from PostHog's docs. Full index of Markdown docs for LLMs: https://posthog.com/llms.txt

# CloudZero source - Docs

Copy page

![CloudZero](https://us.posthog.com/static/services/cloudzero.png)# CloudZero source - Docs

![](https://res.cloudinary.com/dmukukwp6/image/upload/texture_tan_9608fcca70)

![](https://res.cloudinary.com/dmukukwp6/image/upload/texture_tan_dark_a92b0e022d)

Let AI connect your sources for you

Skip the manual setup — run this in your project and the wizard auto-detects your databases and APIs and connects them to PostHog.

`npx @posthog/wizard warehouse`

[Learn more](/wizard.md)

![PostHog Wizard hedgehog](https://res.cloudinary.com/dmukukwp6/image/upload/wizard_3f8bb7a240.png)

![](https://res.cloudinary.com/dmukukwp6/image/upload/wizard_3f8bb7a240.png)Let AI connect your sources for you

Connect CloudZero to PostHog to sync your data into the PostHog data warehouse for analysis and modeling.

Enter your CloudZero API key. The key must be granted the `billing:read_costs` and `billing:read_dimensions` scopes in CloudZero under Settings > API Keys.

## Configuration

| Option | Type | Required |
| --- | --- | --- |
| API key | password | Yes |
| Granularity | select | Yes |
| Cost type | select | Yes |
| Group costs by dimensions (optional) | text | No |

## Linking CloudZero to PostHog

1.  Go to the [Data pipeline page](https://us.posthog.com/pipeline/new/source) in PostHog
2.  Click **New source** and select **CloudZero**
3.  Fill in the required configuration fields
4.  Click **Next**, select the tables you want to sync, and then press **Import**