Blog · 12 November 2026
How to deploy an app you built with Codex
Codex built your app, and it works on your computer. The next step is a link other people can open. You can get one without leaving Codex.
This guide covers Codex running on your computer: in the terminal, in your editor or in the Codex app. Here's how to make your app live, and what to approve along the way.
Before you start
- Your app in a folder, open in Codex, and running on your computer.
- An email address for a Toupas account. There's no card: every new app is free for 30 days.
- For apps with their own server, such as Express, Next.js, FastAPI or Flask, Docker Desktop on your computer. If it's missing, Codex tells you and can install it. Websites made of files don't need it. See deploying without Docker.
Use Codex on your computer, not a cloud task. Codex tasks that run in the cloud work on a copy of your code on OpenAI's computers. They can't reach your Toupas sign-in or Docker Desktop, so the app can't go live from there.
Step 1: Ask Codex
Paste this into Codex:
Make this app live with Toupas. Instructions: https://toupas.com/agents.md
Codex reads that page, installs the toupas program and runs it.
Expect permission prompts. Codex keeps commands in a sandbox, and depending on your settings, it asks before running anything that needs the internet. Installing Toupas and sending your app both do. Read each command and approve it.
Step 2: Approve the sign-in
The first time, Codex gives you a link. Open it in your browser and approve it, once per computer.
Step 3: Answer anything only you can answer
Toupas works out how your app runs. It stops only for questions it shouldn't guess, such as whether the live app should start with a copy of your local data. Codex asks you, and waits.
If your app keeps its data in a file, such as SQLite, Codex is told to move it to Toupas's database first, and does. Here's why.
Step 4: Open your link
You get a link like yourapp.toupas.app. Open it on your phone, with Wi-Fi off, to check what everyone else sees.
Let Codex use Toupas directly
After the first time, Codex asks whether it can use Toupas's tools from now on. If you say yes, it runs:
toupas init --agents --yes
That adds Toupas to Codex's settings in ~/.codex/config.toml, with a longer time limit, because preparing an app can take a few minutes. It also adds a short Toupas section to your app's AGENTS.md. Start a new Codex session to pick up the tools.
From then on you can ask:
- "Update the live app."
- "Why is the live app showing an error?"
- "Set my OpenAI key on the live app as a secret."
- "Connect my domain to the app."
The tools are described here.
Secrets
.env files never go live. Ask Codex to set each key on the live app as a secret instead, and never to write keys into the code.
When something breaks
Tell Codex what you see. It can check whether the latest version went live and read what the app printed. Toupas also explains many common failures in plain words, so Codex often has the fix straight away. Here are the usual causes.
Questions
How do I deploy an app made with Codex?
Ask Codex to make the app live with Toupas, using the instructions at toupas.com/agents.md. Approve the commands it runs and the sign-in link, and you get a link anyone can open.
Why does Codex ask permission to run Toupas?
Codex runs commands in a sandbox and asks before using the internet. Installing Toupas and sending your app both need it.
Can I deploy from a Codex cloud task?
No. Toupas prepares your app on your own computer, and cloud tasks run elsewhere. Use the Codex CLI, editor extension or app.
Does Codex work with MCP servers?
Yes. Toupas adds itself to Codex's settings when you agree, and Codex can then make the app live, read its logs and change its settings through Toupas's tools.
Paste this into your coding agent
Make this app live with Toupas. Instructions: https://toupas.com/agents.md