Exam guide·9 min read·11 July 2026

Install Claude Code: Complete Developer Setup Guide

Learn how to install Claude Code step by step, configure it for real projects, and understand what skills the CCDV-F exam tests. Setup guide for 2026.

By Solomon Udoh · AI Architect & Certification Lead

Install Claude Code: Complete Developer Setup Guide

If you need to install Claude Code and get it running on a real project, this guide covers every step: prerequisites, the install command, first-run configuration, and the project-level settings that separate a working setup from a production-ready one. We also map each setup decision to the Claude Certified Developer, Foundations (CCDV-F) exam, so the time you spend here doubles as exam prep.

What is Claude Code and why does it matter for the CCDV-F exam?

Claude Code is Anthropic's agentic coding tool. It runs in your terminal, reads your codebase, calls tools, edits files, and executes shell commands autonomously inside a session. For developers preparing for the CCDV-F exam, it is not optional background knowledge: Domain 3 (Claude Code) and Domain 2 (Applications and Integration, weighted at 33.1%) both test practical judgment about how Claude Code behaves in real workflows.

The CCDV-F exam launched on 12 March 2026 alongside the full Claude Partner Network certification programme. It costs $125 USD per attempt, runs 53 items in 120 minutes, and requires a scaled score of 720 out of 1000 to pass. Understanding the tool at the command-line level is the foundation for every higher-order question the exam asks.

What are the prerequisites before you install Claude Code?

Before you run the install command, confirm three things:

  1. Node.js 18 or later. Claude Code is distributed as an npm package. Run node --version to check. If you are below 18, update via nodejs.org or your version manager of choice.
  2. npm 9 or later (ships with Node 18+). Run npm --version.
  3. An Anthropic API key. Claude Code authenticates against the Anthropic API. Generate a key at console.anthropic.com. Store it somewhere safe before you proceed.

You do not need a separate Claude.ai subscription to use Claude Code via the API, though some teams route usage through Claude.ai Pro or Team plans. The CCDV-F exam tests API-level integration, so working directly with an API key is the right mental model.

How do you install Claude Code?

The install is a single npm command:

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

The -g flag installs the package globally so the claude binary is available in any directory. After the install completes, verify it:

bash
claude --version

You should see a version string. If the command is not found, your global npm bin directory is likely not on your PATH. Fix it by running:

bash
npm config get prefix

Then add <prefix>/bin to your shell's PATH in .bashrc, .zshrc, or the equivalent.

What if you are on a managed or restricted machine?

Some corporate environments block global npm installs. In that case, use npx to run Claude Code without a global install:

bash
npx @anthropic-ai/claude-code

This is slower on first run because it downloads the package each time, but it works without elevated permissions. For CI/CD pipelines, npx is often the right choice anyway because it pins the version per invocation.

How do you configure Claude Code after installation?

Setting your API key

On first run, Claude Code will prompt for your API key if it is not already set. You can also set it as an environment variable, which is the recommended approach for any non-interactive context:

bash
export ANTHROPIC_API_KEY="sk-ant-..."

Add that line to your shell profile to persist it across sessions. For CI/CD, inject it as a secret rather than hardcoding it in any file.

Running Claude Code for the first time

Navigate to a project directory and run:

bash
claude

Claude Code opens an interactive session. It reads the current directory, and if a CLAUDE.md file exists at the project root, it loads that as its primary instruction context. If no CLAUDE.md exists, Claude Code operates with its defaults.

Claude Code is designed to be used in your terminal, where it can read your codebase, run commands, and make changes autonomously.

Anthropic , Claude Code Documentation

What is CLAUDE.md and why does it matter?

CLAUDE.md is a markdown file you place at the root of your repository (or in subdirectories for path-scoped rules). Claude Code reads it at the start of every session and treats its contents as persistent instructions. Think of it as a system prompt that lives in version control.

A minimal CLAUDE.md for a Python project might look like this:

markdown
# Project: Payments Service
## Stack
- Python 3.12, FastAPI, PostgreSQL
- Tests: pytest with coverage enforced at 90%
## Conventions
- All database queries go through the repository layer; never query directly from route handlers.
- Use `ruff` for linting before committing.
## Out of scope
- Do not modify migrations without explicit instruction.

The three-level configuration hierarchy that Claude Code uses (global user settings, project-level CLAUDE.md, and path-scoped rules) is a testable concept on the CCDV-F exam. Understanding which level takes precedence, and when to use each, is the kind of practical judgment the exam rewards.

The version control implications of committing CLAUDE.md are also worth understanding: a CLAUDE.md checked into a shared repository becomes a team-wide instruction set, which is powerful but requires the same review discipline as any other configuration file.

