Codex CLI for Engineers
Codex is OpenAI's coding agent for the terminal.
What you'll learn
- Sign in to Codex on any machine: with a browser, with a device code on a server that has no browser, or with an API key
- Check that a device-code page is the real one before you type a code
- Run a first task inside a workspace sandbox with approvals, and test what the sandbox refuses
- Write an AGENTS.md, and prove that the next change follows it
- Set defaults in config.toml, and switch model, reasoning effort and sandbox with profiles
- Add a local MCP server to Codex, and see where it is stored
- Run Codex unattended with codex exec, keep a record with the token usage, and know where the spend limit is set
- Make Codex and Claude Code follow one set of rules and guardrails in the same repository
Who this is for
- • DevOps engineers deepening their expertise
- • SREs building production-grade systems
- • Backend developers expanding into infrastructure
Prerequisites
- • Codex CLI installed, with a ChatGPT plan or an API key
- • Python 3.10 or newer, Git and jq, on macOS, Linux or WSL2
- • Basic use of a terminal and of Git: status, diff and commit
Course content
2 modules, 7 lessons, 29m of video
Module 1
3 lessons, 13 min
6 min
Read the login status, start a device-code login on a machine with no browser, and check three things before you type the code anywhere. Then store an API key and sign out, see the two documented fallbacks for when device code login is not available, and learn where Codex keeps the stored login. The narration is a synthetic voice made from the author's own voice.
5 min
Make a baseline commit, then watch the sandbox refuse a write outside the project, a write inside the git folder and a network call, with no model involved. Answer the trust question, give Codex a first small task with the workspace-write sandbox and approvals on request, and check the result yourself with git and the tests.
4 min
Write the rules of the repository in AGENTS.md, see with a debug command that Codex loads them, and give a task whose prompt names none of the rules. Git, the README, a docstring check and the tests show that the change followed them.
Module 2
4 lessons, 17 min
5 min
Set your defaults in config.toml, add a profile for reviews and one for hard problems, and check which sandbox each one gives before you rely on it, including what a misspelled profile name does. Then run a read-only review that changes no file.
4 min
Add a local MCP server with one command, read how Codex stores it in config.toml and in which scope, and let Codex build a ticket that only the server knows.
5 min
Run a prompt file with codex exec in a workspace sandbox, with no interface and no person to ask. Read the JSON Lines record and its token usage, see where the spend limit is set on the API platform, and how the same run looks as a step of a GitHub workflow.
5 min
Make CLAUDE.md import AGENTS.md so the rules are written once, write the same two guardrails as a Codex rules file and as Claude Code permission rules, and check both sides without calling a model. Then decide which agent to use for which job.
Get started
Start Free LessonFirst lesson is always free — no signup required
This course includes
Every lesson, with Pro
All 7 lessons of this course and every other course.
$25 a month billed yearly, or $29 month to month
Your instructor

Founder and CEO, Open Empower. About the author
More in AI Agents
All courses in this trackOpenClaw: Your First AI Agent
Deploy OpenClaw locally or on a small VPS, add real tools, create one reusable automation, and apply essential security guardrails. You'll leave with a working 'Ops Assistant' that generates a Daily Brief, creates an Action Queue, and does it all safely.
Beginner · 7 lessons · 58 min
Preview free lesson
Claude Code Masterclass: Ship Real Code with AI
Stop treating AI like a magic autocomplete and start using it like a sharp junior engineer who sits next to you — one you direct, review, and hold accountable. In 10 hands-on modules you'll master the Plan → Implement → Test → Review → Commit loop and use it to ship real, tested code with Claude Code: Best-of-N, honest test suites, safe git workflows, multimodal prompts, refactoring & docs, reusable skills, the GitHub MCP server, lifecycle hooks, and a production-readiness checklist. You stay the engineer of record — Claude proposes, you decide what ships.
Intermediate · 10 lessons · 1 h 55 min
Preview free lesson
Claude Code Bootcamp: Build Real-World Software with AI
The complete Claude Code Bootcamp by Luca Berton — thirteen hands-on modules that teach you to ship real, tested software with Claude Code. You stay the engineer of record: Claude proposes, you review and merge. Master the Plan → Implement → Test → Review → Commit loop, then apply it across GCOE prompting, CLAUDE.md brain files, Best-of-N, testing & self-review, safe Git workflows, multimodal screenshot-to-UI, constrained refactoring & docs, reusable Skills, the GitHub MCP server, lifecycle Hooks, and a five-axis production-readiness review. Includes a ten-skill reusable library and a 20-question knowledge quiz.
Intermediate · 15 lessons · 2 h 40 min
Preview free lesson