Install Claude CLI
Install
Section titled “Install”Claude CLI is distributed as an npm package. Run this in your terminal:
npm install -g @anthropic-ai/claude-codeThis installs the claude command globally.
Authenticate
Section titled “Authenticate”claudeOn first run, Claude CLI opens your browser and prompts you to sign in with your Claude account. Complete the sign-in flow, then return to the terminal.
Verify the install
Section titled “Verify the install”claude --versionYou should see a version number printed. If you get “command not found”, check that your npm global bin directory is in your PATH.
Open Claude in VS Code
Section titled “Open Claude in VS Code”- Open your project folder in VS Code:
File → Open Folder - Open the integrated terminal:
Ctrl+`(backtick) - Type
claudeand press Enter
Claude opens in your terminal, scoped to your project directory. It can read files, run commands, and help you build.