How to build a website with Codex comes down to five moves: open Codex where you like to work, give it a finished design instead of a one-line idea, let it build the project in a folder on your computer, check the result in a browser, then deploy it. This guide follows that path using OpenAI's own Codex docs as of 25 November 2026. If you're still deciding which agent to use, start with Codex vs Claude Code for building websites. The design rules that keep a Codex site from looking generic have their own page, our Codex design guide, so here we stay on the build and the launch.
What you need (desktop app, CLI or IDE extension)
OpenAI's Codex page says "Codex is included in your ChatGPT plan", and its pricing docs list Free, Go, Plus, Pro, Business, Edu and Enterprise. How much you can do each week depends on the plan, so check that page before a long build.
You can run Codex in three places. They all sign in with your ChatGPT account:
- The ChatGPT desktop app. Per OpenAI's quickstart, you open a folder and select Codex from the ChatGPT dropdown "for software development with codebase context and developer tools". It runs on macOS, Windows and Linux.
- The Codex CLI. Install it with OpenAI's installer, npm (
npm install -g @openai/codex) or Homebrew, then runcodexin your project folder and choose Sign in with ChatGPT (CLI docs). - The IDE extension. OpenAI's IDE docs list VS Code, Cursor and Windsurf, with their own integrations for Xcode and JetBrains IDEs.
You'll also want Node.js, if the site is a Vite + React project, and Git, so you can roll back. OpenAI's IDE docs suggest creating "Git checkpoints before and after a task so you can revert changes".
Start from a design, not a blank prompt
"Build me a landing page for my product" gives Codex almost nothing to go on, so it fills every gap with defaults: a centred hero, three feature cards, a safe font. That's the look people mean when they say a site "looks AI".
Give it a finished design instead. You have three options:
- A template prompt. Each of our templates has a prompt for Claude, Codex or Cursor, written from the finished site. vibetyper, above, is free with an account, for personal use.
- A Vite + React project. Monthly and yearly plans add the Vite + React project, the exact site from the preview, so Codex edits a working tree instead of rebuilding it.
- Your own Figma file or screenshots. Codex can read images you attach, and the Figma MCP server can give it design context (more on that below).
We explain how our projects are set up in React + Vite website templates.
How to build a website with Codex, step by step
This is the loop we use. It works the same in the app, the CLI or the IDE extension.
- Make an empty folder and open it in Codex. In the CLI,
cdinto it and runcodex. - Add an
AGENTS.mdfile. OpenAI's docs describe AGENTS.md as the place to "give Codex extra instructions and context for your project". Put your stack (for example Vite + React), your fonts and colours, and "don't change the design unless I ask" in it. What else to write there is in the Codex design guide. - Paste the design prompt. Ask Codex to build the site in this folder and to run the dev server when it's done.
- Compare with the preview. Open the local URL next to the template's preview video. Fix the sections that are clearly off before you change any words.
- Replace the content, one section at a time. Your name, headline, copy and images. Ask for "content only" so the layout and motion stay put.
- Make scoped design changes. One request per change: "make the hero headline one step smaller", not "make it more premium".
- Review the diff and commit. Codex shows each change in a review pane. Keep what you want, then commit before the next step.
If you're on a monthly or yearly plan, skip step 3: download the template's Vite + React project, open that folder in Codex and go straight to step 4.
Connect a design MCP
MCP servers give Codex tools it can call during the build. Two are useful for websites:
- The uberdesigner MCP. Run
codex mcp add uberdesigner --url https://uberdesigner.ai/api/mcp, thencodex mcp login uberdesigner. After that you can name a template in the chat and Codex fetches it. A free account can take every free template's prompt this way. - The Figma MCP server. Figma's MCP catalog lists Codex as a supported client. Use it when the design lives in your own Figma file.
Codex keeps MCP servers in one config.toml that the app, CLI and IDE extension share, so you only add a server once. Full setup, including the IDE and app menus, is in MCP design tools for Codex.
Deploy
You have two routes to a live URL.
ChatGPT Sites. OpenAI's Sites docs describe it as a way to "build and share a website by describing it in ChatGPT or Codex", and you can also bring a project you've already built. OpenAI's suggested prompt for that is "Deploy this project with sites. Check whether it is compatible, make any required changes, and give me the deployment URL." A few things to know, from OpenAI's docs as of 25 Nov 2026:
- Sites is available on Plus, Pro, Business and Enterprise (Help Center).
- You create, deploy and manage a site from ChatGPT on the web or the desktop app. The CLI and IDE extension can edit and test the local project, but they don't manage sites.
- "Every sites deployment URL is a production deployment." Ask ChatGPT to save a version without deploying if you want to review first.
- New sites are private. You choose who can visit when you share.
- Building and editing count toward your Codex usage, and hosting has its own monthly allowance. OpenAI says hosting is free through 31 January 2027 and that it plans to start charging Plus, Pro and Business for usage above the allowance on 1 February 2027 (usage and cost).
- Some frameworks and hosting patterns aren't supported, so let ChatGPT check compatibility first.
Any static host. A Vite + React site builds to static files. Ask Codex to run the production build, then follow your host's steps in Vite's static deploy guide, which covers hosts such as GitHub Pages, Netlify and Vercel. This route keeps the site independent of your ChatGPT plan.
Before you send the link anywhere, check titles and meta descriptions, the page on a phone, every link and form, and that the images in the build are yours, not the template's.
Common problems
- It looks generic. The prompt left the design open. Give Codex a finished design and put the type, colour and spacing rules in
AGENTS.md. See the Codex design guide. - One fix breaks another section. Ask for one change at a time and commit between changes, so you can roll back.
- Fonts or images don't load in the build. Ask Codex to check the asset paths and font imports against the production build, not only the dev server.
- A design MCP won't sign in. Run
codex mcp login <server-name>again. On a machine without a browser, OpenAI's MCP docs describe a--no-browseroption. Some users report trouble re-authenticating the Figma MCP in the Codex app (OpenAI community). - Sites says the project isn't compatible. Ask ChatGPT what it would change, or use the static-host route instead.
FAQ
Can Codex build a whole website?
Yes. It can create the project, write the code, run a dev server and, with Sites, deploy it. The look is only as specific as the design you give it, so start from a finished design rather than a short description.
Do I need a paid ChatGPT plan to use Codex?
No. OpenAI's pricing docs say Codex is included in Free and Go as well as paid plans, with different usage. Sites, OpenAI's hosting for what you build, is on Plus, Pro, Business and Enterprise.
Where does the code live?
With the desktop app, CLI or IDE extension, in the folder you opened on your computer. You can put it in Git and deploy it anywhere.
Can I use an uberdesigner template with Codex?
Yes. Copy the template's prompt into Codex, or connect the uberdesigner MCP and name the template. A free account covers free templates for personal use. Monthly and yearly plans add the Vite + React project and a Figma file where the template has one, for commercial and client work.