chatgpt + codex
Run your site from ChatGPT
Edit your site by talking to ChatGPT. Here's how to get set up — whether you've used Codex before or this is your very first time. You don't need an API key or any tokens, just your ChatGPT plan.
You manage your site through Codex, the part of ChatGPT that works on code. Switch ChatGPT to Codex, tell it which site with @GitHub, then describe the change you want in plain language. Every change arrives as a draft with its own preview link, so you always see it before anyone else does.
Prefer Claude? The same guide for Claude Code →
The GitHub repository for your site, as owner/name.
Have you used Codex before?
-
Get the ChatGPT desktop app one-time setup
Codex — the part of ChatGPT that works on your site's files — lives in the ChatGPT desktop app for Mac and Windows. Download it and sign in with your usual ChatGPT account. It's the same subscription you already have, not a separate product to buy.
Why the app and not the website? Codex reaches your site through your GitHub connection, and it can only use that connection in the desktop app. Already have the app? Make sure it's up to date — the current version has a ChatGPT / Codex switch at the top-left of the window.
-
Connect GitHub one-time setup
GitHub is the service that stores your site's files. In the app, open Plugins, find GitHub, and click Install plugin. ChatGPT shows a short "Connect GitHub" screen — click Continue to GitHub and approve it there. Your browser opens for this part, and GitHub may text or email you a code to confirm it's you. If GitHub asks which repositories to allow, pick your site (or allow all of them — either is fine).
Plugins → GitHub → Install plugin, then approve the connection on GitHub. That's the only connection you need — Codex uses this same one to make changes. If GitHub says an organization has to approve the request, contact us (below) and we'll approve it. You only ever do this once.
-
Switch to Codex, then start a new chat
At the top-left of the ChatGPT window, click ChatGPT and choose Codex. Then click New chat.
Top-left of the ChatGPT window
ChatGPT New chatThe switch says "Codex" when you're in the right place. This is the step people miss. In ordinary ChatGPT your GitHub connection can only read your site — ask it for a change there and it will tell you it isn't connected, or that it can't edit. Codex is the part that makes changes. If Codex asks you to choose a project or folder, any folder will do, even a new empty one: your site's files stay on GitHub, and Codex works on them there.
-
Mention @GitHub, name your site, and ask
In the message box, type @ and pick GitHub from the list — that tells Codex to use your GitHub connection. Then name your site's repository and describe what you want in plain language. Your repository is:
Your first message in the chat
GitHub In your-org/your-site, change all the button colors to red.The GitHub tag is what connects the chat to your site. Without it, Codex can't find it. No command and no special wording — talk about your site, not about code. Codex remembers which site you mean for the rest of that chat, so follow-ups don't need the tag:
- "Add a Black Friday banner to the homepage — 50% off, ends Monday."
- "Rewrite the about page in a warmer, less corporate tone."
- "The pricing page says $49 in two places and $59 in one. Make them all $59."
Your site carries its own instructions for AI assistants, and Codex reads them before it starts. That's why you don't have to ask for a draft or explain how your site is built — it already knows to keep your live site untouched and give you something to look at first.
-
Codex hands you a preview link
Codex works for a minute or two, then saves the change as a draft — a copy of your site with the change in it — and replies with a link to preview it. Your live site isn't touched.
What Codex says when it's done
I created a draft that changes all the buttons to red, with a darker red when you hover over them.
Preview the draft — it may take a minute to build, and it asks for your site login.
When it looks right, publish it from the BlinkPages editor.
Not happy with it? Just say what to change — Codex updates the same draft. If Codex shows you a button to create a pull request instead of a preview link — it does that when it's set to work in the cloud — press it. Until you do, the draft doesn't exist and there's nothing to preview.
-
Preview it, then publish
Open the preview link to see the change on a real copy of your live site — the rest of the internet still sees the old version. If the page isn't ready yet, give it a minute: BlinkPages builds every draft fresh.
Always use the link Codex gives you rather than guessing an address. When you're happy, open your site editor, find the draft in the list, and hit Publish — that's what puts it on your real site. If the preview still isn't there after a few minutes, the build didn't succeed; contact us and we'll take a look.
-
Optional: pick up your "Edit with AI" requests
Queued a change from the Edit with AI card on your live site? Those sit in your site's own queue until something picks them up. You can pick them up with Codex running on your own computer, not Codex in the cloud. (The cloud version works with the internet switched off, so it can't reach your queue or report back.) In the ChatGPT desktop app, switch to Codex and keep it working on This computer rather than in the cloud; the Codex command-line tool and the editor extension work the same way.
One-time setup. Three things your computer needs, once. Node.js — take the LTS download. Git, signed in to GitHub: install the GitHub CLI, then run
gh auth loginfollowed bygh auth setup-git. (Signing in to GitHub Desktop is not enough on its own — Codex can't see those credentials.) And a copy of your site's files on your computer:Codex keeps the internet switched off while it works, so the first time it needs to reach your site it will ask permission — say yes. It will ask again before saving and sending your changes; say yes to those too. To stop it asking every time, put these two lines in the file
~/.codex/config.toml(create it if it isn't there):Then open that folder in Codex and type:
What this looks like
WhereCodex, on This computerFolderthe copy of your siteYou type$blinkpagesIt may askto go online — allow itPlain words work as well as the command — "work my queue" finds the same thing. The first time each day, Codex prints a one-click link. Open it, check the code on the page matches, and click Approve — you'll need to be signed in as an editor of your site. That sign-in lasts 24 hours, so it comes round about once a day; that's normal, not a fault. After that Codex works through everything you queued, and each card on your site updates on its own.
If Codex stops part-way through a request, tell it to mark that job failed and say why — then queue the change again from your site. A request it has already started can't be cancelled from the page, so that's the way to clear it.
Good to know
- You don't need an API key.
- Your ChatGPT subscription does the work. There's no OpenAI key to bring and nothing to pay per edit here.
- Codex comes with your ChatGPT plan.
- OpenAI includes Codex in every ChatGPT plan, from Free up. On Free and Go it's still rolling out to the desktop app, so if you can't find Codex in the switch yet, that's why.
- Ordinary ChatGPT can read your site, not change it.
- Outside Codex, your GitHub connection is read-only: great for asking "what does my pricing page say?", but it can't change a thing. Switch to Codex before you ask for a change.
- Asking for options gives you separate previews.
- Ask for a few versions and each one gets its own draft and its own preview link to compare. They arrive as independent drafts, so publishing one doesn't clear the others away — discard the ones you don't want.
- "Edit with AI" requests are picked up on your computer, not in the cloud.
- Codex in the cloud works with the internet switched off, so it can't reach the queue behind that card or report back to it. Codex running on your own computer can — see the optional step above, where
$blinkpagesworks through everything you queued. If you'd rather not set that up, just ask Codex for the change directly instead. - It only touches your site.
- Codex edits your content and pages, and only inside your own repository. It can't see or reach any other site.
- More questions?
- Switching accounts, adding a team member, your email and old host: common questions, answered.
Stuck, or not sure your site has the editor turned on? Contact us and we'll get you set up.