ChatGPT (Codex) Tutorial

Codex is a cloud-based software engineering AI agent developed by OpenAI.
Codex can independently 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 merged into ChatGPT, and Codex became an application of ChatGPT.
Who should read this tutorial?
- Have learned at least one programming language (e.g., JavaScript / Python / Java / Go)
- Can understand basic syntax, functions, conditionals, and loops
- Have written simple projects or practice code
- Want to use AI to improve development efficiency and engineering capabilities
- Independent developers or engineers who need to maintain projects long-term
- Technical leads or core team members
Required basic skills
- Basic programming ability (can read and write simple code)
- Basic code reading and comprehension ability
- Can use common development tools (editor, command line)
- Willing to understand code rather than rely entirely on AI
Usage methods
Codex provides four usage methods to meet the needs of different scenarios:
| Method | Description | Applicable scenarios |
|---|---|---|
| App (Desktop application) | macOS/Windows desktop client | Full features, multi-project parallelism |
| IDE extension | VS Code, Cursor, Windsurf plugins | Deeply integrated development environment |
| CLI (Command line) | Terminal interactive tool | Terminal enthusiasts, script automation |
| Web (Cloud) | chatgpt.com/codex web version | Remote access, parallel tasks |
Five core capabilities
| Capability | Description |
|---|---|
| Write code | Describe the feature you want to build; Codex generates code matching your intent and automatically adapts to project structure and conventions. |
| Understand codebase | Read and explain complex or legacy code to help you quickly familiarize yourself with unfamiliar projects. |
| Code review | Analyze code to identify potential bugs, logic errors, and unhandled edge cases. |
| Debugging and fixing | Trace failures, diagnose root causes, and provide targeted fixes. |
| Automate tasks | Execute repetitive workflows: refactoring, testing, migration, project setup, etc. |
Differences from traditional AI programming tools
| Comparison dimension | Codex | ChatGPT |
|---|---|---|
| Working mode | Active execution loop (model + actions) | Single-turn conversation 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 | Does not execute commands |
| Project understanding | Deeply understands the entire codebase structure | Based only on conversation context |
| Task completion | Automatically executes until completion | Requires manual copy-paste |
Available 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, prioritized 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
Domestic Alibaba and ByteDance also have AI IDEs developed based on VS Code:
ByteDance Trae
The 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 extensions
Miaoda
Generate applications with a single sentence, quickly implement requirements with zero code, and automatically build complete applications
MonkeyCode
AI application development platform, supports task-driven development, with built-in terminal, file management, and real-time preview