ChatGPT (Codex) Tutorial

Codex is OpenAI's cloud-based software engineering agent (AI Agent).
Codex can autonomously understand, write, debug, and review code, and can handle multiple development tasks in parallel.
The official description of Codex is:One agent for everywhere you code。
Codex is like an engineer who can independently complete development tasks.
After July 10, 2026, Codex was merged into ChatGPT, and Codex became an application of ChatGPT.
Who should read this tutorial?
- Have learned at least one programming language (such as JavaScript / Python / Java / Go)
- Can understand basic syntax, functions, conditional statements, and loops
- Written simple projects or practice code
- Want to leverage AI to improve development efficiency and engineering capabilities
- Independent developers or engineers who need long-term project maintenance
- Technical lead or core team member
Basic capabilities required
- Basic programming skills (able to read and write simple code)
- Basic code reading and comprehension ability
- Familiar with common development tools (editors, command line)
- Willing to understand code rather than completely relying on AI
Usage
Codex offers four usage modes to meet different scenario needs:
| Method | Description | Applicable scenarios |
|---|---|---|
| App (desktop application) | macOS/Windows desktop client | Full functionality, parallel multi-project |
| IDE Extensions | VS Code, Cursor, Windsurf Plugins | Deeply integrated development environment |
| CLI (Command Line) | Interactive terminal tool | Terminal enthusiasts, script automation |
| Web (Cloud) | chatgpt.com/codex Web Version | Remote access, parallel tasks |
Five core capabilities
| Skills | Description |
|---|---|
| Write Code | Describe the feature you want to build, and Codex generates code matching your intent, automatically adapting to the project structure and conventions |
| Understand Codebase | Read and explain complex or legacy code, helping you quickly become familiar with unfamiliar projects |
| Code Review | Analyze code to identify potential bugs, logic errors, and unhandled edge cases |
| Debug and Fix | Trace failures, diagnose root causes, and provide targeted fixes |
| Automate Tasks | Execute repetitive workflows: refactoring, testing, migration, project setup, etc. |
Differences from traditional AI coding tools
| Comparison Dimension | Codex | ChatGPT |
|---|---|---|
| Work Mode | Proactively execute loops (model + actions) | Single-turn response |
| File Operations | Can read, create, and modify project files | Only provides suggestions, does not operate on files |
| Command Execution | Can run Shell commands in a sandbox | Do Not Execute Commands |
| Project Understanding | Deep understanding of the entire codebase structure | Based only on conversation context |
| Task Completion | Automatically executes until completion | Requires manual copy-paste |
Applicable Plans
Codex is included in the following ChatGPT plans:
| Plan | Pricing | Codex Features |
|---|---|---|
| Free | Free | Explore Codex for fast coding tasks |
| Plus | $20/month | Web, CLI, IDE, cloud integration, mainstream models |
| Pro | $200/month | 10x-20x higher limits, priority processing, Spark model |
| Business | Pay-as-you-go | Larger VM, SAML SSO, MFA |
| Enterprise | Contact Sales | SCIM, EKM, RBAC, audit logs, data residency |
Related resources
- Codex Official:https://openai.com/zh-Hans-CN/codex/
- Codex Documentation:https://developers.openai.com/codex
- GitHub Open Source:https://github.com/openai/codex
Related Products
In China, Alibaba and ByteDance also have AI IDEs developed on VS Code:
ByteDance Trae
A new-generation AI-native development environment launched by ByteDance
Alibaba Qoder
AI programming IDE launched by Alibaba, deeply customized based on VS Code
Online AI application generation and development platform:
Miaoda
Visit →
Visit →
other extensionsMiaoda
Generate applications with one sentence, quickly implement requirements with zero code and automatically build complete applications
MonkeyCode
AI application development platform, supports task-driven development, built-in terminal, file management, and real-time preview