How ChatGPT Sites Works and When to Use It

How I use ChatGPT Sites to prototype and pilot on my own domain, what goes in .openai/hosting.json, and when to move to Cloudflare.

TL;DR: ChatGPT Sites is OpenAI’s hosting layer for websites and lightweight apps. You describe what you want in ChatGPT or Codex, Codex writes the code, and Sites hosts and shares the result without your own deployment pipeline. I routinely start Cloudflare-bound prototypes there because it’s the fastest path I’ve found from an idea to a real, testable pilot on my own domain. When you work from a local project, a small file at .openai/hosting.json links your source to the hosted site. After the pilot proves itself, I move the project to production-grade hosting, usually Cloudflare.


When I wrote about building a SaaS product on Cloudflare, I added a short section near the end calling ChatGPT Sites an interesting shortcut. Since then it has stopped being a curiosity for me and become part of my normal workflow.

To be clear about what that means: I haven’t shipped a finished product on Sites. That isn’t how I use it. When I’m starting something that I already know is headed for Cloudflare, with its data in Cloudflare storage and its server-side code running there, I start the prototype in Sites. It’s simply the quickest way I’ve found to get something real running.

Here’s how Sites works, what .openai/hosting.json does, and the point where I move a project onto infrastructure I manage myself.

One caution first. Sites is new and changing quickly. Every technical detail here comes from OpenAI’s current documentation, which I’ve linked throughout. If something looks different when you read this, trust the official docs over me.

What ChatGPT Sites Is

ChatGPT Sites hosts and shares websites and lightweight apps built in ChatGPT or Codex. You describe what you want, Codex writes the code, and Sites handles hosting and deployment. You can also host a compatible project you’ve already built, without a separate deployment setup.

OpenAI launched it in public beta in July 2026 alongside ChatGPT Work. According to the help center, it’s available to ChatGPT Plus and Pro accounts and supported Business and Enterprise workspaces. It isn’t available on the Free or Go plans or in the ChatGPT Classic app.

OpenAI’s own examples are resource hubs, dashboards, trackers, request forms, calculators, and guided processes. Those are the small, useful tools every organization needs and almost nobody budgets for.

Why I Start Prototypes There

Sites doesn’t write the code; Codex does, and plenty of tools can do that now. What Sites adds is that it takes over the build and deploy loop while I’m developing.

On a normal project, every meaningful change means building, deploying, waiting, checking the result, and sometimes untangling a configuration problem that has nothing to do with the feature I’m working on. With Sites, ChatGPT handles that loop for me. Deployments are quicker, and honestly, ChatGPT seems to do a better job of handling that part. My attention stays on the problem I’m solving.

It also fits my Cloudflare-bound projects well. Sites storage uses D1 for relational data and R2 for files, which are both Cloudflare services. OpenAI’s Sites skill for Codex describes server-backed sites as Cloudflare Worker-compatible modules and says Sites owns the underlying Cloudflare resources. OpenAI also lists Cloudflare among its web-hosting subprocessors. So the prototype I’m building is shaped much like what I’ll run later. That doesn’t guarantee portability, but it shortens the trip.

I don’t stop at a throwaway demo, either. I often take the project all the way through an initial pilot, with my custom domain attached. Real people use it at a real address, which is where you learn whether the idea holds up.

How It Works

A few moving parts are worth understanding before you start.

The conversation is the editor. You start in Work on ChatGPT web, or in Work or Codex in the desktop app. Including the word “website” in your prompt, or mentioning @Sites, starts the Sites workflow. From there you describe changes, review a preview, and iterate.

Storage is opt-in. Saving a version keeps the site’s content, design, and behavior, but not visitor data. If the site needs to remember records, uploads, or progress, you have to ask for storage. The data and connections guide maps saved records to D1, uploads to R2, and uploaded files with searchable metadata to both. Internal sites can use the workspace user’s identity, and public sites can add optional Sign in with ChatGPT.

Publishing has two stages. According to the site management guide, you first save a version, which builds a deployable candidate, and then deploy it. Every deployment URL is a production URL, and there is no separate staging link. If you want to review a change before it goes live, ask ChatGPT to save a version without deploying it.

Access and sign-in are separate controls. A new site is limited to its owner and workspace admins until you change it. Depending on your plan, you can share with selected people, invited external viewers, your workspace, or anyone on the internet when public publishing is enabled. Any sign-in you build into the site is a separate setting from who can open it.

Understanding .openai/hosting.json

