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 run in your terminal and do the same job. 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
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.
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 |
| Web · claude.ai/code | the cloud |
| Version | Runs on |
|---|---|
| Terminal (command line) | 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.
Read Only
Reads and answers; changes nothing. Good for exploring or planning.
Auto · default
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 the middle level for everyday work, and drop to look-only when you want to read the plan first.
06 — Try it
Your first task
Point it at a small folder you do not mind experimenting on, and ask for something concrete. Move into the folder, start the tool, and type your 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.