Lesson 379 of 1596
Codex CLI vs Codex Cloud: Picking The Right Surface
The CLI and the cloud are the two surfaces you will use most. They have different strengths, different costs, and different failure modes.
Creators · Tools Literacy · ~5 min read
Two surfaces, two jobs
Codex CLI runs on your machine, sees your files, your env vars, and your installed tools. Codex Cloud runs in an OpenAI sandbox — a clean container with whatever you installed in its setup script. The CLI is for tight loops; the cloud is for delegation.
When the CLI wins
- You need access to a local database, VPN, or staging environment
- You want sub-second loops between prompt and result
- You are pair-programming and need to interrupt the agent often
- Your repo has uncommitted state you want the agent to see
- You need access to local secrets that should never leave your laptop
When the cloud wins
- You want to start a task and walk away
- You want three or four PRs in flight at once
- The work is well-bounded enough to run with no human in the loop
- You want a clean repo state with no laptop-specific oddities
- You want the result to land as a GitHub PR with full diff review
Compare the options
| Trait | CLI | Cloud |
|---|---|---|
| Latency to first response | Seconds | Tens of seconds |
| Parallel tasks | One at a time | Many at once |
| Local file access | Yes | Only what you upload |
| Best for | Pair programming | Background delegation |
| Failure visibility | Live in your terminal | Logs in the dashboard |
Applied exercise
- 1List the last five coding tasks you delegated to an AI
- 2Mark each one C (CLI-fit) or X (cloud-fit) using the criteria above
- 3If your list is mostly C, your delegation is too small. If it is mostly X, you are missing tight-loop work
- 4Aim for a healthy mix — both surfaces sharpen each other
Key terms in this lesson
The big idea: pick the surface that matches the task's shape. Tight loop and dirty state — CLI. Long horizon and clean PR — cloud.
End-of-lesson quiz
Check what stuck
8 questions · Score saves to your progress.
Tutor
Curious about “Codex CLI vs Codex Cloud: Picking The Right Surface”?
Ask anything about this lesson. I’ll answer using just what you’re reading — short, friendly, grounded.
Progress saved locally in this browser. Sign in to sync across devices.
Related lessons
Keep going
Creators · 9 min
Codex In 2026: OpenAI's Agentic Coding Layer
Codex is no longer the 2021 model. In 2026 it is OpenAI's agentic coding product — a CLI, a cloud, an IDE plugin, and a GitHub reviewer all sharing one brain.
Creators · 9 min
What Perplexity Is: Search-Augmented LLM, Not A Chatbot
Perplexity is built around the idea that every answer should cite its sources. Treating it like ChatGPT misses the point — and the reliability gap that comes with it.
Creators · 10 min
Spaces: Building Team Knowledge Bases In Perplexity
Spaces are Perplexity's project containers — system prompts, files, and shared chat history. They turn the search engine into a research workspace.
