# OpenAI Codex

> A helper that writes code for you. It can work in your terminal, your editor or the cloud.

**Field:** Artificial Intelligence  
**Category:** AI Tools & Platforms  
**Also known as:** Codex, Codex CLI, Codex cloud

## Think of it like

It is like a helper who reads your note, does the job, and shows you.

## Definition

OpenAI Codex is OpenAI's coding agent. You give it a job in plain words, and it reads your code, makes changes and runs the tests. It works in the terminal, in code editors, in a desktop app and in the cloud. In the cloud, it works on its own copy of your code and sends back the changes for you to check. Its terminal tool is open source and came out in April 2025. The Codex name was first used in 2021 for an older model behind the first GitHub Copilot.

## Example

Emma asks Codex in the cloud to fix three small bugs at once. While she has lunch, it works on each one and sends three sets of changes to review.

## Example code

```bash
codex "add a test for the login page"
```

Start Codex in a project folder and give it a job.

## Why it matters

One person can hand off many small coding jobs at once. Then they check the results.

## Common mistake

Merging its changes without reading them. Treat its work like a new teammate's, and check it.

## Three principles

- **A coding agent.** Reads, edits, tests.
- **Four places.** Terminal, editor, app, cloud.
- **You review.** Before you merge.

## Related terms

- [Agentic Coding](https://learn.benibix.com/term/ai/agentic-coding)
- [OpenAI](https://learn.benibix.com/term/ai/openai)
- [Terminal](https://learn.benibix.com/term/infrastructure/terminal)
- [GitHub Copilot](https://learn.benibix.com/term/ai/github-copilot)
- [Gemini CLI](https://learn.benibix.com/term/ai/gemini-cli)
- [Aider](https://learn.benibix.com/term/ai/aider)

## Taught in

- [Codex, Gemini CLI and Aider](https://learn.benibix.com/learn/ai-ai-tools/codex-gemini-cli-and-aider): AI Apps and Tools, 7/10

![One Codex account reaching four places: the terminal, the editor, a desktop app and the cloud.](https://learn.benibix.com/diagrams/at-openai-codex.svg)

---

Source: https://learn.benibix.com/term/ai/openai-codex
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