If you only build in the web interface, you may never see this file. OpenAI says you don’t need a local project or manifest to start a site.

I prefer working from a local project in Git, though, and that’s where this file matters. A Sites project links your local source to hosting managed through Sites, and Sites stores that link, plus any optional storage binding names, in .openai/hosting.json.

The developer guide shows this example for a site with a relational database and no file storage:

{
  "project_id": "<project-id>",
  "d1": "DB",
  "r2": null
}
  • project_id identifies the hosted project. A new local starter can begin without one, and Sites adds it after it provisions the hosted project.
  • d1 is the logical binding name for the site’s D1 database, or null if there isn’t one.
  • r2 is the logical binding name for R2 file storage, or null if there isn’t one.

Static sites, Workers, and static.directory

The main developer guide doesn’t cover static output yet, but OpenAI’s Sites building skill for Codex does. That’s the instruction set Codex follows when it builds and publishes a site, and it’s mirrored publicly here as of an August 2026 snapshot. It splits projects into two shapes:

  • Static-only builds have no runtime bindings, capabilities, or migrations. They can publish plain static output without a Worker, but they must set static.directory in .openai/hosting.json to a supported output folder: dist, dist/client, out, build, or .output/public.
  • Server-backed builds run as a Cloudflare Worker-compatible module. The build must produce dist/server/index.js with a default export that has a fetch(request, env, ctx) handler, plus a copy of the manifest at dist/.openai/hosting.json. Database migrations, if any, ship under dist/.openai/drizzle/.

Based on that skill, a static-only manifest looks like this:

{
  "project_id": "<project-id>",
  "static": {
    "directory": "dist"
  }
}

The skill says new sites should store only project_id, optional static configuration, and the logical d1 and r2 bindings in this file. The manifest names things. It doesn’t provision them. Because this detail comes from the skill rather than the published guide, treat it as accurate for now but subject to change. Codex normally writes this file for you. Understanding it means you know what you’re approving when you review the diff.

What never goes in it

Secrets. The documentation is explicit: don’t store environment values or secrets in .openai/hosting.json. Add them in the site’s settings, keep local .env and .env.example files aligned with the keys you need for development, and never commit secret values.

From Prompt to Pilot, Step by Step

This is the path I follow, built from OpenAI’s create, publish, and manage guides.

1. Confirm access. You need a Plus, Pro, or supported Business or Enterprise account. In Enterprise, an admin has to enable Sites for your role, and public publishing is off by default.

2. Describe the site with real context. Open Work or Codex, mention @Sites or say “website,” and attach the actual documents and data it should use. Say who it’s for and what they need to do.

3. Ask for storage and identity on purpose. Say what the site must remember and who can read or change it, and ask for access rules enforced on the server. OpenAI’s guidance puts it well: hiding a button doesn’t protect the underlying record.

4. Or start from a local project. For existing code, OpenAI suggests a prompt like: “Deploy this project with sites. Check whether it is compatible, make any required changes, and give me the deployment URL.” You can edit and test locally in the Codex CLI or IDE extension, but creating, saving, deploying, and managing the site happens in ChatGPT on the web or the desktop app.

5. Let it run the loop, but review everything. Try every action you asked for. Submit a record and reload to confirm it was saved. Use a second account to confirm people only see what they should. For local projects, review the source changes and any database migrations in the Codex review pane.

6. Save, then deploy. Every deployment URL is production, so save a version, review it, and deploy when you mean it.

7. Attach your domain for the pilot. Where custom domains are available, open the site’s settings, select Add domain, and add the DNS records Sites gives you at your domain provider. Sites doesn’t register domains, and custom domains weren’t available in Enterprise workspaces at launch.

8. Share with the narrowest audience that works. Start with your pilot group, and widen access only after you’ve tested the site as one of them.

Two details deserve respect. Publishing can change the site’s database before the new version goes live, so a failed publish may leave partial changes behind. And restoring an earlier version restores the code, not your database or uploaded files. Review migrations the way you would on any other project.

Limits Worth Knowing Up Front

From the Sites overview and help center:

  • Sites runs in a defined runtime. Some frameworks, private networks, databases, background services, and hosting patterns aren’t supported.
  • HTTP, HTTPS, and WebSockets work. Raw inbound and outbound TCP connections don’t.
  • Each site’s D1 database can hold up to 10 GB. R2 has no fixed storage limit per site.
  • Building or editing a site counts toward your Codex usage. Hosting is currently included with Plus and Pro, and charges are currently waived for Enterprise. Usage and storage limits still apply.
  • You can sell through a third-party payment processor, as long as the processor handles all card data. Sites can’t process Protected Health Information or target children under 13.
  • Built-in analytics show unique visitors and page views, except on sites owned by Enterprise workspaces.

