Skip to content
AI and automation4 min read

OpenAI Codex explained: OpenAI's coding agent and its pricing

Short answer

Codex is OpenAI's coding agent: it reads your project, edits files and runs commands, in the terminal (Codex CLI), in your code editor, in the cloud and inside the ChatGPT apps. According to OpenAI's pricing page in November 2026, Codex is included in every ChatGPT plan, the Free plan among them with lower limits, or you can use it with an API key billed by usage.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. Where Codex runs
  2. Codex pricing in November 2026
  3. Getting started with Codex CLI
  4. Common mistakes
  5. Moving what Codex wrote onto your hosting
  6. On ArabyHost

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:

  1. Go to your project folder and run codex.
  2. Choose Sign in with ChatGPT, or use an API key. On a server with no browser, use codex login --device-auth.
  3. Run /init in the first session to create AGENTS.md, and write your run and test commands and what must not be touched.
  4. 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 .env and 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 found after installing. ~/.local/bin isn’t on your PATH. Add it in ~/.bashrc and 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:

  1. Identify the app type (static, Node.js, Python, PHP) and ask Codex for the production build and start commands.
  2. If the app calls OpenAI or another model API, follow deploy an AI app using an API so the key stays on the server.
  3. 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.

Useful? Share it with someone who needs it:WhatsAppXLinkedIn

Read next

Ready to put your idea online?

Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.