How to Install Claude Code: A Visual Setup Guide for Builders
Learn how to install claude code on macOS, Linux, Windows, and WSL, verify the CLI, connect VS Code, and choose a visual workflow.
On this page
- Choose the right Claude Code setup path for your machine
- How to install Claude Code with a visual, OS-specific walkthrough
- Make the claude command available and verify the installation
- Connect Claude Code to Visual Studio Code without confusing the layers
- Authenticate, choose a model, and keep project access intentional
- Install Claude Code plugins with a controlled project workflow
- Where the local CLI ends and October begins
- Key Takeaways
- Frequently Asked Questions
Claude Code installs through an official native installer or a package manager, then runs as the claude command in a terminal. To learn how to install claude code correctly, choose the environment that owns the repository first, then verify the CLI before adding VS Code, JetBrains, or other integrations.
Choose the right Claude Code setup path for your machine
The wrong default is to copy the first command you find without checking where the project actually runs. Claude Code, Claude Desktop, and editor integrations serve different layers of the workflow, so installing one does not automatically install the others.
Choose the path that matches the repository:
- macOS or Linux: use the native installer, or Homebrew on macOS.
- Windows: use PowerShell, Command Prompt, or WinGet. Git for Windows is recommended when Bash-based tooling is important.
- WSL: install Claude Code inside the Linux environment where the repository and shell commands run.
- Editor-first work: install the standalone CLI first, then add the VS Code or JetBrains integration.
This guide uses checkpoints instead of treating a completed command as proof that the setup works. Capture the installer result, the version response, the diagnostic output, and the repository check. Those receipts show whether the shell, editor, and repository are using the same environment.
Teams comparing terminal agents with broader workflows can also use this framework for evaluating agentic coding tools, especially when command control and orchestration start pulling in different directions.
How to install Claude Code with a visual, OS-specific walkthrough
Use one installation method for the environment that owns the project. These commands come from Anthropic’s official Claude Code installation documentation.
-
macOS or Linux native installer
curl -fsSL https://claude.ai/install.sh | bash[Screenshot placeholder: terminal showing the installer command, permission prompt, and completion message.]
-
macOS with Homebrew
brew install --cask claude-codeHomebrew also documents the Claude Code cask and its install command. Update this installation through Homebrew when needed.
-
Windows PowerShell
irm https://claude.ai/install.ps1 | iex -
Windows WinGet
winget install Anthropic.ClaudeCodeUpdate a WinGet installation with:
winget upgrade Anthropic.ClaudeCode -
Windows Command Prompt
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd[Screen-recording placeholder: downloading the installer, accepting permissions, and confirming the first version response.]
For WSL, open the Linux distribution and use the macOS or Linux native installer there. A successful Claude Code installation produces the claude terminal command. It does not mean Claude Desktop or a VS Code extension has been installed.
Make the claude command available and verify the installation
A completed installer can still produce command not found when the current terminal has an old PATH. PATH is the list of folders a shell searches for executable commands. Installers can update shell initialization files, but an already-open terminal may not reload them.
Open a new terminal and run:
claude --version
claude doctor
Anthropic documents claude --version for version verification and claude doctor for environment checks in the Claude Code setup guide.
Then test the repository without asking Claude Code to edit files:
cd /path/to/project
claude
Ask it to identify the repository root and list the top-level files. A good check produces a repository-specific response. A weak check only confirms that an editor panel opens.
If the command fails, work through the branches in order:
- Close and reopen the terminal.
- Check that the installation directory is in
PATH. - Confirm the CLI was installed inside the same environment as the repository.
- Re-run the diagnostic command and address reported permissions or dependencies.
- On native Windows, confirm whether the workflow expects Bash or PowerShell.
For a concrete installation contrast, the good path is claude --version, followed by claude doctor and a read-only repository check. The bad path is assuming the VS Code extension provides a system-wide claude command.
The Claude Code extension workflow covers the editor layer separately from this standalone CLI verification.
Connect Claude Code to Visual Studio Code without confusing the layers
Visual Studio Code and Claude Code are separate installations. On Windows, Microsoft recommends the VS Code user installer, which adds code to PATH after the terminal is restarted. Follow Microsoft’s Visual Studio Code Windows installation instructions for that setup.
Claude Code’s VS Code extension can be installed from the Extensions view or with:
code --install-extension anthropic.claude-code
The official Claude Code VS Code documentation explains that the extension bundles a private CLI for its panel. To run claude in the integrated terminal, install the standalone CLI as well.
[Visual map placeholder: repository connected to the terminal, Claude Code CLI, VS Code editor, and optional extension layer.]
Use this decision rule:
| Workflow | Evaluate | Choose it when |
|---|---|---|
| Terminal-first | Shell commands, scripts, reproducibility | Command control is the main requirement |
| Editor-integrated | Diffs, file navigation, inline context | The work depends on continuous editor context |
| Browser-assisted | Web pages, visual references, research steps | The task depends on information outside the repository |
| Visual orchestration | Handoffs, multiple runtimes, project state | Several agents or repositories need inspection together |
The visual workflow for building with multiple agents explains why project navigation and agent coordination become separate design problems as a workflow grows.
Authenticate, choose a model, and keep project access intentional
Claude Code prompts for authentication when it first runs. A subscription login and API authentication follow different usage paths. If ANTHROPIC_API_KEY is present, Claude Code uses that key instead of subscription login, which can route usage through API charges according to the Claude Help Center authentication guidance.
Before a substantial session, confirm which account and credential path the terminal is using. On a personal machine, inspect shell variables and local credential storage. On a shared team machine, document the approved account, repository permissions, and environment variables before granting project access.
To change the model inside a session, run:
/model
A default can be set with ANTHROPIC_DEFAULT_MODEL or settings.json, and a session can launch with:
claude --model <alias-or-name>
The Claude Code model configuration documentation describes aliases including Sonnet, Opus, and Fable. Confirm the active model with /model before starting a large refactor.
| Work type | Starting choice | Check before proceeding |
|---|---|---|
| Quick edits | A faster supported alias | The change is narrow and reversible |
| General coding | Sonnet or Opus | The model can access the required files |
| Large refactors | Opus or Fable | The plan is reviewable before edits begin |
For account distinctions and subscription questions, see the Claude Code subscription guide.
Install Claude Code plugins with a controlled project workflow
A plugin should solve a clearly identified gap. Before installing one, write down the missing capability, inspect the publisher and source, review requested permissions, check supported IDEs, and decide whether the plugin belongs at the user, workspace, or project level.
For JetBrains IDEs, install the Claude Code plugin from the JetBrains Marketplace, then restart the IDE. The plugin requires the standalone Claude Code CLI. If claude is not on PATH, the JetBrains integration documentation says to configure the executable’s full path in plugin settings.
Validate the plugin in a non-sensitive repository:
- Ask it to inspect one file.
- Confirm the proposed change before allowing writes.
- Test command execution separately from file edits.
- Check whether external services request additional permission.
- Record the plugin version and installation scope.
The failure mode is unclear ownership. If a plugin creates unexpected prompts, conflicts with another integration, or makes generated changes difficult to attribute, disable it or isolate it from the main project. The AI programming tools lifecycle playbook gives teams a broader method for reviewing tools that become part of a repeatable process.
Where the local CLI ends and October begins
Claude Code is enough when one agent can work inside one repository, follow a defined task, and return changes for review. The handoff point appears when work spans multiple agents, repositories, machines, or approval stages and the operator needs to inspect those relationships while they run.
October gives solo founders and small development teams a visual, spatial workspace for coordinating that kind of work. The useful comparison is based on decision criteria rather than unsupported product labels:
| Option | Criteria to evaluate | Pick it when |
|---|---|---|
| Cursor | Editor experience and inline context | The main bottleneck is writing and reviewing code in one editor |
| Claude Code | Terminal control and repository access | One local coding task needs shell-level control |
| AO Agents | Agent coordination and handoff visibility | Collaboration between agents is the deciding requirement |
| Langflow | Visual workflow construction and component mapping | The work is easier to reason about as connected steps |
| Superset | Operational visibility across moving parts | Monitoring and coordination matter more than inline editing |
| October | Visual orchestration and runtime inspection | Multiple agents and handoffs need a shared spatial view |
Consider a backend migration. Claude Code can inspect the server repository, make the change, run tests, and report the result. When a separate frontend repository must consume that output, another agent must review it, and the operator needs to see the handoff state, October becomes relevant because the workflow itself has become the thing that needs inspection.
That is the distinction explored in the best AI coding tools for solo founders and small teams. The right choice depends on whether the bottleneck is code production or coordination around code.
View this post on Instagram
Key Takeaways
- Choose the environment that owns the repository before selecting an installer.
- Verify the CLI with
claude --version,claude doctor, and a read-only repository check. - Treat VS Code and JetBrains integrations as separate layers from the standalone command.
- Confirm the credential path and active model before a substantial coding session.
- Move to visual orchestration when multiple agents, repositories, or handoffs become difficult to inspect.
Once the local CLI works, the next decision is whether a single terminal still matches the shape of the work. Builders who need to inspect relationships between agents and coordinate handoffs across repositories can take that next step with October. Get Started
Frequently Asked Questions
How do I download Visual Studio Code?
Use Microsoft’s official Visual Studio Code Windows setup guide or the matching installer documentation for the operating system in use. On Windows, the user installer adds code to PATH after the terminal is restarted.
How to set a claude code model?
Run /model inside an active Claude Code session to change the model. To set a default for new sessions, use ANTHROPIC_DEFAULT_MODEL or settings.json, then confirm the active model before a large task with /model or the applicable status command. The model configuration documentation lists the supported configuration methods.
How do I install claude Pro?
Claude Pro access and Claude Code installation are separate steps. Authenticate Claude Code with the relevant Claude account when prompted, and check whether ANTHROPIC_API_KEY is set because that variable takes precedence over subscription login according to the Claude Help Center.
How to install a claude code plugin?
Install the standalone Claude Code CLI first, then install a supported IDE plugin from its marketplace. For JetBrains, use the Claude Code Marketplace listing, restart the IDE, and confirm that the plugin can find claude on PATH or through its configured full path.