Codex Getting Started in Practice: A Full Breakdown of the Four Forms of AI Coding Agents

Codex is an AI coding agent that can autonomously read code, fix bugs, and run tests—fundamentally different from ChatGPT.
The article compares Codex and ChatGPT: ChatGPT is like a teacher who "talks," explaining and generating code snippets, while Codex is like a programmer beside you who "does the work," autonomously reading codebases, modifying code, fixing bugs, and running tests. The author notes that development is shifting from handwriting code to "state requirements—AI codes—human review," and programmers who use AI are more efficient, though reviewing AI output still requires programming fundamentals. Codex offers four forms—CLI, web, IDE plugin, and standalone client app—suited to terminal developers, beginners, daily coding, and complex multi-task scenarios; choose based on depth of use and combine as needed.
Why Codex Is More Than Just a "Chatty Coding Tool"
Many people assume Codex is basically the same as ChatGPT the first time they encounter it—both are built on large models and both can generate code. But according to analysis in a Bilibili tutorial video, the two have fundamentally different roles: ChatGPT is like a teacher who "talks"; Codex is like a programmer sitting next to you who "does the work."
Specifically, ChatGPT excels at answering questions, explaining knowledge, and generating code snippets—but after generating them, you need to manually copy and paste them into your development environment. Codex, on the other hand, is an AI coding agent that can autonomously read codebases, understand project structure, modify code, fix bugs, run tests, and execute scripts. You just say "help me build this login feature," and it will look at the project, modify the code, debug it, and once it works, tell you "it's done."

This difference determines Codex's use cases: if you only occasionally generate a few lines of code, tools like Doubao or DeepSeekAd are enough; but if you want AI to truly take over the repetitive work in your development workflow, an agent like Codex is the right choice.
The core difference between an AI Coding Agent and traditional code generation tools lies in "closed-loop execution capability." An ordinary large model is only responsible for predicting the next token based on context and outputting a piece of code text; an agent adds a tool-calling layer on top of this: it can read the file system, run shell commands, execute tests, parse error messages, and decide the next action based on the results. Such systems typically consist of three modules—planning, memory, and tool use—completing tasks through multiple rounds of a "think—act—observe" loop. Codex is precisely the combination of a large model's code comprehension capability with engineering environment operation capability, which is why it can autonomously locate the controller, routes, and database models involved in a login feature and modify and verify them one by one, rather than just giving you an isolated piece of code.
Why Developers Need to Learn Codex
The development paradigm is undergoing a structural shift. In the past, a programmer's core skill was handwriting code—every line typed by themselves; now the workflow has become "programmer states requirements → AI agent completes most of the coding → programmer reviews and optimizes."
The tutorial raises a key point: AI will not replace programmers, but programmers who use AI will be more efficient than those who write code purely by hand. The reason is that reviewing and optimizing AI-generated code also requires programming fundamentals—if you know nothing about code, you simply cannot judge whether the AI's changes are correct.

Therefore, the truly scarce skill in the future is not "typing code fast" but "being best at stating requirements to AI." Moving from writing code yourself to directing AI to write code—this is the most important reason to learn tools like Codex and Claude Code.
In an engineering context, "stating requirements to AI" refers to prompt engineering and task decomposition capability. An effective requirement needs to include goals, constraints, acceptance criteria, and context scope—for example, specifying which framework to use, following the project's existing code style, and which files must not be modified. This aligns with the thinking behind requirements specifications in traditional software engineering, except the target has changed from human developers to agents. The quality of requirements directly determines the usability of AI output: vague instructions yield generic code, while precise instructions enable the agent to make mergeable changes in the project. Therefore, this capability still fundamentally depends on understanding of system architecture and business logic.
The Four Forms of Codex
The Codex ecosystem currently offers four ways to use it. Their functional goals are similar, but their use cases differ significantly.
1. CLI Command-Line Version
Execute Codex commands directly in the terminal. Suitable for developers who can code, and currently the more mainstream way to use it. Its advantages are being lightweight and flexible, and it can be quickly integrated into existing workflows.