How do you configure Claude Code for a team environment?

Individual developers can keep personal preferences in a global config file (~/.claude/CLAUDE.md), while shared project conventions live in the repository-level CLAUDE.md. This separation means a developer can have personal shortcuts without polluting the shared config.

For teams, the recommended pattern is:

LayerLocationWho controls itVersion-controlled?
Global user config~/.claude/CLAUDE.mdIndividual developerNo
Project config<repo>/CLAUDE.mdTeam, via PR reviewYes
Path-scoped config<repo>/src/payments/CLAUDE.mdOwning teamYes
Environment variableShell profile or CI secretDevOps / individualNo (secrets)

Path-scoped configs let you apply different rules to different parts of a monorepo. A CLAUDE.md inside src/payments/ applies only when Claude Code is working within that directory tree, which is useful when different sub-teams have different conventions or when certain directories contain sensitive logic that should not be autonomously modified.

What MCP servers can you connect after installation?

Claude Code supports the Model Context Protocol (MCP), which lets you connect external tools and data sources to a Claude Code session. After installation, you can configure MCP servers in your project or user-level config.

A basic MCP server entry in a Claude Code config looks like this:

json
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/project"],
"env": {
"NODE_ENV": "production"
}
}
}
}

The environment variable expansion in MCP config is a detail the CCDV-F exam tests directly: knowing that ${VAR} syntax expands at config-load time, not at runtime, affects how you structure secrets and paths. Domain 8 (Tools and MCPs) carries 10.6% of the exam weight, so MCP configuration is worth understanding thoroughly.

How does Claude Code handle tool use in a session?

Once installed and running, Claude Code has access to a set of built-in tools: file reading and writing, shell command execution, search (grep and glob), and the Edit tool for targeted in-place modifications. Understanding when Claude Code reaches for each tool is directly testable.

The distinction between grep and glob is a common exam scenario: grep searches file contents, glob matches file paths by pattern. Choosing the wrong one wastes tokens and produces incorrect results. Similarly, the Edit tool and read/write fallback pattern matters when you need surgical edits versus full file rewrites.

The key question is always: what is the minimal intervention that achieves the goal? Targeted edits preserve surrounding context; full rewrites risk introducing drift.

Anthropic , Claude Code Documentation

For the CCDV-F exam, the built-in tool sequence for common tasks is worth memorising as a pattern: explore with glob, read with the Read tool, edit with the Edit tool, verify with shell commands. Deviating from this sequence without reason is a signal of poor tool judgment.

What does the CCDV-F exam actually test about Claude Code?

Domain 3 (Claude Code) carries 3.1% of the exam weight, which is the smallest domain by weight. Do not let that number mislead you: Claude Code concepts bleed into Domain 2 (Applications and Integration, 33.1%) and Domain 8 (Tools and MCPs, 10.6%), because real integration work involves Claude Code sessions, MCP connections, and tool-use decisions.

Here is the full domain weight breakdown for context:

DomainNameWeight
1Agents and Workflows14.7%
2Applications and Integration33.1%
3Claude Code3.1%
4Eval, Testing, and Debugging2.6%
5Model Selection and Optimisation16.8%
6Prompt and Context Engineering11.0%
7Security and Safety8.1%
8Tools and MCPs10.6%

The exam does not draw from a scenario bank the way the CCAR-F Architect exam does. CCDV-F items are written directly against the skills in each domain, which means breadth of coverage matters more than deep preparation for a handful of scenarios.

How do you use Claude Code non-interactively in CI/CD?

For automated pipelines, Claude Code supports a non-interactive mode via the -p flag (print mode). This lets you pass a prompt directly and receive output without an interactive session:

bash
claude -p "Review the diff in the last commit and list any security concerns" --output-format json

The -p flag is essential for CI/CD integration. Without it, Claude Code waits for interactive input, which will hang a pipeline. Pairing it with --output-format json gives you structured output you can parse downstream.

For the exam, understanding the distinction between interactive sessions (where Claude Code can ask clarifying questions and iterate) and non-interactive invocations (where it must complete the task in a single pass) maps directly to Domain 2 questions about application integration patterns.

What should you do after installation to prepare for the CCDV-F exam?

Installation is the starting point, not the destination. After you have Claude Code running, the highest-leverage preparation steps are:

  1. Build a CLAUDE.md for a real project and observe how it changes Claude Code's behaviour across sessions.
  2. Connect at least one MCP server and trace how tool selection changes when more tools are available.
  3. Run Claude Code in non-interactive mode against a test suite and inspect the structured output.
  4. Read the prompt engineering and structured output concepts that underpin Domain 6, since prompt quality directly affects Claude Code's tool-use decisions.
  5. Study agentic architecture patterns to understand how Claude Code sessions fit into larger multi-agent systems, which Domain 1 tests at 14.7% weight.

