Codex is OpenAI’s answer to agentic harnesses: a terminal and desktop agent with a built-in browser, synchronization with a mobile app, and access to the entire GPT ecosystem. At a round table of practitioners it was called a “universal machine” — and that is an accurate portrait: it covers more scenarios than any competitor, with a caveat about the limits.
What is in the box
Three form factors. CLI — for the terminal and scripts. Desktop — with a built-in browser: the agent opens pages by itself, clicks, and collects data. Mobile synchronization — a session started on your work computer continues from your phone: you leave the office, and the agent keeps reporting and waits for confirmations in the chat.
Installation takes a minute:
npm install -g @openai/codex
codex # a session in the current project
codex "break down the failing test and fix it" # a task in one line
codex resume # continue the sessionCodex reads the project rules from a file in the repository root — the same principle as CLAUDE.md in the Anthropic ecosystem: the project’s goal, the stack, the prohibitions, the response format. Five short paragraphs instead of five pages — the rule is the same.
Strengths
Code: generation and refactoring hold their own against the best models in the world — the number two model after Anthropic’s flagship according to practitioners. Texts: scripts, documentation, emails — a strong zone of the OpenAI line. Research: with the browser, the agent gathers sources by itself and compiles them into a report. Universality: one tool instead of three — the main argument for anyone who does not want to maintain a “zoo” of harnesses.
Weak spots — honestly
- Design and motion: OpenAI’s work is recognizable by its signature “green” taste, and in visual tasks Opus outperforms it — practitioners note this unanimously.
- Limits: on the entry-level subscription, intensive work burns through the quota in an hour and a half. Since December, chat and Codex limits share a common pool — spend the day in the terminal agent and less will be left for chat.
- Regional risks: an American company; tomorrow the terms for your region may change.
Subscription or API
The plans repeat the competitors’ logic: the entry level at $20 — getting acquainted and light sessions; $100–200 — a working regime without five-hour claustrophobia. Plans should be compared by real work: how many tasks get carried to completion, how fast the quota burns, how much time is lost waiting. The measurement methodology and the Agent SDK trap are described in the breakdown of Claude pricing without illusions — the principles are the same for both platforms.
For industrial volumes Codex connects through the API: a base URL and a key plug into any OpenAI-compatible stack. For bots and automations of routine tasks it is smarter not to pay at all: free models from the catalog of free LLM API providers cover the mechanical operations, and Codex stays for the complex work.
Scenarios from practice
The browser agent as a data collector. The desktop version opens pages, fills in forms, collects values: a typical case is gathering the state of ad accounts and compiling it into a table, while the agent logs in by itself and works through the pagination. Such a scenario needs the desktop specifically — the CLI without a browser cannot cope.
Mobile continuation of a session. You launch a long refactoring session in the morning; on the road you open the ChatGPT app — the agent reports which tests failed and asks for confirmation on a contentious step. For those juggling “two jobs at once,” this changed the rhythm: sessions are no longer tied to the chair.
A single pool of limits — the knife cuts from both ends. Chat and the agent share a quota: a morning chat brainstorm eats part of the day’s coding. Since December this effect becomes a formal rule. Hence the discipline: research questions go to the cheap models from the catalog of free APIs, and the OpenAI subscription is saved for code.
The Codex rules file: what to put in it
# Project: marketing dashboard
## Stack
React + TypeScript, FastAPI, Postgres. Do not change.
## Rules
- Commits are atomic: one meaningful step — one commit.
- Tests are mandatory for handlers and utilities.
- Secrets only via .env; .env never gets into git.
## Format
Plan before code. After a task — a diff and a brief explanation.The principle matches the Anthropic ecosystem: a short, living file that the agent re-reads in every session. How to organize memory, skills and hooks for both ecosystems is described in the agent memory guide.
Who Codex suits
- Those who want one tool “for everything” without a zoo — Codex’s strongest argument.
- Those whose day mixes code, texts and web research.
- Those who work from a phone: mobile synchronization here is the best on the market.
- Those who need vendor predictability: the OpenAI platform and documentation are a benchmark of API stability.
Who it does not suit: visual projects where taste decides (that goes to Opus); ultra-budget routine (that goes to free workers); teams firmly tied to an open stack (that goes to open models and self-hosted).
Security and Russian-language tasks
An agent with a browser and access to files is a higher-risk instrument: the platform restricts destructive actions, but only your own interceptor gives real guarantees. The same guard script works for any agent: a hook configuration for pre-execution of commands with blocking of rm -rf, force-push and access to keys is described in the guide on agent memory and hooks.
Codex writes Russian-language texts competently and with structure: documentation, emails, technical specifications — a strong zone of the GPT line, noted by every comparison. Keep in the project rules the requirement to answer in the language of the task — the agent mirrors the user’s language by default, but in code comments it leans toward English, and it is better to fix that explicitly.
A starter configuration in an hour
- Install the CLI with the command above and create the project rules file.
- Run the first session on a real task and measure: how many tasks were closed, when you hit the limit.
- Set up routing of the routine work to the free pool — changing the provider in an OpenAI-compatible stack is one line of configuration.
- Put a hook on destructive commands — a universal insurance policy for any agent.
Conclusion: Codex is the right default choice if you do not know where to start, and the right second tool if you are already sitting on a competitor’s flagship. The tier figures and limits are as of autumn 2026; verify them before buying.
