Setting Up Claude Code

For students in the US and other supported countries. Oct 29, 2026.

Claude Code is an AI assistant that works inside a folder on your computer: it reads your files, writes code, and runs commands when you approve them. Course staff support Claude Code only, so these are the only setup instructions we give.

Who these instructions are for

These steps are for students in the US, or in another of Anthropic's supported countries and regions. Claude Code lists location as a system requirement, and Hong Kong was not on that list on Oct 29, 2026.

Please do not use a VPN or overseas billing details to get around this. It breaks Anthropic's terms, and Hong Kong accounts used this way have been suspended since October 2026, including paid ones. If you are in Hong Kong, let Chris know before you pay for anything.

What you need
  1. To be in the US or another supported country (left).
  2. A Claude Pro plan (US$20 a month) or higher. The free plan does not include Claude Code.
  3. A Mac, Windows or Linux computer.

Install

Choose one of the two ways. Both use the same Claude account.

No terminal: the desktop app

  1. Download Claude and sign in.
  2. Open the Code tab.
  3. Choose your project folder.

Walkthrough: desktop quickstart.

Terminal: one line

Mac, Linux
curl -fsSL https://claude.ai/install.sh | bash
Windows PowerShell (prompt starts with PS)
irm https://claude.ai/install.ps1 | iex
Windows CMD
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd

Then open a new terminal and run claude. Sign in when the browser opens.

Your first session

Start with one file you can open in a browser. Add a server only when you need one.

  1. Make an empty folder and open it in Claude (in a terminal: cd into the folder, then run claude).
  2. Ask:
    Create index.html: a 3-question quiz with a button that shows the score. Tell me how to open it.
  3. Double-click index.html to open it in your browser.
  4. Didn't like the change? Press Esc twice to rewind to an earlier point.

If it does not work

command not found: claudeOpen a new terminal. The installer updates your PATH, and only new terminals see it.
The token '&&' is not a valid statement separatorYou are in PowerShell. Use the PowerShell line (irm …).
'irm' is not recognizedYou are in CMD. Use the CMD line.
The login keeps loopingRun /logout, then check that your plan includes Claude Code (Pro or higher).
Anything elseRun claude doctor and read its suggested fixes, or see Troubleshoot installation.

Saying what the AI did

When Claude writes part of your project, say so in your contribution lines, for example: “An AI assistant drafted the quiz page; we tested and rewrote it.” ACM requires this disclosure and does not allow AI tools to be authors. See Co-authors.

Sources: Claude Code setup; Anthropic supported countries; Anthropic consumer terms; South China Morning Post, Oct 2026.