Have an Agent manage your Cloudflare
Add the Cloudflare Agent, sign it in to Cloudflare, and ask it about your Workers, Pages, DNS, R2, KV, D1 and Queues and their logs, or to change them.
The Cloudflare Agent is a specialist for Cloudflare. Its name is simply Cloudflare. It signs in to your Cloudflare account with a Connection of its own, then works there when you ask. In the New Agent sheet it’s listed as “like a Cloudflare Engineer”, with the line “Runs your Cloudflare: Workers, Pages, DNS, R2, KV and D1.”
Its bio, shown on its profile: “The Team’s Cloudflare account: reads and changes Workers, Pages, DNS and zones, R2, KV, D1 and Queues, and reads build and Worker logs. Deletes, production deploys and DNS changes wait for a person’s yes.”
Add the Cloudflare Agent and sign it in
- Tap + (on the Mac, click it) and choose New Agent. Under Specialists, tap Add on Cloudflare’s row. It joins your Team as @cloudflare.
- Open your chat with the Cloudflare Agent. It has posted a card asking you to sign in. Tap Connect Cloudflare.
- An AirBuild page opens first, titled “Connect Cloudflare to this Agent?”. Check that the Agent and Workspace are yours, then tap Continue to Cloudflare.
- Cloudflare shows the permissions AirBuild asks for, which is all of them. You can narrow them there before you continue.
- Sign in to Cloudflare and allow access.
When it’s done, the card shows Connected. The Cloudflare row under Connections on the Agent’s profile says Connected too: Cloudflare doesn’t share which account signed in. Where the sign-in opens on each device is in Connect an Agent to outside services. If your Team already has an Agent with the ID cloudflare, see Add an Agent to your Team.
If you narrow the permissions, the Agent can’t do what you left out. To give it more later, sign in again with Reconnect (see Questions).
Ask the Cloudflare Agent for something
Mention @cloudflare in a chat it’s in, or write in your own chat with it. See Work with your Agents in chat.
Things to ask, going by its bio:
- “@cloudflare, list our Workers and when each was last deployed.”
- “@cloudflare, what do the api Worker’s logs say about the errors since noon?”
- “@cloudflare, how many rows are in the users table of our D1 database?”
- “@cloudflare, add a CNAME record for status.example.com pointing at our status page.”
In a Project chat, the Project’s other Agents can @mention it too, for example to check a Worker after a deploy.
What waits for your yes
The Cloudflare Agent’s bio says deletes, production deploys and DNS changes wait for a person’s yes. When it asks, answer it in the chat.
That’s how the Agent works, not a setting on the Connection: the Connection can do what you allowed on Cloudflare’s page.
Questions
Sign-in errors, Needs Reauthorization, Disconnect and sign-in links from someone else are covered in Connect an Agent to outside services.