Deploy guide
How to deploy an app built with Codex
Codex writes normal code, so it can live anywhere. ChatGPT Sites will host it publicly, but creation requires a paid plan, the app lives with OpenAI, and access gating beyond public-or-workspace is limited. If you want the app in your own repository, on a permanent URL, with access rules you choose, deploy it with White Ghost: one CLI that Codex can drive for you.
From Codex output to live URL, in five steps
- Install the CLI once. npm install -g ghosty-cli. Every command supports --json and ends with a parseable ready line, so Codex CLI and other agents can drive the whole flow.
- Sign in. ghosty login. No passwords: magic link, Google, GitHub, or passkey.
- Scaffold the app. ghosty init asks a few questions and creates a normal repository in your own GitHub organization. Bring the code Codex wrote, or keep building inside the scaffold.
- Build with your assistant. ghosty dev runs the app locally. Each app ships starter instructions that teach Codex, Claude Code, and other assistants its conventions.
- Ship. git push triggers the build and rollout; real builds of a full app measure around a minute. Run ghosty deploy to watch until the new version is live on its own URL, with access controls built in.
Shortcut: paste this into your assistant and let it do everything above.Install the ghosty CLI, initialize this project with ghosty init, and ship it. Use --json output.
Or start from the console and send the work to Codex
The bridge runs in both directions. The Overview of every app has an "Open in Codex" button (and one for Claude Code), plus "Copy the instructions": a ready-made prompt that carries the app URL and the repository URL, so the assistant picks the work up with full context. You do not have to explain the project to it.
What you get after shipping
Deploying is not the end of the flow. Each app comes with a deploy history (every build keeps its commit, timing, and log, with a Redeploy button), a live log feed, analytics with requests and errors per day over 7 or 30 day windows, and a live preview URL for every open pull request, updated on each push. Secrets are applied without a redeploy, scheduled jobs can call your endpoints on a timer, and a custom domain comes with SSL issued and renewed automatically. If a deploy breaks, ghosty rollback or the Redeploy button takes you back.
Where can a Codex app live? The honest map
| Option | Best for | The trade-off |
|---|---|---|
| ChatGPT Sites (Codex) | Paid ChatGPT subscribers publishing a site fast on OpenAI hosting | The app lives with OpenAI, creation needs a paid plan, and access gating beyond public-or-workspace is limited |
| Vercel / Netlify / Cloudflare | Engineers shipping public production software | You assemble hosting, database, auth, and permissions yourself |
| Railway / Render / Fly.io | Apps needing persistent servers and workers | Same assembly, plus infrastructure to operate |
| White Ghost | Apps anyone you choose can open, no AI account required, in a repo you own | Managed platform: less infrastructure control than assembling your own stack |
Questions people actually ask
Can a Codex site be shared publicly?
Yes, since ChatGPT Sites went GA in July 2026: paid subscribers can publish publicly viewable sites. The remaining difference is control: with White Ghost the app lives in your own GitHub organization and you choose between public, a shared invite code, workspace members, or the app’s own sign-in, without the app depending on a ChatGPT plan.
Does White Ghost work with Codex, or only with Claude?
It is assistant-agnostic. The apps are normal repositories and the ghosty CLI is plain command-line tooling with --json output, so Codex CLI, Claude Code, Cursor, OpenCode, and other assistants can all drive it.
Can I move an app out of ChatGPT Sites?
The code Codex wrote is yours; recreate it as a repository, run ghosty init in that folder, and ship. From then on the app lives in your own GitHub organization with a database, file storage, and access rules you control.
What does a company get beyond hosting?
An isolated environment per company (its own database, domains, and build pipeline) plus team management: who can build, who can view, and every app in one place.