Learn OpenAI Codex: Hand Off Real Coding Work to an Agent
Learn OpenAI Codex in six days: hand real coding work to it from your terminal and the cloud.
- Codex
- 6 days
- beginner
- 6 lessons
- about 3 hours
Free and self-paced. Every lesson is open to everyone.
Start with lesson 1What you will do
For developers who use a terminal and GitHub but are new to Codex. In six days you install the Codex CLI, write an AGENTS.md file, decide what Codex may do without asking, hand a longer task to Codex Cloud and review it as a pull request, run Codex with nobody at the keyboard, and add a hook and a skill for a job you repeat. You build a small site for a made-up kite shop. OpenAI lists the Codex CLI and Cloud for ChatGPT Plus, Pro, Business, Edu and Enterprise; local work also runs with an API key.
How this course works
The course is free and you go at your own pace. Each lesson is short: a bit of reading and a few small tasks you do in the tool itself, so you learn by using it. Every lesson is open to everyone, no account needed. A free account saves your progress, so you can pick up where you left off on any device. What the account stores and how to get it removed is on the privacy page.
Syllabus
- Day 1, 30 minutes How to install the Codex CLI and run your first task Install the Codex CLI, sign in with ChatGPT and let Codex build a small practice website in a new git repository.
- Day 2, 25 minutes How to write an AGENTS.md file that Codex follows Write a short AGENTS.md for your practice repository, check that Codex loads it and see it follow your rules in a real change.
- Day 3, 30 minutes How to control what Codex can do without asking Read your Codex sandbox and approval settings, test where Codex stops to ask and save a read-only profile for review sessions.
- Day 4, 30 minutes How to hand a task to Codex Cloud and review it as a pull request Publish a Codex Cloud environment for your repository, hand it a longer task and review the result as a pull request.
- Day 5, 25 minutes How to run Codex unattended with codex exec Turn a repeat check into one codex exec command that runs read-only, writes a report file and can run from a script with no one watching.
- Day 6, 30 minutes How to add a Codex hook and skill for a repeat job Add a skill that adds a kite the same way every time and a hook that tells Codex your uncommitted changes when a session starts.