Best for · Website builders
Can Codex Build a Website?
- Last checked
- 4 sources, linked below
- By the vectaai team
We read every plan page. Paid links are labelled. Money never changes a ranking. How we pick.
Verdict Our pick
The bar guide has a call.

- OpenAI Codex if you want real code you own, are fine reading a diff and can handle a Git repo or a hosting login.
- Pick a website builder like Framer, Webflow or Squarespace if you want to drag things around, edit text yourself next week and never see code.
Compared here
- 01OpenAI Codex
- 02ChatGPT Sites
- 03Vercel
- 04Framer
- 05Webflow
Short answer
Yes. Codex, OpenAI's coding agent, can write a whole website from a plain-language brief, run the build and checks, and deploy it. OpenAI's own use-case guide describes Codex building or updating a site, deploying a preview to Vercel and handing back the live URL. Separately, ChatGPT Sites lets Plus, Pro, Business and Enterprise users publish what they build on OpenAI's hosting, with hosting currently included on Plus and Pro.
Pick Codex if you want real code you own, are fine reading a diff and can handle a Git repo or a hosting login. Pick a website builder like Framer, Webflow or Squarespace if you want to drag things around, edit text yourself next week and never see code. Below: the three ways to do it, what each plan includes, a step-by-step, the catches, and who should use what.
Sponsored links. We may earn a commission; it never changes the pick.
At a glance
| Route | What Codex does | Hosting | Plan needed (quoted) | Best for |
|---|---|---|---|---|
| Codex + ChatGPT Sites | Builds the site from a prompt, publishes it | OpenAI's Sites runtime; 10 GB database per Site | Plus, Pro, Business or Enterprise; not Free or Go | Fast personal or small sites without a hosting account |
| Codex + Vercel plugin | Builds, runs checks, deploys a preview, returns the URL | Your Vercel account | Codex plan; the guide does not name one | Developers who want a normal repo and host |
| Codex CLI or IDE on your own repo | Writes and edits code locally, you deploy | Any host you pick | Paid ChatGPT plans or an API key for CLI and IDE | Full control, any stack |
| Website builder instead | No code: you edit visually | Included with the builder | Builder's own plans | People who want to edit it themselves later |
Quick word on money. Some buttons on this page go through our /go/ links, and website builders like Framer and Webflow run affiliate programs. If you sign up through one, we may earn a commission. It does not decide what we tell you, and below we tell you plenty of cases where you should not pay anyone.
We did not build a test site with each route for this page. We read every plan page and guide OpenAI publishes on this, re-opened on 4 December 2026, and we quote them. Where OpenAI does not say something, we say so.
The short answer
Yes, Codex can build a website. OpenAI publishes a whole use case for it: Codex should "inspect the project before changing it", build or update the site, run the local build and project checks, deploy a preview with Vercel and return the URL. If the build fails, it reads the logs and tries again in the same chat.
On top of that, OpenAI now runs its own hosting for this. Its Sites docs say: "Describe a website, web app, or game in ChatGPT or Codex, then use Sites to publish it."
So the real question is not "can it", but "which route, and is it the right tool for you". That is what the rest of this page answers.
What Codex is, in one paragraph
Codex is OpenAI's coding agent. You give it a task in plain language, it writes and edits code, runs commands and tests, and shows you what it changed. It is not a website builder: there is no drag-and-drop canvas and no template gallery. It writes the HTML, CSS and JavaScript (or a framework like Next.js) that a developer would write. Our ChatGPT vs Codex page explains how it differs from plain ChatGPT chat.
Three ways to build a website with Codex
1. Codex plus ChatGPT Sites (the easy road)
This is the closest thing to a builder. You ask for a website, Codex builds it, and Sites hosts it. Facts from OpenAI's Sites help article:
- Who can use it: "ChatGPT Plus and Pro accounts, as well as Business and Enterprise workspaces." Not Free, not Go.
- How many sites: on Plus and Pro, "there's no fixed limit on the number of Sites you can create", though shared usage and storage limits apply.
- Hosting cost: "currently included with ChatGPT Plus and Pro." The word "currently" is doing work there. Enterprise hosting charges are "currently waived".
- Database: each Site's database can store up to 10 GB.
- Privacy: "New Sites are private by default." You choose Just me, invited people, your workspace or Public.
- Domains: you can connect a domain you already own by adding DNS records. Sites does not register domains.
The Sites docs also list what it will not do: raw TCP connections are not supported, "some frameworks, private networks, databases, background services, and hosting patterns aren't supported", card payments must go through a third-party processor, and you cannot use it for health data or sites aimed at children under 13.
2. Codex plus Vercel (the developer road)
OpenAI's deploy guide uses two plugins: Build Web Apps, which builds and reviews the app, and Vercel, which handles previews, build logs and project settings. You need a Vercel account, and the guide warns a "login step" may come up.
The nice part: the code lives in a normal repo and a normal host. If you stop paying for ChatGPT next year, the site keeps running. The guide also sets a sane default: deploy a preview first, and "ask for production only when you mean it."
3. Codex on your own repo (the full-control road)
Run Codex in the command line or your editor, let it write the site in your project folder, and deploy it wherever you like: a static host, a cheap shared plan, a VPS. OpenAI's pricing page lists the CLI, IDE extension and SDK for paid plans and API-key users.
This is the route for people who already know Git. You get everything, including the job of running it.
What it costs
Per OpenAI's Codex pricing page, read 4 December 2026:
- Free: $0, described as a way to "explore Codex capabilities on quick coding tasks", in the desktop app, subject to rollout. No Sites.
- Go: $8 a month. No Sites.
- Plus: $20 a month. Codex, Sites hosting currently included.
- Pro: from $100, with tiers at $100, $200 and $500.
- Business: $20 per user a month billed yearly for 2 or more users, $25 monthly.
- API key: standard API pricing.
For Plus, OpenAI publishes estimated local messages per five hours by model, and the range is wide: for example 17 to 180 for its top model and 350 to 3,000 for the lightest. A website is usually a few dozen rounds of "change this, fix that", so Plus is normally enough for a small site. Weekly limits may also apply.
Then add the extras that have nothing to do with OpenAI: a domain (from around ten dollars a year, see our how to register a domain guide), and Vercel or another host if you skip Sites.
Step by step: your first Codex website
- Write a one-page brief. What the site is for, the pages (home, about, services, contact), the tone, two sites you like, your colours. The guide says Codex can start from a brief, a screenshot or a design note.
- Ask for a first version. In ChatGPT or Codex, ask for a website and mention Sites, or ask Codex to build it in a new repo.
- Review it on a preview. Click every link on your phone. Check the text, because AI writes confident nonsense about your business if you let it.
- Iterate in the same chat. "Make the header smaller", "add a contact form", "fix the mobile menu". Codex keeps the context.
- Sort out the boring bits. Form handling, analytics, cookie rules for your country, a privacy page. Codex can write these; you decide what they say.
- Publish. Set the Site to Public, or ask Codex to deploy to production on Vercel.
- Connect your domain. Add the DNS records it gives you at your registrar, wait, refresh.
The catches nobody puts in the demo
- Every future change goes through Codex or code. No visual editor. Your colleague who wants to fix a typo needs either a ChatGPT seat or a code editor.
- Forms, payments and email need services. Sites says card payments go through a third-party processor. Contact forms need somewhere to send mail.
- "Currently included" can change. Hosting on Plus and Pro is free today. Plan for the day it is not, or keep a copy of the code.
- Region and data rules. Sites does not support data residency at launch, per OpenAI's help article. If your business needs data kept in one region, ask first.
- It can break things confidently. Read the summary of what changed before you push to production.
Codex or a website builder?
Here is the plain rule. If the site will be edited by a non-coder every week, use a builder. If it is built once and changed rarely, or needs custom features, Codex is a fine choice.
Use Codex if:
- You or someone near you can read a diff and handle a DNS record.
- You want code you own, with no template limits.
- You already pay for ChatGPT Plus and hosting is included.
Use a builder like Framer, Webflow or Squarespace if:
- You want to move things with a mouse and see them change.
- You need a shop, bookings or a blog editor for staff.
- You want one bill that covers hosting, SSL and support.
Our best website builder guide compares them, and should you use an AI website builder covers the AI-first builders that sit between the two worlds. If you are weighing other AI app builders, see can Base44 build a website. And our plain how to build a website guide covers the whole job, whichever tool you pick.
How we checked
We read OpenAI's Codex pricing page, the deploy use case, the Sites docs and the Sites help article on 4 December 2026. We did not build a site for this page or time how long one takes. OpenAI's own pages did not agree on every detail of Sites availability, so we quoted the Help Center version, which was live that day. When the vendor page and this page disagree, the vendor page wins. More on how we pick.
Questions people ask
Can Codex build a full website by itself?
It can write the code, run the build, and deploy a preview without you typing code, according to OpenAI's deploy guide. It still needs you for logins, environment variables, domain settings and the final yes for production. Think of it as a fast junior developer: it does the work, you check it and press publish.
Is Codex free to use for building a website?
OpenAI's pricing page says Codex is included in Free, Go, Plus, Pro, Business, Edu and Enterprise plans, with Free described as a way to explore quick coding tasks. But publishing with ChatGPT Sites needs Plus, Pro, Business or Enterprise, and the CLI and IDE extension are listed for paid plans and API keys.
Where does a Codex website get hosted?
Three options. ChatGPT Sites hosts it on OpenAI's runtime, with hosting currently included on Plus and Pro. The Vercel plugin deploys it to your Vercel account. Or you take the code Codex writes and put it on any host you like, from a cheap shared plan to a static host.
Can I use my own domain with a Codex website?
Yes. With ChatGPT Sites, OpenAI says you add your domain in the Site's settings, copy the DNS records Sites shows you and add them at your registrar. Sites does not sell domains, so you must already own one. On Vercel or another host, you connect the domain there in the usual way.
Is Codex better than a website builder like Wix or Framer?
Different tools. Codex gives you real code and no template limits, but you or Codex must make every later change. A builder gives you a visual editor anyone can use, templates, forms and hosting in one bill. If you will edit the site yourself every week, a builder is usually less pain.
Do I need to know how to code to use Codex for a website?
Not to start. You describe the site in plain words and Codex builds a first version. But it helps to know what a repo, a build error and a DNS record are, because that is where projects get stuck. If those words scare you, ChatGPT Sites or a website builder will be easier.
Sources
Every fact above comes from these pages. Prices change, so each one carries the date we read it.
- OpenAI Codex pricing and plans, checked 4 Dec 2026
- OpenAI Codex use case: Deploy an app or website, checked 4 Dec 2026
- OpenAI docs: Sites, checked 4 Dec 2026
- OpenAI Help Center: Creating and managing ChatGPT Sites, checked 4 Dec 2026