Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ChatGPT (Codex) Tutorial

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?


Basic abilities required


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


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 ->