Docs · LLMs and developers
Version3.14.0Connect Cloudflare with a read-only API token so account audit logs and notification alerts become team memory.
Cloudflare
The Cloudflare connector reads one Cloudflare account's audit logs and alert history with a read-only API token. The catalog card connects one account at a time; to switch to another, disconnect it and connect again. Owners and admins connect it under Settings > Connectors (/settings/integrations).
What you need
- An owner or admin role in Achiral. See Roles.
- Access to the Cloudflare account you want to connect, with Audit Logs and Notifications permissions. A token can only grant permissions you already have on that account. See Cloudflare's Create API token.
What comes into memory
| Cloudflare data | Becomes |
|---|---|
| Audit logs | A log entry: who acted, the action and its result, the resource, the zone, and whether it was the dashboard or the API |
| Alert history | An alert: the notification policy, alert type, message, and how it was delivered |
Achiral checks Cloudflare every 15 minutes. The first sync goes back one day. Each sync reads up to 1,000 audit-log entries and 1,000 alerts; when there are more, Achiral catches up in further syncs about five minutes apart.
Achiral does not read zones, DNS records, Workers, or traffic.
Let an assistant walk you through it
Copy the prompt, or open it in Claude or ChatGPT. An assistant that can use your browser can fill in Cloudflare's form for you; otherwise it walks you through each step. Either way, you create the token and paste it into Achiral yourself. Don't paste it into the chat.
Help me connect Cloudflare to Achiral with a read-only API token. The guide is https://achiral.ai/docs/integrations/cloudflare.
If you can use my browser:
1. Open the Cloudflare dashboard and tell me the Account ID from the address bar.
2. Go to User settings > API tokens > Create token. Name it Achiral (read-only), choose Start from scratch, then Start with an Account policy, and limit it to that one account.
3. Tick Read on Audit Logs under Analytics & Logs (not the "Access:" entries) and Read on Notifications under Account & Billing.
4. Stop on the summary so I can check it and click Create Token myself.
If you can't use my browser, walk me through those steps one at a time.
Don't ask me for the token. I'll paste it into Achiral myself.1. Find your Account ID
Open the Cloudflare dashboard and pick the account. The Account ID is the 32-character string in the address bar right after dash.cloudflare.com/.
2. Create a read-only API token in Cloudflare
-
Open User settings > API tokens (
dash.cloudflare.com/profile/api-tokens) and click Create token. -
Enter a token name, such as
Achiral (read-only). -
Under Policies, choose Start from scratch, then Start with an Account policy.
-
Set the account to the one whose Account ID you copied, instead of All accounts.
-
Search for
auditand tick Read on Audit Logs, under Analytics & Logs. Don't pick the Access: entries under Cloudflare One / Zero Trust; those cover Cloudflare Access only.
-
Search for
notificationand tick Read on Notifications, under Account & Billing. -
Click Continue to summary. It should list Audit Logs: Read and Notifications: Read on one account.
-
Click Create Token and copy the token. Cloudflare shows it once.
3. Connect it in Achiral
-
Open Settings > Connectors, on the Catalog page, and search for Cloudflare. It is under Engineering & Product.
-
Click Connect. Leave Connection name as it is.
-
Paste the Account ID into Account ID (in the dashboard URL after dash.cloudflare.com/).
-
Paste the token into API token with Account Audit Logs Read and Notifications Read. "Account Audit Logs" is the Audit Logs permission from step 2.
-
Under Whose account is this?, choose who can recall Cloudflare activity. Audit log entries include the email and IP address of whoever made each change. Everyone in the organization is selected unless you pick Only me.
- Only me: it stays in your memory alone.
- Everyone in the organization: every member's assistant can recall it.
You can't change this in the app after connecting. See Whose account it is.
-
Click Connect.
Check both fields before you click Connect. Browsers sometimes fill a saved address into Account ID and a saved password into the token field.
The card shows Active and Disconnect as soon as you connect, before Achiral has used the token. The first sync runs within five minutes. If the token is wrong, the card then shows the error where Last activity was.

Troubleshooting
The card shows an error, Reconnect needed, or Error
Check two things:
- The Account ID matches the account the token covers.
- The token has Audit Logs: Read and Notifications: Read. A token with only the Access: Audit Logs permission can't read account audit logs.
To fix either one, create a corrected token as in step 2. On the Cloudflare card, click Disconnect, then Confirm, and connect again with the right Account ID and the new token. Reconnect doesn't work for apps that connect with a key. It shows "Cloudflare signs in with a key: disconnect it and connect it again with a new key", with your connection name in place of Cloudflare. Disconnecting keeps the memories Cloudflare already brought in.
Active, but no alerts in memory
Alerts come from Cloudflare notification policies. If no policy fired in the last day, there is nothing to bring in yet.
Related pages
- Connectors: what Whose account is this? changes, and how connection status works.
- Stripe: the same setup for payments, customers, and subscriptions.
- Mercury: the same setup for bank transactions.