Skip to main content
New: the Agentic AI Academy, 5 courses on running AI agents in production.Start free →

Sign in anywhere

This is the free lesson

Next: A first task in a safe workspace

The rest of this course is part of Pro, together with every other course and the ones added later.

$25 a month billed yearly, or $29 month to month

A free account keeps your progress across devices. The paid lessons need Pro.

Code Snippets

Commands of this lessonbash
codex --version
codex login status
codex login --help | grep -E -A1 "device-auth|with-api-key"
codex login --device-auth
codex login status
printenv OPENAI_API_KEY | codex login --with-api-key
codex login status
stat -f '%Sp %N' ~/.codex/auth.json
codex logout
codex login status
grep -A7 "No device code" CHEATSHEET.md
codex login status