From zero to agentic.
Get Claude Code installed, configured, and running your first AI-powered coding session — step by step.
Terminal setup
The terminal is a text window where you type commands to control your computer — like a chat with your OS. Claude Code lives here. Pick your OS to get one:
- Mac or Linux — you already have a terminal. Open Terminal or iTerm2 and you're ready.
- Windows — install Git Bash — a Unix-compatible shell Claude Code expects. Watch: Installing Git Bash on Windows 10!
Install Node.js
Node.js is a behind-the-scenes engine that tools like Claude Code run on. You don't need to know JavaScript — just have it installed.
Check if you already have a compatible version:
# Need version 18 or higher $ node --version v20.11.0
No Node.js or version too old? Download the LTS release from nodejs.org — it's a standard installer, takes about a minute.
Install Claude Code
Run the one-line installer:
$ curl -fsSL https://claude.ai/install.sh | bash
Once installed, type claude --version to confirm it worked. See the official install docs for full details.
Log in to your account
Claude Code requires an account. Start your first session and log in when prompted:
$ claude # You'll be prompted to log in on first use > /login # Follow the prompts to log in with your account
You can log in with any of these account types:
- Claude Pro, Max, Team, or Enterprise — log in with your browser. No extra setup needed.
Once you see the > prompt, you're in. Continue to step 5 — your session is already open.
Your first task
You're already in a Claude Code session from the previous step. Try this prompt:
Create a simple Python script that asks for my name
and prints a personalized greeting. Then run it.
- Claude asks permission before writing or changing any file
- It shows you every file edit before applying it
- You approve, reject, or redirect at any step
- You stay in control — Claude does the typing