00 — Orientation
What you are installing, in one minute
A coding agent is the same kind of model as a chatbot, with a machine built around it so it can act, not just answer.
A chat window can only hand you text. An agent opens your files, runs your code, reads what happened, and fixes it, pausing for your approval along the way. That is the whole difference, and it is why the setup below is worth fifteen minutes.
Think of a fast, very literal research assistant sitting at your computer. It types the commands; you make the decisions and check the result. Nothing happens on your machine without your yes.
01 — The distinction that matters
What can it touch?
Every way of using AI differs mainly in what it may reach. Where the work runs is also where your data goes.
| How you use it | Your files | Run your code | Where it runs |
|---|---|---|---|
| Chat windowChatGPT / Claude | — none | — you run it | your browser |
| Agent on your laptopthis guide | ✓ reads & edits | ✓ runs & checks | your machine |
| Cloud agentruns on servers | a copy on GitHub | ✓ on servers | the vendor's servers |
This guide sets up the middle row: an agent on your own laptop.
02 — Pick a tool
Two agents, either one works
Both do the same job. Each comes as a terminal program and as an app, and either form works. This course does not require a specific one, so pick by what you can access, then use it all week.
Claude Code
by Anthropic
- Sign in with an Anthropic account.
- Needs Claude Pro ($20/mo) or Max, or pay-as-you-go API credits.
- New API accounts get about $5 free credits to try it.
- No student free tier.
Codex
by OpenAI
- Sign in with a ChatGPT account.
- Verified US/Canada students get $100 in free usage credits.
- Or use ChatGPT Plus ($20/mo), which includes it.
- The cheapest path if you are a student.
Credits are a fixed amount of usage you spend as you go; the $100 student credits and Anthropic's $5 trial are credits, and they run out once used. A plan like ChatGPT Plus or Claude Pro is a flat $20 a month with a usage allowance that refreshes. For this course the $100 Codex credits are plenty, so as a student you need no plan at all.
If cost matters and you are a student, Codex is free with the student credits. If you already pay for Claude, Claude Code is right there. The rest of this course works exactly the same with either.
03 — Install
Install it
There are two ways to install, and either one works: the terminal program or the app. The terminal install comes first, the app install after it.
The terminal program
One line installs the tool, with nothing else needed. Choose your operating system, then run the line for the tool you picked.
-
Open the Terminal app
Press
⌘ Command+Space, type Terminal, and press Enter. A small text window opens. -
Install your tool with one line
Neither installer needs any other software. Run the one for your chosen tool.
Claude Code$ curl -fsSL https://claude.ai/install.sh | bashCodex$ curl -fsSL https://chatgpt.com/codex/install.sh | sh -
Start it and sign in
Type
claudeorcodexand press Enter. The first time, it opens your browser to sign in with your account.$ claude # or: codex Sign in to continue… → your browser opens; approve, and you land back here signed in.
Approximate — the exact prompt differs by tool.
-
Open PowerShell
Click Start, type PowerShell, and press Enter. Both tools run on Windows directly.
-
Install your tool with one line
Run the line for your chosen tool. No WSL and no extra setup are needed for this course.
Claude CodePS> irm https://claude.ai/install.ps1 | iexCodexPS> irm https://chatgpt.com/codex/install.ps1 | iex -
Start it and sign in
Type
claudeorcodexand press Enter, then sign in through the browser, exactly like on a Mac.PS> claude # or: codex Sign in to continue… → your browser opens; approve, and you land back here signed in.
Approximate — the exact prompt differs by tool.
The app
Codex comes as an extension inside the VS Code editor, and Claude Code comes as a desktop app. Both open a project folder and take the same requests in plain English.
-
Install VS Code
Download it from code.visualstudio.com. It is the same on Mac and Windows.
-
Add the Codex extension
Open the Extensions panel on the left, search for Codex, and install the one published by OpenAI (id
openai.chatgpt). A Codex icon appears in the sidebar. -
Sign in
Click Continue with ChatGPT, using the same account as before. Then open your project folder and give it the same prompt you would type in the terminal.
-
Download the desktop app
Get the Mac or Windows installer from the Claude Code desktop app page. The app includes Claude Code, so installing the app is enough on its own.
-
Sign in and open a project
Launch the app, sign in with your Anthropic account, and open your project folder. Give it the same prompt you would type in the terminal.
Older guides install either tool with npm, which first needs Node.js. You do not need that path; both one-line installers above are self-contained and get you the same tool.
04 — The versions
Each tool comes in a few versions
They do the same job. The difference that matters is where the code runs: on your own computer, or on the vendor's servers. Pick whichever you prefer; the rest of this course works with any of them.
| Version | Runs on |
|---|---|
| Terminal (command line) | your computer |
| Desktop app · Mac & Windows | your computer |
| Web · claude.ai/code | the cloud |
| Version | Runs on |
|---|---|
| Terminal (command line) | your computer |
| VS Code extension | your computer |
| Codex Cloud · chatgpt.com/codex | the cloud |
The cloud versions run on the vendor's servers and work on a copy of your project from GitHub. The rest run on your own machine, on your local files. A free GitHub account is enough for either.
05 — Staying in control
Permission levels
Each tool runs at one of three levels, from look-only to no-guardrails. The question behind all of them: how much would you let a brand-new assistant do unsupervised?
Plan Mode
Looks and plans; changes nothing. Good for exploring or thinking first.
Normal · default
Reads, edits, and runs, but asks before each real action.
Auto-Accept
Same as Normal without the prompts. For trusted, repeat tasks.
Ask for approval · default
Reads and answers; asks before every edit or command. Good for exploring or planning.
Approve for me
Edits and runs in your folder without asking; stops at the network.
Full access
Edits, runs, and reaches the network with no prompts. Rarely, with care.
Start in Ask for approval, and move to Approve for me for everyday work once you trust the agent. The apps offer the same levels in their own interface; see the Codex approvals docs and the Claude Code desktop app docs.
06 — Try it
Your first task
Point it at a small folder you do not mind experimenting on, and ask for something concrete. In the terminal, move into the folder, start the tool, and type your request. In the app, open the same folder and give the same request.
$ cd my-first-project $ claude # or: codex › explain what the files in this folder do The agent reads the folder and answers.
"Explain what this script does." · "Add comments to this file." · "What columns are in this dataset?"
07 — If a step fails
Common setup snags, and the fix
Setup problems are normal and quick to clear. The usual ones:
- "command not found" after installing: close the terminal, open a new one, and try again. It just needs a fresh window to see the new tool.
- The install line fails partway: check your internet and run it once more; most failures are a dropped connection.
- Sign-in does not open a browser: copy the link it prints and open it in your browser yourself.
- Still stuck: check the official pages linked at the top, or raise your hand and post to the course board.
You do not copy errors anywhere. The tool runs your commands, reads the errors itself, and fixes them. If something still looks wrong, just tell it in plain words.