One subscription, three tabs CORE
The Claude desktop app is the home base for the rest of this course. You install it once, sign in with an Anthropic Pro subscription (around $20/month), and you have access to three tabs that handle different shapes of work. The single subscription unlocks all three — there's no separate install for any of them, and there's no API key to manage just to use the app.
Chat. Like the regular Claude.ai chat — a conversation that doesn't touch your files. Use it for quick questions, brainstorming, anything where you don't need the AI to read or modify what's on your computer. You'll dip into this tab throughout the course.
Cowork. The autonomous mode. You hand the agent a task — research a topic, draft an email, run a scheduled report — and it works on it in the background, sometimes for minutes, sometimes on a schedule. You can keep working on something else while it runs. The bulk of this course lives in Cowork: research agents in Module 4, inbox and calendar work in Module 5, scheduled automation in Module 6, multi-agent orchestration in Module 8, and most of the capstone in Module 10.
Code. The interactive mode for directing an agent on a specific folder of files. The agent proposes each change, you review the diff in real time, and you accept or reject before anything lands. Module 3 — “AI Coding Partners” — is where you'll spend the most time in the Code tab. After that, you'll occasionally drop back into Code if your capstone involves writing or editing code.
When a recipe says “in Cowork” or “in the Code tab,” that means switch to the named tab inside the desktop app, not open a different program.
A note on prices. Tier names and prices change. Verify current pricing at claude.com before subscribing.
When to reach for which tab CORE
You'll get a feel for this with practice, but the rule of thumb is short and worth memorizing now.
Reach for Code when you want to make specific changes to specific files and review each change before it lands. You're working on a folder, you have a clear idea of what you want changed, and you want eyes on every diff. This is Module 3's whole pedagogy.
Reach for Cowork when you want to hand the agent a task it can work on autonomously while you do something else. Research a topic, draft a message, run a scheduled task, build a multi-step report. The output comes back as a finished result, not a per-edit review.
Reach for Chat when you just want to think out loud or ask a question without giving the agent access to your files.
Most of the time in this course, the answer is Cowork. Module 3 is the standout exception — that's the module where directed coding edits live, and the Code tab is the right tool for it. The rest of this lesson sets up the desktop app so all three tabs are ready when their modules arrive.
Optional advanced: the API path CORE
The Pro subscription covers everything most students will do in this course. But two later modules — Module 6 (scheduled tasks and automation) and Module 8 (multi-agent orchestration) — introduce work where students who want to build custom scripts can benefit from a second path: direct API access via an Anthropic API key. This path is fully optional. Most students will never need it, and the rest of this lesson treats the desktop app install as the primary work.
What the API path is, briefly: every cloud AI provider exposes an API — a way for code you write to talk to the model directly, without the desktop app in the middle. To use it, you generate a secret string called an API key, store it safely, and your code includes it in each request. You're billed per request based on how many tokens (rough word-pieces) you used.
Every cloud AI provider follows roughly the same four-step pattern:
Step 1: account. You create an account on the provider's developer console — a separate website from the consumer chat. The developer console is different from your terminal/command-line “console”: the developer console is a web page, while your terminal is an app on your computer. They share a name, but they are not the same thing.
Step 2: billing. You add a payment method and set a hard monthly cap. The API path is pay-as-you-go — charged for what you actually use, billed monthly against the card on file — which is why the cap matters.
Step 3: API key. You generate a secret string, often starting with something like sk-.... This string is how your code proves it is authorized to spend money on your account. Whoever holds it can spend your money.
Step 4: send a request. You put the key in your environment (not your code), make a request to the provider's API, and get a response.
The branding and UI differ, but steps 1–4 look the same on Anthropic, OpenAI, Google, and others. Learning one teaches you the pattern for all of them.
If you're curious or you know you want this skill — for the practical advantage in Modules 6 and 8, or because the API-key habits transfer to any developer-facing AI work — the optional advanced section in Stage 2 walks you through it. If you'd rather skip it for now, you can. The course is designed to work either way, and you can always come back to this lesson later.
Optional advanced: API key hygiene, tokens, and cost ceilings CORE
This block is for students taking the optional advanced API path. If you're staying on the Pro subscription path only, you can skim this and move on; it'll still be here when you want it.
An API key is a password with money attached. Anything you wouldn't do with your email password, you shouldn't do with an API key. Four rules, memorize them:
Rule 1: never commit an API key to source control. Source control (also called version control) is a system that tracks changes to your code over time — the most common one is git, and the most common place to publish git projects is a website called GitHub. When you “commit” something to git and push it to GitHub, it lives online — sometimes publicly. Keys that land in public GitHub repositories are scraped within minutes by bots, and whoever runs the bot spends your money until you notice. This is the most common way people lose money to their AI accounts. Not theoretical — very real. (Module 3 introduces git in depth; for now, just know: don't put keys in code that might get pushed online.)
Rule 2: never paste an API key into chat, email, or a screenshot. Screenshots in particular catch people off guard. If you are sharing terminal output with a friend or a forum, double-check that no key is visible.
Rule 3: store keys in a .env file or a proper secrets manager, not in your code. A .env file holds environment variables — named settings your code reads at runtime without the values appearing in the code itself. More on this in the recipe below. A “secrets manager” can also be your OS keychain: a built-in password vault that comes with your computer (Keychain Access on Mac, Credentials Manager on Windows).
Rule 4: rotate keys when in doubt. If you think a key may have leaked — even if you are not sure — go to the provider's developer console, delete the key, and generate a new one. This takes thirty seconds and forecloses a whole category of problems.
Module 9 will deepen this into a full threat model — prompt injection, exfiltration patterns, rotation policy. For now, the four rules are the floor.
Cloud pricing is measured in tokens. A token is roughly three-quarters of a word on average, though this varies. A 500-word email is roughly 700 tokens in; a 1,500-word blog draft out is roughly 2,000 tokens out. Input tokens are what you send — your prompt, including any documents you attach. Output tokens are what the model generates back. Output is usually priced higher than input because generation is more expensive than reading.
Anthropic ships three model size tiers, each named after a poetry form. The names are quirky but functional:
- Haiku — fastest, cheapest, smallest. The “use it for simple things” tier.
- Sonnet — the everyday workhorse. Roughly 5–10× the per-token price of Haiku, much more capable.
- Opus — the most capable, most expensive. A few × more than Sonnet.
You'll use Haiku for almost all tests and small calls if you take the optional API path, and Sonnet when capability matters. (OpenAI and other providers have their own tier names — gpt-4o-mini, o1, o3 — same idea.)
A rough mental model for a mid-tier frontier cloud model (Sonnet-class, as of the April 2026 build):
- A short chat-style Q&A: under a cent.
- A 2,000-word document draft: 2–8 cents.
- A deep research task that reads 10 sources and writes a brief: 10–40 cents.
- A day of heavy directed work on a coding project: 1–4 dollars.
These dollar figures are quoted as of 2026-04-17 and refresh quarterly. Current per-token rates live in each provider's pricing page.
Your cost ceiling is a monthly budget you commit to. The provider's developer console lets you set a hard cap that stops API access when exceeded. Set it. A reasonable ceiling for a student starting out is $5–20/month; it will almost certainly be under-spent, but the cap prevents runaway bills from a loop that goes sideways. Lesson 2.5 will make this ceiling part of your workstation posture.
Install the Claude desktop app and verify your tabs RECIPE
| Tool | Claude desktop app |
| Version tested | April 2026 build |
| Last verified | 2026-04-17 |
| Next review | 2026-07-17 |
| Supported OSes | macOS 12+, Windows 10/11 |
Before you begin
You have a working email address and a way to pay for the Anthropic Pro subscription (about $20/month, billed by Anthropic). If you are under 18, do this together with a parent. The split most students will use:
- Account email and login: the student's. This is the account you will use day to day to run the desktop app.
- Payment method: the parent's. A credit or debit card the parent owns and is comfortable being billed monthly against. Pro is month-to-month and the parent can cancel at any time from the Anthropic billing page.
- Practical setup: student creates the account and reaches the subscription screen, then hands the keyboard to the parent for the card entry. The student then continues with the install and tab-verification steps.
Steps
- Go to https://claude.com/download and download the desktop app for your operating system. Install it like any other app (drag to Applications on Mac; run the installer on Windows).
- Launch the Claude desktop app. If you don't have an Anthropic account yet, click “Sign up,” create one with email + password, and verify the email. (Under-18 students: this is the student's account.)
- The app will prompt you to choose a plan if you don't already have a paid subscription. Choose Pro — that's the tier this course is built around. (Under-18 students: parent at the keyboard for this step. The card stays with the parent.)
- After signing in, you should see three tabs at the top of the app: Chat, Cowork, and Code. Click each tab once to confirm it loads:
- Chat: opens to a familiar chat interface, similar to Claude.ai. No file access — just conversation.
- Cowork: opens to a tasks view. There may be a brief onboarding flow the first time. The tab is asking you to give the agent a task it can work on independently.
- Code: opens to a project picker. The tab will ask you to select a folder on your computer for the agent to work in. You don't need to pick one yet — Module 3 walks you through this in detail.
- Smoke-test Cowork. Switch to the Cowork tab. Give it a tiny task: “Write me a one-paragraph note about what AI Architect Academy teaches.” It should respond with a short paragraph after a brief working pause. This confirms the Cowork tab is connected to the model and can produce output.
- Smoke-test Code. Switch to the Code tab. Click the folder picker and select your ~/ai-architect-academy/ course working folder (the one you set up in Lesson 1.5). Type: “List the files in this folder.” The agent should list the contents, including my-first-loop.md. This confirms the Code tab can read your local files.
If all three tabs load and both smoke tests succeed, your desktop app is set up correctly and ready for the rest of the course.
Safe default — What the desktop app sees.
- Code tab: only sees files in the folder you grant. Switch folders or revoke access from inside the app's settings any time.
- Cowork tab: doesn't directly access your local files unless you explicitly attach them; it does its work in a cloud environment.
- Chat tab: no file access. Pure conversation.
- What goes to Anthropic's servers: your prompts and any files you attach or grant access to. Review Anthropic's data policy at https://www.anthropic.com/legal — it covers what is stored, for how long, and for what purposes. Lesson 2.5 will turn this into a posture line in your workstation document.
Optional advanced path
The API path: account, key, cap, and the Claude Code CLI
Everything below is optional. It's for students who want direct API access for the custom-script and scheduled-task work in Modules 6 and 8, or for students who simply want the per-token habits early. If that's not you, skip to the activity at the end of Stage 2 (or move on to Lesson 2.5).
Optional advanced — Set up an Anthropic API key and store it safely RECIPE
| Tool | Anthropic Claude API via console.anthropic.com |
| Version tested | April 2026 console |
| Last verified | 2026-04-17 |
| Next review | 2026-07-17 |
| Supported OSes | macOS, Windows (Linux equivalents below) |
Before you begin
You already have an Anthropic account from Recipe 1 (the one you signed in to the desktop app with). The developer console is a separate billing relationship on that same account — per-token, capped — and is independent of your Pro subscription. Pro keeps working whether or not you set up an API key here. If you are under 18, do this together with a parent. The billing protocol mirrors Recipe 1:
- Account login: the student's. Use the same Anthropic account from Recipe 1.
- Payment method: the parent's. A credit or debit card the parent owns and is comfortable being billed monthly against. The parent stays the responsible adult for the bill, even though the student is the daily operator.
- Spend cap: agreed together. A number the parent is comfortable with as a worst-case month and the student is comfortable as a working ceiling. $5–10 is a reasonable starting cap; you can raise it later if real usage demands more.
- Practical setup: student signs in and reaches the billing screen, then hands the keyboard to the parent for the card entry. The parent sets the spend cap before stepping away. The student then continues with API-key generation in the next steps.
Steps
- Go to https://console.anthropic.com and sign in with your Anthropic account from Recipe 1. (If you don't have an account yet because you skipped Recipe 1, click “Sign up” and create one now — same email and password rules.)
- Inside the developer console, find the Billing section. Add a payment method (credit or debit card). (Under-18 students: parent at the keyboard for this step. The card stays with the parent; the student does not memorize the number.)
- Set your monthly spend limit. In Billing, set a hard cap — start with $5 or $10 for this course; you can raise it later if real usage demands more. This is the cap the provider enforces; once exceeded, API access stops until the next billing cycle or you raise it. (Under-18 students: agree on the number with the parent before setting it.)
- Bookmark the usage dashboard. Inside the console, find the Usage (or Cost & Usage) section — it shows current month-to-date spend, broken down by day and by model. Open it now and bookmark it in your browser as Anthropic Usage. Plan to check it once a week during the course (and any time a pipeline runs longer than expected). The bill at the end of the month is too late; the dashboard is how you catch a runaway in days, not weeks.
- Go to the API keys section. Click “Create key.” Give it a name like ai-architect-academy-course. Copy the key to your clipboard. The console will not show the full key again after you close this dialog — you have one shot. If you lose it, delete the key and create a new one.
- Open VS Code. With your course working folder open, click “New File” in the sidebar (or use File → New File). Name it exactly .env — the leading dot is intentional; that's a Unix convention for “config file.”
Heads up on Windows: Windows hides files starting with a dot by default. In the VS Code sidebar this is fine — it'll appear there. In File Explorer, enable View → Show → Hidden items if you want to see it outside VS Code.
- In the new file, write one line with your key pasted in:
ANTHROPIC_API_KEY=sk-ant-...(paste your full key here)Rules for .env files:
- One KEY=value pair per line.
- No spaces around the = sign.
- No quotes around the value.
- No blank lines between entries (some loaders are picky).
- Save the file. Close it.
- Verify the key works. Two ways to do this; pick one.
Option A — verify by using it later (recommended). The simplest verification is to wait until Module 6 or 8 actually uses the key in a real script. If the script can read the key and make a request, the key works. If it can't, come back here and re-check the .env file for stray spaces or quotes around the value. This is the path most students should take — no extra test to run now.
Option B — optional Python script test (click to expand). Belt-and-suspenders verification right now.
No Python knowledge needed — just paste and run. Python should already be installed from Lesson 2.2.
In your course working folder, create a new file called test_anthropic_key.py and paste:
import os from pathlib import Path # Load the key from .env env_path = Path(".env") for line in env_path.read_text().splitlines(): if line.strip() and not line.startswith("#") and "=" in line: key, value = line.split("=", 1) os.environ[key.strip()] = value.strip() # Make a test request import urllib.request import json req = urllib.request.Request( "https://api.anthropic.com/v1/messages", headers={ "x-api-key": os.environ["ANTHROPIC_API_KEY"], "anthropic-version": "2023-06-01", "content-type": "application/json", }, data=json.dumps({ "model": "claude-haiku-4-5-20251001", "max_tokens": 64, "messages": [{"role": "user", "content": "Say hello in one short sentence."}], }).encode("utf-8"), ) with urllib.request.urlopen(req) as response: result = json.loads(response.read()) print(result["content"][0]["text"])Run it from your terminal: python3 test_anthropic_key.py (Mac/Linux) or python test_anthropic_key.py (Windows).
You should see a one-sentence greeting print to the screen. If you see an authentication error, your key is wrong or not loaded; re-open the .env and confirm it has no stray spaces, no quotes, and the full key.
What does this script do? It reads your .env file, sends a one-sentence hello to the API, and prints what comes back. You will not write code like this directly very often; an agent (or a custom script in Module 6 or 8) does this for you. The point of running it now is to confirm your key works.
Safe default — Cost and privacy posture for Anthropic
- Cost: pay-as-you-go, measured in tokens. Haiku-class models run at fractions of a cent per short request; Sonnet-class runs roughly 5–10× more; Opus-class another few multiples. Set your console-level monthly cap before your first real request.
- Privacy: your prompts go to Anthropic's servers. Review Anthropic's data policy at https://www.anthropic.com/legal — it covers what is stored, for how long, and for what purposes. As a baseline assumption: do not send data to cloud that you would not be comfortable having stored briefly for abuse monitoring. Lesson 2.5 will turn this into a posture line in your workstation document.
Protect your .env
If you use git for any project — and Module 3 will introduce it in depth — create a file called .gitignore in the same folder and add one line: .env. This tells git to never track that file, so it can never end up on GitHub. Most editor templates already include .env in .gitignore by default. Confirm before you commit anything.
Optional reference — OpenAI follows the same pattern RECIPE
| Tool | OpenAI API via platform.openai.com |
| Last verified | 2026-04-17 |
| Next review | 2026-07-17 |
The OpenAI flow is functionally identical. platform.openai.com → Billing → API keys. The key is stored as OPENAI_API_KEY in the same .env file. This course does not assume OpenAI; it is listed here so you can see that the pattern is not vendor-specific.
If you set up an OpenAI key, your .env now has two lines:
ANTHROPIC_API_KEY=sk-ant-...
OPENAI_API_KEY=sk-...
Both follow the same four rules.
Optional advanced — Install the Claude Code CLI RECIPE
| Tool | Claude Code (CLI version) |
| Last verified | 2026-04-17 |
| Next review | 2026-07-17 |
| Supported OSes | macOS, Windows |
When you'd want the CLI
The Claude Code engine is already inside your desktop app's Code tab — same model, same agent, no separate install. The CLI version is for students who would rather work inside a terminal than a GUI: power users, students comfortable with the command line, or anyone who wants to script Claude Code into a larger automation flow. Most students will never need this. If you're not sure whether you want it, skip this recipe and stay with the desktop Code tab.
Steps
- Confirm Node.js is installed. Claude Code requires Node.js (a runtime that runs many command-line tools, including this one). In your terminal, run node --version. If you see a version number ≥ 18, skip to step 2.
If the command is not found, install Node from https://nodejs.org/en/download. Choose the LTS version — that stands for “Long-Term Support,” meaning it's the stable, maintenance-friendly release rather than the bleeding-edge one. Run the installer with default settings. After installing, close and re-open your terminal, then run node --version again to confirm.
- Install Claude Code via npm. In your terminal, run:
npm install -g @anthropic-ai/claude-codeWhat this command does: npm is Node's package installer. -g means “globally” — install the claude command so you can run it from any folder, not just the current one. @anthropic-ai/claude-code is the package's name. The whole command says: install Anthropic's Claude Code package globally.
- In your terminal, cd into your course working folder.
- Start Claude Code: type claude and press Enter.
- On first launch, Claude Code will prompt you to choose an authentication method:
- Subscription auth (recommended for most students): sign in with the Anthropic account from Recipe 1 through the browser window Claude Code opens. Your usage counts against the Pro subscription's shared limits, same as the desktop Code tab.
- API key auth: paste the Anthropic API key from the optional advanced section earlier in this lesson when prompted. You'll be billed per token against the cap you set on your developer console.
Both work. Subscription auth is the default for almost everyone. You can switch later by running claude /logout and signing back in.
- Back in the terminal, Claude Code is now waiting for a prompt. Type: “List the files in this folder.” It should reply with the file listing.
- Test a tiny directed edit: “Add a one-line comment at the top of my-first-loop.md that says 'Last updated via Claude Code on [today's date]'. Show me the diff first.” Confirm and apply.
Safe default — Claude Code permissions. Claude Code is a terminal agent — it can run shell commands in the directory you launch it from. It asks before doing destructive things. Read those prompts. Never run it as root/administrator (Mac/Linux) or as Administrator (Windows).
Troubleshooting
Before you debug by yourself, surface the error to an AI. If any step above fails, copy the full error output and paste it into Claude.ai (or whichever chat AI you're using). Ask "What does this mean and how do I fix it on [your OS]?" The most common errors below already have known fixes; everything else is faster to diagnose by asking than by guessing.
- claude: command not found after npm install -g. Most common: your terminal's PATH wasn't refreshed after Node was installed. Close the terminal completely and open a new one. If still not found on Mac/Linux, run npm config get prefix — the path printed should be on your $PATH. On Windows, this usually fixes itself on terminal restart.
- Authentication browser window doesn't open. Look in the terminal for a URL — Claude Code prints one as a fallback. Open it manually in any browser.
- “Node not found” after install. Restart your computer, not just your terminal. Some OS PATH updates need a full reboot to take effect.
Try it CORE
First task in the Cowork tab and the Code tab
What you do. With the desktop app open, give each of the two work tabs a small, contained task on your my-first-loop.md file from Lesson 1.5. Same task for both, so the comparison is fair.
The task. Pick something small: “Read my-first-loop.md and write me a one-paragraph summary of what it says.” Or, if you'd rather make a real edit: “In my-first-loop.md, add a 'Last reviewed' date line at the bottom with today's date.”
- In the Cowork tab. Switch to Cowork. Attach my-first-loop.md to the task (or paste its contents in). Give the task as one prompt and let Cowork do its thing.
- In the Code tab. Switch to Code. Connect to your ~/ai-architect-academy/ folder if you haven't already. Give the same task. Watch how Code proposes the change and asks you to approve before it lands.
For each tab, capture:
- How the agent showed you what it was doing (a finished result vs. a per-edit review).
- Whether the result matched what you asked for on the first try.
- One thing you noticed about the experience that surprised you.
Done with the hands-on?
When the recipe steps and the activity above are complete, mark this stage to unlock the assessment, reflection, and project checkpoint.
Quick check CORE
Five questions. Q1–Q3 cover the primary lesson; Q4–Q5 cover the optional advanced API path. If you skipped the advanced section, skip the last two questions and come back to them when you do.
Show explanation
Answer: B. Chat for conversations that don't touch files, Cowork for autonomous tasks the agent runs in the background, and Code for interactive directed edits to your local files with real-time diff review. One subscription, three tabs. A, C, D are made up.
Show explanation
Answer: C. The Code tab is built for exactly this shape of work: direct an agent on a folder of files, review each change, accept or reject. Module 3 is the module where you'll do the most of this. A is wrong because Chat doesn't read files. B works for autonomous tasks but doesn't give you the per-edit review the question describes. D is overkill — the Code tab and the CLI are the same engine; the tab is the simpler entry point.
Show explanation
Answer: B. Cowork is the autonomous-tasks tab. You hand it a research task, it works on it in a cloud environment, and you can come back to a finished result. This is exactly the shape of work most of Modules 4–8 use. A works for a quick question but not for a multi-step task you'd come back to. C is the wrong fit — Code is for editing specific files, not for autonomous research. D is the optional advanced path; you don't need it here.
Show explanation
Answer: B. .env + .gitignore keeps the key off of source control and out of your code file. Password managers and OS keychains are equally valid or better. A will be committed to git and scraped within minutes. C turns the key into a hostage — the channel owner or anyone who screenshots has it. D survives until someone with access to your screen sees it.
Show explanation
Answer: B. Rule 4: rotate when in doubt. Six minutes is forever on the scraping timeline — assume the key is compromised. Delete it in the provider's console; that revokes it globally, regardless of what lives in git history. Then, optionally, clean git history. A misses the point — the key is already out, and “rewrite git history” alone doesn't revoke the leaked key. C is how people lose hundreds of dollars. D protects GitHub, not your AI bill.
Reflection prompt
Cowork tab or Code tab first?
In 5–7 sentences: Compare the experience of the Cowork tab and the Code tab on the activity task. Which one felt more like “directing” and which felt more like “asking”? What did you notice about how each tab showed you what it was doing — finished result vs. per-edit review? Looking ahead at the course outline, can you predict which tab you'll spend more time in across Modules 4–10, and why?
Project checkpoint
Record your workstation in your loop file.
Open my-first-loop.md. Below your existing notes, add:
Claude desktop app: installed, signed in with Anthropic Pro
All three tabs verified: Chat, Cowork, Code — [yes / not yet]
Default tab for autonomous work: Cowork. (Most of the course.)
Default tab for directed file edits: Code. (Module 3 lives here.)
Optional advanced — API key set up: [yes / not yet / skipped]. If yes: key storage = .env in ___ folder, monthly cap = $___.
Save the file. If you are cloud-only this course (no local model from 2.3), that is a defensible posture for a privacy-flexible student — mark it explicitly so you can revisit.
Next in Module 2
Lesson 2.5 — Safe defaults: cost, privacy, and a posture you'll actually keep.
Write the posture you'll carry forward through the rest of the course. A four-line cost posture, a four-line privacy posture, the four-part new-tool checklist, and a frozen v1 of the workstation posture saved into your capstone folder.