---
title: "Cloudflare Account ID"
description: "Identifies which Cloudflare account the deploy targets."
source: "/docs/keys/cf-account-id"
---


Quick reference [#quick-reference]

* Env var: `CF_ACCOUNT_ID`
* Required for: every deploy (all workers, DNS, custom domain setup)
* Permissions / scopes: not applicable — this is a public identifier, not a secret. It's only sensitive because it scopes which account your API token writes to.
* Validation: `mastrakit doctor --key CF_ACCOUNT_ID` (checks the ID exists and that your `CLOUDFLARE_API_TOKEN` can access it)

Where to find it [#where-to-find-it]

1. Go to [dash.cloudflare.com](https://dash.cloudflare.com) and sign in.
2. In the sidebar, click **Workers & Pages** (or any zone).
3. The Account ID is shown on the right-hand side of the overview page — a 32-character hex string.
4. Click the copy icon next to it.

Alternative: the Account ID is also visible in the URL when you're in a worker. `dash.cloudflare.com/<account-id>/workers/...`

Add to your project [#add-to-your-project]

Paste into `.env.dev-secrets` (gitignored):

```
CF_ACCOUNT_ID=bc23091c80334ec6751586189e46be26
```

> **Note**: the env var is `CF_ACCOUNT_ID`, *not* `CLOUDFLARE_ACCOUNT_ID`. Older docs and the previous `deploy.json` schema used the longer form; the codebase uses `CF_ACCOUNT_ID` everywhere.

Multiple accounts [#multiple-accounts]

If your Cloudflare login has access to multiple accounts (e.g. personal + work), double-check you copied the ID for the account you want to deploy *to*. The validator can't catch a "wrong account" — it can only confirm "this account exists and this token can access it".
