The Short Version
Cloudflare isn't just your security layer anymore. It's becoming your one control center. Part Three set up the foundation: the account, the tunnel to your server, the locked doors. Now we add the next layer in the same place. Where your files live. Your CDN.
It's called R2. Think of it as a hard drive in the cloud that both your websites and your AI can reach. You give Claude one key, set once, that doesn't expire, and it manages your files for you.
This isn't about ditching Google Drive. Keep it. This is a second kind of storage, built for a code-first way of working, for the stuff you want Claude to operate on directly.
It's perfect for hosting your images. Drop them in, serve them from cdn.yoursite.com, and they load fast anywhere.
And yes, this costs money. Building does. But you're already paying to work this way, and what this piece buys you is worth far more than the price.
Full breakdown below. Copy-paste prompt at the bottom.
Part Four. One place for everything, now including your files.
I want to zoom out for a second, because this is where the picture comes together.
The whole point of what we're building is one control center. Instead of your stuff scattered across ten different accounts and dashboards, it all lives in one place, Cloudflare, and your AI has the keys to it.
In Part Three we set up the foundation there. The security layer. Your Cloudflare account as the control panel, the tunnel that lets you reach your server with nothing exposed, and the locked doors on your private dashboards. That's the "keep it safe and reachable" layer.
This part adds the next one, in the same account. Where your files actually live. Your CDN.
Let me explain it simply, because you don't need to be technical for this. That's the whole idea. You hand the technical part to Claude.
It's called R2. Forget the jargon and think of it as a hard drive in the cloud. A place to keep your files: your images, your downloads, your backups. Two things make it special. First, it lives in the same Cloudflare account as everything else, so it's one more thing in your one control center instead of another separate silo to manage. Second, it's built to be reached by code, which means it's built to be reached by Claude.
One honest note so you don't overspend, because this part confused me at first. The technical name for this kind of storage is object storage. Amazon built the first big one, called S3, and it became the standard everyone else copied. R2 is Cloudflare's version of that same idea, and it speaks the same S3 language, so all the same tools work with it. I use R2 because it sits in the same Cloudflare account as everything else, and it doesn't charge you to pull your files back out. But here's the part that matters for your wallet: if you already have an S3 bucket, or storage from someone else that speaks S3, you do not need to go get R2 on top of it. Point Claude at what you already have. R2 is just the one I would pick if you're starting fresh.
Now let me be clear about something, because I don't want you to hear this wrong. This is not "quit Google Drive." Keep your Drive. It's genuinely great at what it's for: your everyday documents, organizing things visually, sharing with people, and its own tools like NotebookLM and Google's AI, which are excellent. None of that is going anywhere, and I'm not here to talk down any of it.
R2 is a different tool for a different job. Google Drive is built for a person clicking around in a browser. That's perfect for you as a human, and a little fiddly when you want an always-on AI to reach in and work. R2 is built for code, so Claude connects once with a permanent key and just works, quietly, in the background. Drive is for you. R2 is for your agent. You'll use both, and that's exactly right.
Here's how you actually use R2. You give Claude one key, and from then on it handles your files. "Put these images in my storage." "Back up this folder." "Pull that file down." It just does it. No login screen in the way, no connection to keep re-fixing.
The clearest example is images. Say you're building a site and you've got a bunch of photos. If you pile them onto your web server, your site gets slow and clunky. Instead, you drop them into R2 and serve them from something like cdn.yoursite.com. Now they load fast from anywhere in the world, and they don't slow your site down. That's what a CDN is, and you just got one by turning on this layer.
One honest aside, because I use it myself. There's a tool called Cloudinary that does a different, narrower job. It automatically resizes and optimizes your images on the fly so your pages stay fast. It's good, and I use it. But it isn't the same thing as R2. Cloudinary transforms images, R2 stores and serves your files. You don't need it to start. R2 gets your images hosted and fast today, and I'll do a whole part later on image optimization. One layer at a time.
Not everything is public, though, and that matters. Your images, sure. Those are meant for the world, so they go on your public cdn address. But your backups and private files stay locked. When you need to hand one to a specific person, you send a link that expires on its own. Claude sets all of that up. You just tell it what's public and what's private.
Now step back and look at what you've got. Your security, and now your files, both in one Cloudflare account, both controllable by your AI with keys that don't expire. One place. One brain running it.
Now the real-talk part, because it matters. This costs money. If you're serious about building, that's not a surprise, it's the deal. You're already paying to work this way, and every real piece you add has a price. This one happens to be small and predictable, but the price was never the point. The point is what it gives you. Your data under your control. Your images served fast. Your AI running all of it without you in the loop. You can stand up things today, by yourself, that used to take a team or a budget you didn't have. That kind of leverage is the best money I spend, and I spend it gladly.
If you want to do it, I made the whole thing a copy-paste prompt. Go to connectwithcliff.com/kit, copy the storage-setup prompt, paste it into Claude, and it sets up your storage, your key, and the connection so your AI runs your files. New here? Start with Kit 1 (terminal setup) first, so Claude can actually run.
Next part: connecting your own domain, so everything you've built gets a real address. Then the small server your site runs on, and we put something online.