Contents
OpenAI first used the Codex name in 2021 for a code-generating model, then reused it for today’s coding agent. That matters when you search: old tutorials about the “Codex API” describe something else. Today’s Codex works like Claude Code: give it a task and it searches files, edits them, runs commands and iterates until tests pass, then shows you what changed. The facts here come from OpenAI’s documentation and pricing page on 27 November 2026.
Where Codex runs
| Surface | Where it runs | Good for |
|---|---|---|
| Codex CLI | A terminal on your computer, or on a server over SSH | Terminal users and servers |
| IDE extension | Inside VS Code and similar editors | Seeing edits in your editor |
| Codex Cloud | OpenAI’s servers, on a repository linked to your account | Long background tasks |
| ChatGPT apps | Desktop, mobile and web | Starting and following tasks from anywhere |
Codex pricing in November 2026
There’s no separate Codex subscription. According to OpenAI’s pricing page, Codex is included in ChatGPT plans, each with a usage allowance:
| ChatGPT plan | Price shown | Notes from the page |
|---|---|---|
| Free | $0/month | For quick coding tasks, subject to availability |
| Go | $8/month | Detailed limits on the page |
| Plus | $20/month | The page publishes estimated messages per 5 hours |
| Pro | From $100/month | The page lists tiers at $100, $200 or $500 USD per month |
| Business | $25/user/month billed monthly | Or $20/user/month billed annually for 2+ users |
| Enterprise and Edu | Contact sales |
What to know about the allowance:
- It isn’t a fixed number of messages. The page says limits vary by model and task size, and its published figures are estimates.
- API keys are separate. Sign in with an API key and you pay API prices; your ChatGPT allowance isn’t used.
- Figures move. The same page lists temporary promotions with end dates, so check it before you choose.
Getting started with Codex CLI
OpenAI’s documented installer for macOS and Linux:
curl -fsSL https://chatgpt.com/codex/install.sh | sh
On a hosting account, installing with npm into your home folder is the safer route:
npm install -g @openai/codex@latest --prefix ~/.local
codex --version
Then:
- Go to your project folder and run
codex. - Choose Sign in with ChatGPT, or use an API key. On a server with no browser, use
codex login --device-auth. - Run
/initin the first session to createAGENTS.md, and write your run and test commands and what must not be touched. - Describe the task clearly and review the diffs before accepting.
The full server setup, including connecting the Codex app over SSH, is in run Codex on your server.
Common mistakes
- Working on the live site directly. Work on a copy, or commit before every task, and keep approval prompts on.
- Secrets in prompts or
AGENTS.md. What Codex reads is sent to OpenAI. Keep secrets in.envand never paste them into the chat. - Running out of allowance mid-task. Split the work, or use an API key for automation jobs.
codex: command not foundafter installing.~/.local/binisn’t on yourPATH. Add it in~/.bashrcand open a new session.
Moving what Codex wrote onto your hosting
With Codex CLI or the IDE extension there’s nothing to export: the code is in your folder. With Codex Cloud, changes land in your GitHub repository and you pull them from there. Then:
- Identify the app type (static, Node.js, Python, PHP) and ask Codex for the production build and start commands.
- If the app calls OpenAI or another model API, follow deploy an AI app using an API so the key stays on the server.
- For every option, see where to host a project you built with AI.
On ArabyHost
You built it with Codex; where does it run? On the AI/Developer plans, Codex itself runs over SSH inside CageFS with your own OpenAI account, so you can ask it to edit and deploy right on the server. Node.js (20 and 24) and Python (3.9 to 3.12) apps run there through Phusion Passenger, PHP 8.1 to 8.3 with MySQL/MariaDB, background workers with cron, and deploys come from GitHub or a ZIP upload. There’s no Docker, GPU or root access, so models are called over an external API rather than run locally. ArabyHost has no partnership with OpenAI and doesn’t keep your keys. Prices in your currency are on the pricing page.
FAQ
Is Codex free?
According to OpenAI's pricing page in November 2026, the ChatGPT Free plan includes Codex for quick coding tasks, with lower limits and subject to availability. Heavier use needs a paid plan or an API key.
How much does Codex cost?
Codex isn't sold on its own; it comes with ChatGPT plans: Go at $8, Plus at $20 and Pro from $100 a month, per the page in November 2026. With an API key you pay API prices instead of using a plan allowance.
What's the difference between Codex and ChatGPT?
ChatGPT is a chat that writes code for you to copy. Codex is an agent that works inside your project: it opens files, edits them, runs tests and then shows the changes for review.
Can I run Codex on my server?
Yes. Codex CLI runs over SSH on any server with Node.js or that accepts the official installer, and signs in with a device code or an API key. The steps are in the guide to running Codex on your server.