2. Web Version
Accessed through a browser, ready to use out of the box with no installation required. The downside is limited control over local projects. Suitable for beginners to try out and experience the workflow, but not recommended as the primary form for daily development.
3. IDE Plugin
Integrated into editors like VS Code, allowing you to write and modify on the fly, seamlessly combined with the project. For daily development, the plugin experience is quite smooth and is a form programmers use frequently.
The value of the IDE (Integrated Development Environment) plugin form lies in context awareness and low switching cost. The plugin can directly read the syntax tree, cursor position, selection range, and project index of the currently open file, passing the editor state as prompt context to the model, so completions and modification suggestions fit the current code better. VS Code and the JetBrains family both provide extension interfaces, through which the Codex plugin implements inline diff previews and one-click accept or revert of changes. Compared with the CLI, the plugin stays within the coding interface and is suitable for high-frequency small-step modifications; but for cross-file refactoring or long-running autonomous tasks, you still need to switch to a client form with stronger Agent capabilities.
4. Standalone Client App
The most feature-complete form, with a full graphical interface and the strongest Agent capabilities, supporting management of multiple tasks, connection to local projects, and handling of complex development workflows. The tutorial positions this version as Codex's "flagship form" and it is also the primary method demonstrated in the course.

Agent capability here refers to the degree to which an agent can autonomously plan and execute multi-step tasks. A complete Agent loop includes: understanding the goal, decomposing subtasks, calling tools (reading/writing files, executing commands, searching code), observing results, and revising the plan. The client app typically offers longer task runtimes, multi-task parallel management, persistent workspace sessions, and more complete permission controls, so it can handle tasks like "build this login feature" that require dozens of steps. The CLI and plugin are limited by single sessions and interface interaction modes, making them more suitable for short-chain tasks; understanding this capability gradient helps you decide which form to assign which tasks to.
How to Choose the Form That Suits You
The logic of choosing is actually simple: look at your depth of use and your scenario. Beginners can use the web version to get familiar with the interaction; for daily coding, use the IDE plugin to reduce switching costs; when you need to handle complex tasks and run multiple projects in parallel, the standalone client app's Agent capabilities stand out most; and for senior developers accustomed to terminal operations, the CLI is the most efficient entry point.
The four forms are not mutually exclusive—many developers use them in combination. For example, they use the plugin for coding day to day, and switch to the client when they encounter tasks that require autonomous execution of multiple steps. Understanding the boundaries of each form is more practically meaningful than blindly pursuing "the most complete feature set."
Final Thoughts
The value of Codex is not in replacing programmers, but in freeing developers from repetitive coding and shifting them toward requirement definition and code review. The barrier to learning it is not high, but the prerequisite is that you must be able to judge the quality of AI output. Pick one form and get started, then go deeper gradually—this is more effective than agonizing over "which tool to learn."
One-line Summary
Codex is an AI coding agent that can autonomously read code, fix bugs, and run tests—fundamentally different from ChatGPT.
Paragraph Summary
The article compares the role differences between Codex and ChatGPT: ChatGPT is like a teacher who "talks," explaining and generating code snippets, while Codex is like a programmer sitting beside you who "does the work," able to autonomously read codebases, modify code, fix bugs, and run tests. The author points out that the development paradigm is shifting from handwriting code to "state requirements—AI codes—human review," and programmers who use AI are more efficient, while reviewing AI output still requires programming fundamentals. Codex offers four forms—CLI, web version, IDE plugin, and standalone client app—suitable respectively for terminal developers, beginner experimentation, daily coding, and complex multi-task scenarios. The recommendation is to choose based on depth of use and combine them as needed.
Related articles

The Most Detailed Codex Beginner's Guide on Bilibili: From Installation to Real-World Pitfall Avoidance
Bilibili creator shares a complete Codex onboarding guide: GPT account registration, desktop install pitfalls, login verification and 403 error fixes, reconnect-5-times repair, permission settings, and Plus/Pro quota mechanics, plus the plan upgrade price-difference process.

The Most Detailed Codex Tutorial on Bilibili: 5 Hours from Installation to 80% Cost Reduction
Based on Bilibili creator Wei Fanshi's detailed Codex tutorial, this guide covers official download, connecting DeepSeek API via CCSwitch, and tuning methods including guided mode, memory, the Agent manual, and the Ponytail and Caveman Skills—helping domestic users bypass network and account barriers and reduce token consumption.

Codex for Beginners: Connecting DeepSeek and Token-Saving Tips
Beginner Codex tutorial: skip network hassles using CC Switch to connect the domestic DeepSeek model, plus practical tips to cut Token usage and boost efficiency, including installation, configuration, and advanced techniques.