ChatGPT (Codex) Tutorial

Codex is a cloud-based software engineering agent (AI Agent) launched by OpenAI.
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 that can complete development tasks independently.
After July 10, 2026, Codex was merged into ChatGPT, becoming an application within ChatGPT.
Who should read this tutorial?
- Have learned at least one programming language (such as JavaScript / Python / Java / Go)
- Can understand basic syntax, functions, conditionals, and loops
- Have written simple projects or practice code
- Hope to improve development efficiency and engineering capabilities with AI
- Independent developers or engineers who need to maintain projects long-term
- Tech leads or core team members
Basic abilities required
- Basic programming ability (can read and write simple code)
- Basic code reading and understanding ability
- Can use common development tools (editors, command line)
- Willing to understand code rather than relying entirely on AI
Usage
Codex offers four ways of use to meet different scenario needs:
| Method | Description | Applicable scenarios |
|---|---|---|
| App (Desktop Application) | macOS/Windows desktop client | Full features, multiple projects in parallel |
| IDE extensions | VS Code, Cursor, Windsurf plugins | Deep integration with development environments |
| CLI (command line) | Interactive terminal tool | Terminal enthusiasts, script automation |
| Web (Cloud) | chatgpt.com/codex web version | Remote access, parallel tasks |
Five Core Capabilities
| Capability | Description |
|---|---|
| Write the code | Describe the feature you want to build, and Codex generates code matching your intent, automatically adapting to the project structure and conventions |
| Understand the 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 |
| Automation Tasks | Execute repetitive workflows: refactoring, testing, migration, project setup, and more |
Differences from Traditional AI Coding Tools
| Comparison Dimensions | Codex | ChatGPT |
|---|---|---|
| Working Mode | Proactive execution loop (model + actions) | Single-conversation answers |
| 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 | Does not execute commands |
| Project understanding | Deeply understands the entire codebase structure | Only based on conversation context |
| Task complete | Automatically executes until completion | Requires manual copy and paste |
Applicable Plans
Codex is included in the following ChatGPT plans:
| Plan | Price | Codex Features |
|---|---|---|
| Free | Free | Explore Codex for quick 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 VMs, 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 based on VS Code:
ByteDance Trae
A new-generation AI-native development environment launched by ByteDance
Visit ->
Baidu Dumate
A desktop-level AI office agent for individuals and teams.
Visit ->