Skip to content
Houtini.

Claude Code System Requirements: What You Need

Wondering whether your computer can run Claude Code? I'll go through what it needs, then get it installed and signed in.

Richard Baxter Richard Baxter AI Ops & Marketing Engineer
Published Updated 13 min read
On this page
  1. What Claude Code is (and what it is not)
  2. The Desktop route: Claude Code with a window
  3. Official requirements (Anthropic's published spec)
  4. What you need
  5. Install path on each OS
  6. Authentication: claude auth login
  7. claude doctor, the diagnostic tool
  8. Where setup falls over
  9. A practical first-ten-minutes checklist after install
  10. Looking for something else?
  11. Running Claude Code with a local LLM (and cutting the bill)
  12. Where to go from here
A minimal architecture diagram showing the Claude Code CLI on a developer machine connecting over HTTPS to the Anthropic API in the cloud, with the local GPU clearly marked as idle

The Claude Code system requirements are light, because the model runs on Anthropic's servers and not on your machine. There is no graphics card to buy. It runs on Mac, Windows and Linux, and your computer's job is to host the tool and run what it starts for you, such as your tests, a dev server or a browser, which is where the memory goes.

Anthropic's published minimum for memory is accurate, but it's lower than I'd want.

Claude Code is my daily driver. The thing to plan for is the way you work, more than the machine. I spec something out first and spend quite a lot of time talking in planning mode before anything runs.

Installing Claude Code takes a single command on each system, and a built-in check tells you what's wrong when the setup doesn't go cleanly.

Claude Code v2.1.187 launching in Windows Terminal - the banner shows Opus 4.8 (1M context) on a Claude Max plan, a note that Fable 5 is now standard on Max, and a prompt asking whether to try the new fullscreen renderer.

What Claude Code is (and what it is not)

At its core Claude Code is a command-line interface (CLI - a tool you run in a terminal) that wraps the Anthropic API and adds an agentic loop on top. You run claude in a project directory. Claude reads your files, plans a change, executes it, runs tests, and iterates. By default the model runs on Anthropic's servers. Your machine's job is to host the CLI process, run the dev tools Claude calls, and stream tokens back and forth.

Three things Claude Code is NOT:

  1. Not the Desktop app's chat. Claude Code runs directly in the Claude Desktop app, in the Code tab. The chat you'll find in the same app isn't Claude Code.
  2. Not the editor's own AI. Cursor, Windsurf and VS Code each have a built-in assistant, and Claude Code is separate from all of them. Anthropic's Claude Code extension for VS Code is Claude Code itself, surfaced inside the editor - a third form alongside the terminal and the Desktop Code tab.
  3. Not a local LLM. Claude Code does not run a model on your hardware. There is no GPU requirement. You do not need a 3090 or a 4090. If you have seen otherwise, that article was probably thinking of a local-LLM runner like Ollama or LM Studio - different category of tool entirely.

The Desktop route: Claude Code with a window

This is how I use it most days. The Desktop app's Code tab runs Claude Code with a sidebar of sessions, a drag-and-drop layout with a terminal and a file editor, a diff view, a live preview of your app and pull-request monitoring. What makes it easier than the CLI for me is the switching: threads and repos sit in the sidebar and you move between them with a click.

The Code tab in Claude Desktop on my machine: a session on one of my repositories showing tool calls to brave-search, firecrawl and supadata, a +57/-1 diff on main with a Commit changes button, and Opus 4.8 at High effort in the composer

The requirements are the Desktop app's, not the CLI's: macOS (a universal build for Intel and Apple Silicon), Windows x64 or ARM64, or the Linux beta on Ubuntu 22.04 or Debian 12 and newer (apt or a .deb; Fedora and RHEL are CLI-only for now).

A session can run in four places: Local, on your machine with direct access to your files; Cloud, on Anthropic's infrastructure so it carries on after you close the app; SSH, on a server or dev container of yours; or WSL on Windows, with tools and git executing on the Linux side. The permission mode sits in the row under the prompt box - Auto, where a classifier blocks the risky actions instead of asking you; Manual, where every change waits for your approval; Accept edits; and Plan, which proposes an approach without editing your code. Plan is where I spend a surprising amount of my time.

Official requirements (Anthropic's published spec)

From Anthropic's setup docs as of November 2026:

OSMinimumShell
macOS13.0 Ventura or newerBash, Zsh
Windows10 1809+, Windows 11, or Windows Server 2019+ (x64 and arm64)PowerShell, CMD, WSL
LinuxUbuntu 20.04+, Debian 10+, Alpine 3.19+ (RHEL and Fedora via the dnf repo)Bash, Zsh
ResourceMinimumIn practice
RAM4GB8GB for small projects, 16GB for serious work, 32GB for monorepos and parallel sub-agents
DiskNo published figure216 to 304MB per version on my machine, three versions kept (752MB)
NetworkAn internet connectionAlways on: the model runs on Anthropic's servers
Node.jsRequired only for the npm install pathNode 22+ (the npm package downloads a native binary, so an older Node only triggers a warning)

After install, claude --version prints a version number, something like this:

2.1.232 (Claude Code)

The native installers (the curl-piped install script on Mac and Linux, the PowerShell irm command on Windows) bundle the runtime. The npm fallback (npm install -g @anthropic-ai/claude-code) needs Node.js pre-installed.

The native installer is the recommended route, and it updates itself in the background. Homebrew is a first-class option, with brew install --cask claude-code (or the claude-code@latest cask if you want every release the day it ships), and Windows gets winget install Anthropic.ClaudeCode. Neither updates itself unless you set CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE=1, and the signed apt, dnf and apk repos update through your normal system upgrades.

What you need

Anthropic's 4GB RAM minimum is technically true and operationally misleading. Claude Code's own footprint is small. The CLI process holds your conversation context in memory and streams tokens to and from the API. Memory pressure comes from what Claude Code does on your behalf.

Claude Code orchestrates sub-agents that spawn parallel processes against your codebase. It runs your test suite, boots a dev server, launches a Docker container for an integration test, and opens a browser for the end-to-end checks. By the time a five-step agentic plan is mid-execution you have the CLI plus several spawned processes plus your existing editor session plus the dev tools competing for RAM.

A realistic picture:

  • 8GB RAM runs Claude Code fine for small projects (a Next.js app, a CLI tool, a small Go service) when Claude is doing one thing at a time.
  • 16GB RAM is the floor for serious development.
  • 32GB RAM is what I'd recommend if you run Claude Code against a large monorepo or with multiple sub-agents working in parallel work-trees.

A Reddit r/ClaudeCode thread titles itself "Why does running Claude Code often use 20-40GB of RAM?" - the poster came back in the comments to say it looked like their own custom hook (a macOS sound every time Claude finished a task) leaking memory, not Claude Code itself. The CLI process at idle holds your conversation context in memory and otherwise stays modest. If you see 20GB+ in Task Manager, look at your hooks before you blame the CLI.

The thing that has bogged my own Windows machine down has not been Claude Code either. It is the node.exe processes MCP servers leave behind: neither Claude Code nor the Desktop app is particularly good at killing them once it is finished, and after a long day with a big MCP library and several threads open I have found ten or twenty of them sitting in Task Manager. If the machine feels slow at five o'clock, that's where I'd look.

  • GPU: not needed. There is no local inference. Your dGPU sits at idle while Claude Code runs unless your dev tools (Docker GPU passthrough, ML training jobs, browser-based 3D testing) happen to use it. The "do I need a 3090" question confuses Claude Code with local-LLM hosting; they are different problems.
  • Disk: Anthropic publishes no figure, so here is mine: three versions of Claude Code sit on my machine at 216 to 304MB each, 752MB in all, while the .claude folder in my home directory has grown to 12.5GB - that, not the binary, is the disk story.
  • CPU: any x64 or ARM64 processor, per Anthropic's setup docs. The load comes in bursts, when sub-agents spawn.

What you need that isn't hardware

Boris Cherny, who built Claude Code, published a ladder of AI adoption in July, and it is now what I reach for when a client asks what machine they need. At his step 1 - one engineer and one agent, a fast pair programmer - the bottleneck is not the laptop, it is your attention: you read every change because you don't yet trust the loop. At step 2, five to ten agents each on its own worktree, the bottleneck becomes reviewing what they produced. Nowhere on that ladder does RAM appear. What moves you up it is a self-verification loop you trust (tests, build, lint, an end-to-end check in a real environment), auto mode so permission prompts stop blocking you, and automated code review.

So what I would tell a client is the way of working, and mine is unglamorous. I spec the thing first and spend a lot of time talking in plan mode before anything executes. I lean on a second opinion - Gemini, through my own Gemini MCP, going back and forth on the spec and the architecture before we begin. I give Claude Context7 for the docs, so it can drive an API or a CLI within minutes of being handed a key. And I evaluate rather than assume. Anthropic's own material covers the rest, and Karpathy's guidance on prompt structure and repo architecture is the other thing I would hand over.

Install path on each OS

macOS

The native installer is now the canonical route:

curl -fsSL https://claude.ai/install.sh | bash
claude --version

The install command shows no progress while it downloads. When it finishes, open a new terminal window and run claude --version.

The script installs a native binary and needs no Node.js. Prefer Homebrew? brew install --cask claude-code is a first-class route - it just doesn't auto-update, so brew upgrade claude-code becomes your job.

After install, run claude from any project directory. The first run prompts for authentication. See the next section.

Windows

Two valid routes depending on your terminal:

For native Windows, from PowerShell (the built-in Windows PowerShell is fine):

irm https://claude.ai/install.ps1 | iex
claude --version

For WSL2 / Ubuntu under Windows, run the Mac/Linux curl command above inside the WSL terminal instead.

Pick the one matching your existing dev shell - with one exception: if sandboxed command execution matters to you, it's supported under WSL2 and not on native Windows.

Three Windows notes from the current docs:

  • The installer itself doesn't need admin rights.
  • There's a CMD install route too (see the setup docs) if PowerShell isn't your home.
  • Git for Windows is the one extra I'd install, because with it Claude Code gets a proper Bash tool - without it, shell commands fall back to PowerShell.

Linux

curl -fsSL https://claude.ai/install.sh | bash
claude --version

Anthropic lists Ubuntu 20.04+, Debian 10+ and Alpine 3.19+, with Fedora and RHEL served by the dnf repository. The native installer doesn't need Node.

If you need the npm route, put Node 22 or newer in place first, then:

npm install -g @anthropic-ai/claude-code@latest

ripgrep (the fast codebase search Claude Code leans on) is usually included with Claude Code - you only need your distro's package if search misbehaves. There are also signed apt, dnf and apk repositories if you'd rather your package manager own the whole install - the setup docs carry the key-verification steps. And if you'd rather skip the terminal entirely, the Claude Desktop Linux beta bundles Claude Code on Ubuntu 22.04 and Debian 12 or newer (the Desktop route above) - covered in the Desktop guide.

Authentication: claude auth login

After install, the first claude invocation triggers OAuth. Claude Code opens a browser, logs you into your Claude account (or your Anthropic Console account, if you take the API-key route), and stores a token at ~/.claude/.credentials.json - and on macOS it prefers your Keychain, falling back to the file only where the Keychain refuses the write.

claude auth login

Anthropic's authentication docs carry the canonical step-by-step.

Subscription or API key?

Either works. Claude Code is included on the Pro, Max, Ultra, Team and Enterprise plans, and it isn't on Free. The other route is an API key from the Claude Console, which gives you direct access to the Anthropic API.

On a personal project budget, I'd take the subscription. Inside an organisation that tracks cost per project I'd go with the API key, which gives you a cleaner bill.

To use an API key, export ANTHROPIC_API_KEY; in non-interactive runs (claude -p) the key is always used when it's set.

claude doctor, the diagnostic tool

Claude Code can flag a setup problem on its launch screen. Mine pointed me at the full diagnostic.

A live Claude Code session in Windows Terminal. Version banner shows Claude Code v2.1.167 with Opus 4.8 (1M context) Claude Max. The status line below reads '1 setup issue: MCP · /doctor' prompting the user to run the diagnostic. The welcome prompt 'Try write a test for filepath' appears below the banner ready for input.

The 1 setup issue: MCP · /doctor line tells you something is wrong, and claude doctor tells you what.

claude doctor

/doctor runs a checkup inside your session and asks before it fixes anything. claude doctor in your shell prints read-only install diagnostics without starting a session.

Live output of the /doctor diagnostic inside a running Claude Code session showing the auto-updater check, Node.js version, ripgrep presence, network reachability to api.anthropic.com, authentication state, config integrity, and MCP server health

Where setup falls over

PATH not set after install

The native installer puts claude in ~/.local/bin but doesn't change PATH itself. If that folder is missing from PATH, it says so and prints the fix. Add the line it gives you, then open a fresh terminal or run source ~/.zshrc (or your equivalent). A "command not found" error straight after a successful install is usually this.

Node version too old when using the npm fallback

The npm package now wants Node 22 or newer. On an older Node the install prints an EBADENGINE warning and usually still runs - the package downloads a native binary that doesn't use your Node at runtime - but save yourself the ambiguity: use the native installer, or put a current Node in place via NodeSource or nvm first. And when you upgrade later, use npm install -g @anthropic-ai/claude-code@latest rather than npm update -g, which can leave you pinned to the old release.

Authentication state lost between sessions

Claude Code stores its OAuth token at ~/.claude/.credentials.json (or the macOS Keychain). If you run Claude Code as a different user (sudo, a CI runner, a different shell profile) the token is not there. Claude Code starts without your login. Run claude auth login as the user who will run the CLI.

A practical first-ten-minutes checklist after install

Claude Code v2.1.187 in its fullscreen flicker-free renderer, ready for input - the status line shows auto mode on and high effort, with the prompt waiting at the bottom. This is the state once setup is done.

Once claude --version returns something sane, run through this.

  1. Run claude doctor and fix anything it flags.
  2. If you're in VS Code, Cursor or Zed, run /terminal-setup inside claude once, which adds the Shift+Enter newline you expect. Windows Terminal 1.25 or later, iTerm2 and Ghostty have it already, and Ctrl+J, or a backslash then Enter, gives you a newline in any terminal.
  3. Check /context. Shows your token usage against the conversation budget. Use /clear between unrelated tasks rather than letting Claude Code auto-compact.

Beyond the checklist, the full slash-command reference is one keystroke away - type /help from any Claude Code session and the full command list scrolls in:

Live output of /help inside a Claude Code session showing the full slash-command reference - /model, /context, /agents, /clear, /compact, /doctor, /insights, /terminal-setup, /skill, /effort and more - one keystroke away

Looking for something else?

If you are setting up the Claude Desktop app, see claude-desktop-system-requirements. If you want a guide to MCP servers that extend Claude Code, see the best MCPs for Claude Code. If you want the hooks and sub-agents walkthrough, see the Claude Code hooks guide.

If you searched for "Claude Code" expecting an IDE-native AI feature, Cursor's built-in agent or the Code tab in the Claude Desktop app (above) are the easier on-ramps for non-CLI users.

Running Claude Code with a local LLM (and cutting the bill)

Claude Code's hardware bar is low because the model runs in Anthropic's cloud - but that also means every token is metered, and left running on a big overnight refactor the bill mounts. The fix isn't to swap Claude for a local model; you'd lose the reasoning that makes it worth using. It's to let Claude keep orchestrating and hand the bulk, bounded work - boilerplate, a first-pass code review, an extraction, a test stub - to a model running on your own hardware. That's what houtini-lm does: an MCP server that gives Claude Code a local endpoint to delegate to, and prints a running count of the tokens it has offloaded in the footer of every response.

The local endpoint can be any OpenAI-compatible server, and we've written up the two I'd point you at. If you've got the GPU for it, vLLM serves an open-weight model on your own card, and the backend write-up covers wiring it to Claude - it's the arrangement I run, the local model doing the volume and Claude the judgement. If you'd rather not touch a compose file, LM Studio is the gentle path: a desktop app that runs a model and exposes the same OpenAI-compatible endpoint in a couple of clicks.

Either way the split is the same - Claude reasons, the local model executes - and the measured runs show which local models earn their place. If the Claude Code bill is what brought you here, the full case for delegating is where I'd start.

Where to go from here

Get the install clean, run claude doctor, and you are done with the setup phase. Then spend the first hour in plan mode on a spec rather than on the spec sheet, because the interesting parts of Claude Code - sub-agents, hooks, skills, the worktree branching that makes parallel work possible - all assume the loop is yours before the agents multiply.

Within a day you could build something you couldn't imagine being able to do a year ago. The machine you already own will do it.

Continue reading.