npm install -g @anthropic-ai/claude-code in any terminal (needs Node.js 18+), then verify with claude --version. Native installers that don't need Node exist too — see the official docs at code.claude.com/docs.Guide
One npm command, one login — and you're talking to an agent inside your own project. A one-time setup of about twenty minutes.
No Node? Native installers also exist that don't need Node at all — see the official install page at code.claude.com/docs for your operating system.
One command, run once, from any folder:
Install Claude Code
$ npm install -g @anthropic-ai/claude-code Ctrl+` (the backtick key, above Tab) to open the built-in terminalThe -g flag installs it machine-wide, so the claude command works in every project — not just this one.
Verify the install
$ claude --version A version number means you're ready. If the command isn't found, close and reopen the terminal first.
This is the rule beginners trip over most: always start Claude Code from the project folder. The agent reads and edits the files where it's launched — start it in the wrong place and it's working on the wrong world.
Start a session
$ cd path/to/your/project
$ claude Ctrl+`) — it already starts in that folderclaude and press EnterOpening the project folder in VS Code first means the terminal is always in the right place — one less thing to think about.
The first launch asks you to log in (the /login command). Sign in with your
Claude account — a Pro or Max subscription — or paste an API key. It's remembered, so future
sessions go straight in.
There's no syntax to learn. Type plain English and press Enter. Two kinds of input exist:
anything starting with / is a command to the tool itself (like
/login), and everything else is a message to Claude. For your very first
message, ask a question instead of assigning a task — you'll watch how the agent explores
your project, with zero risk to your files:
Look around this project and tell me, in beginner terms: 1. What is this project and what does it do? 2. How is it organized — what are the main folders and files? 3. What commands do I use to run it locally? Don't change any files yet — just explain.
Claude will read your files and report back. That little briefing — your own project explained to you — is the moment most people get what an agent is.
Up next: plug Claude Code into VS Code properly — live diffs of every change — and set the two safety guardrails every beginner should have before an AI touches their repo.
FAQ
npm install -g @anthropic-ai/claude-code in any terminal (needs Node.js 18+), then verify with claude --version. Native installers that don't need Node exist too — see the official docs at code.claude.com/docs./login command): sign in with your Claude account — Pro or Max subscription — or paste an API key. It's remembered for future sessions.