Start here
AI on Cloudflare: a decision guide
Two questions decide which Cloudflare products you need for AI and whether to build an agent. The guide has three parts.
This guide covers which Cloudflare products to put in place for AI, and in which order.
Every AI setup has the same shape: someone acts, the AI runs in a session, it reaches models, tools and private systems through gates, and everything is logged. Step 1 starts with that picture.
Start with two questions
Do you build AI yourself, or use AI that someone else built? And who is affected, your customers or your employees? The answers give four cases.
The reading path
- Step 1: Cloudflare and AI: choose your path. The four cases, which product guards which AI traffic, where models and agent-written code run, how to govern agents inside your company, and when Cloudflare OS fits.
- Step 2: Building AI agents on Cloudflare: which architecture when. For cases A and B. Ten ways to build an agent, from a plain Worker to Project Think and VibeSDK, with starter code.
- Reference: the decision matrix. The building blocks each situation needs, on one page.
Shortcuts by situation
| Your situation | Read first | Then |
|---|---|---|
| A. Your customers use AI that you built (a chatbot or AI search in your product) | A2: the control map and A3: where inference runs | Step 2, then the matrix row A |
| B. Your staff use internal AI that you build (agents for engineers and IT, an internal assistant) | A4: the governed agent workspace and A6: Cloudflare OS and A7: VibeSDK | Step 2, then the matrix rows B1 to B4 |
| C. Your staff use third-party AI (ChatGPT, Claude, Gemini, coding assistants) | A2: the control map, control C4 | The matrix row C. Nothing to build, so skip step 2. |
| D. AI visits your sites (crawlers and agents reading your content) | A2: the control map, control C5 | The matrix row D. Nothing to build, so skip step 2. |
What to expect
Every product claim links to the public Cloudflare documentation, and experimental, beta and paid add-on features are marked. I built the guides from the documentation and checked them on 7 October 2026, but I have not deployed every option. Feature status changes, so check the linked page before you commit to a design.