Claude Code, from Anthropic, and Codex, from OpenAI, are coding agents. A coding agent is a program that works inside a folder on your computer, where it reads the files, runs commands in your terminal and edits code, stopping to ask before anything its settings do not already allow. A chat window sees only what you paste into it and hands back text for you to copy and run. An agent runs the script itself, reads the error and tries a fix.
Both need a paid account or an API key, and you should check the current price on each maker's pricing page before you start.
Watch how a session runs
You open a terminal in a project folder, start the agent and describe the job in ordinary sentences. It reads the files it thinks are relevant, says what it plans to do, and works through the plan one action at a time, printing each command and each edit as it goes. It stops whenever an action needs your permission.
Take a candle brand with a CSV of twelve shots that it wants rendered on Gemini Omni Flash, each one retried after a server fault and saved under its shot number. The agent writes the script and runs it in a dry-run mode, which prints the twelve requests and their cost without sending them, because your brief asked for one. Then it waits for you to say go.
Know the forms each agent comes in
Each agent comes in several forms that share one engine. Claude Code runs in the terminal, as an extension for VS Code, Cursor and the JetBrains editors, in the Code tab of the Claude desktop app, and in a browser at claude.ai/code, where the work happens on Anthropic's machines on a copy of your repository. Codex runs in the terminal as the Codex CLI, as an extension for VS Code, Cursor and Windsurf, inside the ChatGPT desktop app, and in the cloud at chatgpt.com/codex.
This course uses the terminal versions, which show every command before it runs.
Give it standing instructions and limits
Each agent reads a file of standing instructions from the project folder before your first message. Claude Code looks for CLAUDE.md and Codex for AGENTS.md, and both are plain Markdown notes you write yourself. For the candle film, the file might say where the keys live, which model and resolution to use for drafts, how finished clips are named, and that nothing which spends money runs without a person's yes.
Permissions are where the two differ most. Codex starts with a sandbox, a fence the operating system puts round its commands, which cuts off the network and keeps writes inside the project. Claude Code starts in auto mode, where a second model reviews each action in place of you, unless your settings name another mode. Read every permission prompt before you approve it.
Hand it the plumbing and keep the words
An agent earns its place in the plumbing around generated video. Batch scripts, retry logic, file naming, contact sheets, ffmpeg cuts and cost logs are dull, precise work that it does well. It adds nothing to the prompt itself, and left alone it may tidy your carefully weighed camera language into something plainer. Keep the words yours and let the agent build the machine that sends them.
Pick one agent and learn it properly. Everything in this module works in both, and the plan you already pay for matters more than which one writes better code.
Avoid the money traps
If ANTHROPIC_API_KEY is set in your shell, Claude Code asks once whether to use it. After a yes it bills that key per token, at API rates, even though you pay for a subscription. Codex keeps its login in a plain text file at ~/.codex/auth.json unless you tell it to use the system keychain. Subscription limits are shared too, so a long agent session draws on the same allowance as your chats.
The costliest mistake is trusting either agent unwatched. An agent allowed to run renders on its own can decide a take looks wrong and make it again, and Google bills every clip it actually generates. So this module holds one line throughout. The agent writes the script, runs it dry and explains what it will spend, and a person presses go on anything that costs money.
The next lesson installs them and runs the first session.