The CCDV-F exam costs $125 USD and runs 53 items in 120 minutes. At roughly 2.3 minutes per item, there is no time to reconstruct knowledge from first principles. The goal is to have internalised the decision rules well enough that each scenario resolves quickly.

AI Skill Certs is an independent prep platform and is not affiliated with or endorsed by Anthropic. Our CCDV-F prep content is in development; our live CCAR-F Architect Foundations prep is available now if you are also pursuing the Architect track.

Frequently asked questions

Do I need a Claude.ai subscription to install Claude Code?
No. Claude Code authenticates via an Anthropic API key, which you generate at console.anthropic.com. A Claude.ai Pro or Team subscription is not required, though some teams route usage through those plans. For exam prep and direct API work, an API key is the correct setup.
Can I install Claude Code on Windows?
Yes. Claude Code runs on Windows via Node.js 18 or later. Install Node from nodejs.org, then run `npm install -g @anthropic-ai/claude-code` in PowerShell or Command Prompt. Windows Subsystem for Linux (WSL2) is also a common and well-supported environment for Claude Code.
What Node.js version does Claude Code require?
Claude Code requires Node.js 18 or later and npm 9 or later. Node 18 ships with npm 9 by default. Run `node --version` and `npm --version` to confirm before installing. If you are below Node 18, update via nodejs.org or a version manager such as nvm.
How do I update Claude Code to the latest version?
Run `npm update -g @anthropic-ai/claude-code` to update the globally installed package. In CI/CD pipelines that use `npx @anthropic-ai/claude-code`, you can pin a specific version with `npx @anthropic-ai/claude-code@<version>` or omit the version to always pull the latest published release.
Does the CCDV-F exam test Claude Code installation steps directly?
The CCDV-F exam does not test rote installation commands. Domain 3 (Claude Code, 3.1% weight) and Domain 2 (Applications and Integration, 33.1% weight) test practical judgment: configuration hierarchy decisions, CLAUDE.md design, MCP server setup, non-interactive mode usage, and tool-selection reasoning in real project scenarios.
Is Claude Code the same as the Claude API?
No. The Claude API is the HTTP interface you call programmatically to send messages and receive completions. Claude Code is an agentic terminal tool built on top of the API. It manages its own tool-use loop, reads your filesystem, and executes shell commands. Both are tested on the CCDV-F exam, but they serve different integration patterns.

People also ask

How do I install Claude Code on Mac?
Install Node.js 18 or later from nodejs.org, then run `npm install -g @anthropic-ai/claude-code` in your terminal. Set your Anthropic API key with `export ANTHROPIC_API_KEY="sk-ant-..."` in your shell profile, then run `claude` from any project directory to start a session.
Is Claude Code free to install?
Claude Code itself is free to install via npm. Usage costs are billed through your Anthropic API account based on the tokens consumed during each session. There is no separate licence fee for the tool. API pricing is published at anthropic.com/pricing and varies by model.
What is Claude Code used for?
Claude Code is an agentic terminal tool that reads your codebase, edits files, runs shell commands, and calls external tools autonomously within a session. Common uses include code review, refactoring, test generation, debugging, and CI/CD integration via its non-interactive mode.
How do I set up Claude Code for a team?
Commit a `CLAUDE.md` file to your repository root with shared conventions, stack details, and out-of-scope rules. Each developer keeps personal preferences in `~/.claude/CLAUDE.md`. Path-scoped `CLAUDE.md` files in subdirectories apply rules to specific parts of a monorepo. All shared configs should go through normal PR review.
Does Claude Code work offline?
No. Claude Code sends requests to the Anthropic API for every inference step, so an active internet connection and a valid API key are required. There is no local model option. For air-gapped environments, Claude Code cannot be used without network access to Anthropic's API endpoints.

About the author

Solomon Udoh

AI Architect & Certification Lead

Solomon Udoh is an AI Architect who designs and ships production agent systems on the Claude API and Claude Code. He built AI Skill Certs' adaptive engine and authored its 174-concept knowledge graph, mapping every Claude Certified Architect - Foundations objective to hands-on, exam-aligned practice.

  • Designs production multi-agent systems on the Claude API and Agent SDK
  • Author of the AI Skill Certs knowledge graph (174 mapped exam concepts)
  • Builds with MCP, Claude Code, structured outputs, and agentic loops daily
  • Reviews every concept page against the official Anthropic exam guide

You might also like

Ready to put it into practice?

Study every exam concept with an adaptive tutor.

Start studying