When I Graduate a Project

Sites is where my projects start. It isn’t where they stay.

After the initial testing and evaluation phase, I migrate the project to a more production-grade hosting environment, and that is usually Cloudflare. For very early pilot rollouts to a broader group, that often means Cloudflare’s free plan, using the approach I described in Build Your SaaS on Cloudflare. The broader group gets a stable home, and the hosting bill only grows when real usage does.

These are the signals that tell me it’s time to move:

  • The pilot answered its question. Once you know the idea works, the priority shifts from iteration speed to stability, ownership, and operations.
  • It needs something the runtime doesn’t support, such as background jobs, a specific database, or raw TCP connections. The docs are clear that these limits exist.
  • It’s becoming a product, not a tool. Real customers or contractual obligations call for your own monitoring, your own incident process, and billing you control directly.
  • Compliance enters the room. Data residency, audit requirements, regulated data, or a customer security review can decide the architecture for you.
  • More people need to work on it. A team eventually wants branches, pull requests, and tests in a pipeline it owns.

Because D1, R2, and the Worker-compatible build are already in the picture, that move is far shorter than starting over on an unrelated platform. It still deserves its own compatibility testing, configuration review, security review, and data migration plan.

The habit that makes graduation easy is boring. I keep every prototype in Git from day one, even when I’m the only person working on it, because that’s how I manage my own versions. I review what the agent writes, and I keep secrets out of the manifest. When it’s time to move, I’m carrying code I understand, not trying to recover a black box.

ChatGPT as a Development Tool

This workflow is a small example of a bigger shift. In AI-Assisted Development Is the New Baseline, I argued that AI is neither harmless magic nor automatic slop. It’s a force multiplier that rewards developers who bring judgment, context, and review discipline.

Sites takes the infrastructure busywork out of the early part of a project. It doesn’t take away responsibility for what you ship. The same habits apply whether an agent is writing one function or deploying a whole site:

  • Give it real context. OpenAI’s own tips say to attach source material and ask the agent to flag missing information instead of filling it in.
  • Describe the unhappy paths. Empty states, invalid input, and failed connections tend to stay vague unless you ask for them.
  • Make focused changes. Ask for one change at a time, say what should stay the same, and test what changed.
  • Own the result. If it lands on a public URL with your domain on it, it’s yours.

After more than 25 years of building software, what strikes me isn’t that tools like this exist. It’s how much they shrink the distance between knowing what should be built and having people use it. That makes the knowing part more valuable than ever: the architecture, the data model, the security, and the business problem behind the technology problem.

FAQ

What is .openai/hosting.json?

It’s the manifest that links a local source project to its hosted ChatGPT Site. OpenAI’s documentation says it stores the project_id and optional d1 and r2 binding names. According to OpenAI’s Sites skill for Codex, static-only sites also set static.directory.

What values can static.directory use?

According to that skill, the supported values are dist, dist/client, out, build, and .output/public, for static-only builds with no runtime bindings, capabilities, or migrations.

Where do secrets go?

In the site’s settings in ChatGPT, never in .openai/hosting.json. Keep .env and .env.example aligned locally, and don’t commit secret values.

Is ChatGPT Sites free?

It requires a Plus, Pro, or supported Business or Enterprise plan. Hosting is currently included with Plus and Pro, and building or editing counts toward Codex usage. Check the help center for current terms.

Can I use my own domain?

Where custom domains are available, yes. You add the DNS records Sites provides at your domain provider. That’s how I run pilots.

Should I run production on ChatGPT Sites?

For internal tools and early pilots, it can work well. For anything with paying customers, compliance requirements, or unsupported runtime needs, I’d plan the move to infrastructure you manage directly.

Have a Prototype That’s Ready to Grow?

Whether you’re deciding where a new idea should start, or you have a pilot that’s outgrowing its first home, I’m happy to talk it through. I offer a free first consultation that I hold personally. No obligation, just an honest conversation about the problem behind the technology.

Written by

Shawn Lehner

Technology Partner & Solutions Architect

I help organizations elevate their technology systems through expert consulting, custom software development, and strategic technical leadership.

Get in touch