TL;DR
Claude Code is an AI development assistant that runs directly in your terminal. This getting-started guide walks you step by step, from installation to your first project, with no specific technical prerequisites. You will discover how to configure, use, and leverage this tool to code more efficiently starting today.
Claude Code is an AI development assistant that runs directly in your terminal. This getting-started guide walks you step by step, from installation to your first project, with no specific technical prerequisites. You will discover how to configure, use, and leverage this tool to code more efficiently starting today.
Claude Code is a command-line development agent created by Anthropic that allows you to write, modify, and debug code through natural language conversations. This tool has established itself as one of the most adopted agentic coding assistants among developers.
To fully understand what this approach entails, see the article What is agentic coding? which lays the conceptual foundation.
SFEIR Institute trainings
Claude Code Training
1 day · Fundamentals
AI-Augmented Developer
2 days · Intermediate
What is Claude Code and what is it for?
Claude Code is a CLI (Command-Line Interface) tool that runs in your terminal. Unlike an editor extension, it operates directly in your system environment.
A CLI is a program you control by typing text commands. Open your terminal, type an instruction, and the tool responds. No buttons, no graphical menus.
In practice, Claude Code reads your source code, understands your project structure, and proposes modifications. It can create files, execute commands, and fix bugs autonomously.
| Feature | Claude Code | Traditional IDE Extension |
|---|---|---|
| Interface | Terminal (CLI) | Panel integrated in editor |
| Project access | Complete file system | Open files only |
| Command execution | Yes (git, npm, tests) | Limited or absent |
| Autonomy | Agentic (multi-step) | Line-by-line completion |
The underlying Claude models rank among the top performers on the SWE-bench Verified coding benchmark, which makes them some of the most capable coding models available.
You will encounter the term "agentic" regularly: it means the tool makes intermediate decisions to accomplish a complex task, without you having to guide every step. For an overview of the tool and its capabilities, visit the dedicated Claude Code page.
Key takeaway: Claude Code is a terminal AI assistant that reads, writes, and executes code on your behalf through natural language conversations.
What are the prerequisites for installing Claude Code?
Before installing Claude Code, verify that your machine has the following elements. No advanced skills are required.
Node.js is a JavaScript runtime environment. It allows running JavaScript programs outside a browser. Install version 18 or higher (Node.js 22 LTS is the recommended version).
node --version
# Expected result: v22.x.x or higher
A terminal is the application where you type your commands. On macOS, use Terminal or iTerm2. On Windows, use PowerShell or Windows Terminal. On Linux, any terminal emulator works.
| Prerequisite | Minimum version | Recommended version | Verification |
|---|---|---|---|
| Node.js | 18.0.0 | 22 LTS | node --version |
| npm | 9.0.0 | 10+ | npm --version |
| Git | 2.30+ | 2.43+ | git --version |
| Disk space | 200 MB | 500 MB | - |
Git is a version control system. It records the history of your code changes. Claude Code uses it to understand your project context.
Concretely, if node --version and git --version return results without errors, you are ready for the next step. Find the full details in the Installation and first launch guide.
Key takeaway: you need Node.js 18+, npm, Git, and a terminal. Three commands are all it takes to verify everything.
How to install Claude Code step by step?
Installation takes less than 2 minutes. Open your terminal and run the following command:
npm install -g @anthropic-ai/claude-code
The -g flag means "global": the tool will be accessible from any folder on your machine. npm is the Node.js package manager. It downloads and installs programs for you.
Verify that the installation worked:
claude --version
# Expected result: 2.x.x (e.g. 2.1.x)
If you get a permissions error on macOS or Linux, do not use sudo. Instead, use the native installer, which requires no elevated privileges:
curl -fsSL https://claude.ai/install.sh | bash
Alternatively, fix npm's global prefix so it points to a user-writable directory, then re-run the npm install command without sudo.
Next, authenticate. The standard sign-in flow is to launch Claude Code and log in through your browser. Run claude, then follow the browser prompts to sign in with a Claude Pro, Max, Team, or Enterprise subscription (the free Claude.ai plan does not include Claude Code access). Once authenticated, your session is remembered and you do not need to log in again at each launch.
claude
# Then follow the browser prompts to log in
You can re-trigger this flow at any time from inside Claude Code with the /login command.
As an alternative, developers who want API/Console billing can authenticate with an API key instead. Create an account on console.anthropic.com, retrieve your key, and expose it as an environment variable:
export ANTHROPIC_API_KEY="sk-ant-your-key-here"
To make this permanent, add the line to your ~/.bashrc or ~/.zshrc file. If you want to understand the security options related to authentication, the Permissions and security guide covers all possible configurations.
Key takeaway: install Claude Code with a single npm command, then sign in by running claude and logging in via the browser with your Claude subscription; an API key is an alternative for Console billing.
How to launch Claude Code for the first time?
Navigate to an existing project folder or create a new one:
mkdir my-first-project && cd my-first-project
git init
Then launch Claude Code:
claude
An interactive prompt opens. You can type your requests in French or English. Claude Code automatically analyzes the files present in the current directory.
Here is how to formulate your first request. Type directly in the prompt:
Create an index.html file with a simple homepage containing a title and a paragraph
Claude Code will read your request, create the file, and show you the result. It will ask for permission before writing to disk. Accept by typing y.
Simple requests typically return in a few seconds. Complex tasks involving multiple files take longer.
To deepen conversation techniques with the tool, the Your first conversations guide details prompt formulation best practices. You can also keep the first conversations cheatsheet handy to find essential commands.
Key takeaway: launch claude in a project folder, type your request in natural language, and validate the proposed actions.
What are the essential commands to know?
Claude Code offers slash commands that control its behavior. A slash command starts with the / character and runs in the interactive prompt.
| Command | Function | Example usage |
|---|---|---|
/help | Shows help | When you are stuck |
/clear | Clears context | When the conversation gets long |
/compact | Summarizes context | To save tokens |
/init | Creates a CLAUDE.md file | When starting a new project |
/cost | Shows session cost | To track your consumption |
Run /init at the start of each new project. This command creates a CLAUDE.md file at the root of your project. This file stores permanent instructions that Claude Code will re-read at each session.
The CLAUDE.md file is the tool's persistent memory. You define code conventions, frameworks used, and project-specific rules there. In practice, most developers who use Claude Code daily maintain an up-to-date CLAUDE.md file.
To understand in detail how this memory works, see the article on the CLAUDE.md memory system. The essential slash commands are also documented in a dedicated guide.
Key takeaway: five slash commands cover the vast majority of daily needs: /help, /clear, /compact, /init, and /cost.
How to complete your first guided project step by step?
Here is how to create a simple REST API with Claude Code. This project takes about 10 minutes and requires no prior backend experience.
Step 1: Initialize the project:
mkdir api-demo && cd api-demo
git init
claude
Step 2: Request the project structure. In the Claude Code prompt, type:
Initialize a Node.js project with Express.
Create a server with a GET /api/hello route that returns { "message": "Hello world" }.
Add an appropriate .gitignore file.
Claude Code will create the package.json, server.js, and .gitignore files. It will run npm install to install Express (a web framework for Node.js). Accept each action by typing y.
Step 3: Test your API:
node server.js
# Server started on http://localhost:3000
Open your browser to http://localhost:3000/api/hello. You should see the JSON response.
Step 4: Add a feature. Return to Claude Code and type:
Add a POST /api/todos route that accepts a title and stores it in an in-memory array.
Add a GET /api/todos route that returns the list of todos.
In about 15 seconds, Claude Code modifies your server.js file to add the two routes. The total project weight stays under 5 MB.
This type of project concretely illustrates the power of agentic coding. To explore more use cases and go further, the SFEIR Institute Claude Code training (1 day) lets you practice on guided labs covering installation, configuration, and complete tool onboarding.
Key takeaway: in four steps and under 10 minutes, you create a functional API without writing a single line of code manually.
What beginner mistakes should you avoid?
Beginners make recurring mistakes. Here are the five most frequent and how to fix them.
Mistake 1: Prompts that are too vague. "Make me a website" does not produce good results. Specify the technology, structure, and expected behavior. A detailed, specific prompt produces substantially more relevant results than a vague one-line request.
Mistake 2: Ignoring project context. Claude Code analyzes files in the current directory. If you launch it from your home folder, it has no project context. Always navigate to the correct folder before launching claude.
Mistake 3: Not using /init. Without a CLAUDE.md file, the tool starts from scratch at each session. In practice, this means you repeat the same instructions at every launch.
Mistake 4: Accepting without reading. Claude Code asks for permissions before writing or executing commands. Read each proposal before validating. The permissions quick start guide explains how to configure authorization levels.
Mistake 5: Forgetting to version. Commit regularly with Git. Claude Code can undo its changes, but Git remains your safety net. A git commit before each complex request protects you against unexpected results.
| Mistake | Impact | Solution |
|---|---|---|
| Vague prompt | Off-topic result | Specify tech + structure + behavior |
| Wrong directory | No context | cd into the project before claude |
| No CLAUDE.md | Repeated instructions | /init at startup |
| Blind validation | Unwanted modifications | Read each diff before y |
| No Git | Lost work | Commit before each complex task |
developers who apply these five best practices see a significant reduction in manual corrections after generation.
Key takeaway: specify your prompts, stay in the right folder, use /init, read the diffs, and commit regularly.
How to connect Claude Code to external tools via MCP?
MCP (Model Context Protocol) is an open protocol that allows Claude Code to communicate with third-party services. Concretely, MCP connects the tool to your databases, APIs, and documentation tools.
Claude Code natively supports MCP. Configure an MCP server by adding a block to your configuration file:
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"]
}
}
}
This block connects Claude Code to the GitHub API. You can then ask the tool to list your pull requests, create issues, or consult remote files.
A growing ecosystem of MCP servers covers common use cases: databases (PostgreSQL, MongoDB), cloud services (AWS, GCP), productivity tools (Slack, Linear), and remote file systems.
The complete MCP tutorial details the step-by-step configuration for the most popular servers.
Key takeaway: MCP extends Claude Code's capabilities by connecting it to your existing tools via a standardized protocol.
How much does using Claude Code cost?
Claude Code works on a token system. A token is a unit of text (approximately 4 characters in English, 2-3 characters in French). Each request consumes input tokens (your code + prompt) and output tokens (the generated response).
| Model | Relative input cost | Relative output cost | Max context |
|---|---|---|---|
| Claude Sonnet | Lower | Lower | 1M tokens |
| Claude Opus | Higher | Higher | 1M tokens |
| Claude Haiku | Lowest | Lowest | 200K tokens |
Per-token rates vary by model and change over time, so see the official pricing for current figures.
In practice, a typical 30-minute development session consumes between 50,000 and 200,000 tokens. The cost depends on the model used and the number of tokens processed. The /cost command shows your consumption in real time.
the Claude Sonnet model offers a strong performance/cost ratio for common development tasks. Use /cost regularly to track your budget.
If you want to deepen your mastery of the tool and optimize your costs, the AI-Augmented Developer SFEIR Institute training (2 days) covers advanced prompting and context management strategies. For developers already familiar with the basics, the AI-Augmented Developer - Advanced training (1 day) deepens automation and complex workflows.
Key takeaway: track your consumption with /cost and choose the model suited to each task to control your budget.
What are the next steps after this guide?
You now master the fundamentals of Claude Code. Here is the roadmap for progressing.
Level 2 - Master context. Learn to structure your CLAUDE.md files for multi-module projects. Context management is one of the largest factors in how effective an agentic tool is.
Level 3 - Automate workflows. Claude Code integrates into CI/CD pipelines. Configure pre-commit hooks that validate generated code before each commit.
Level 4 - Extend with MCP. Connect Claude Code to your databases, internal APIs, and monitoring tools for maximum productivity.
Here are the essential resources to continue:
- Deepen the basics: the Your first conversations guide covers advanced prompting techniques
- Secure your usage: the Permissions and security guide details authorization levels
- Understand the philosophy: the article on agentic coding explains the underlying principles
Claude Code receives weekly updates. Native installs update automatically, but if you installed via npm, run npm install -g @anthropic-ai/claude-code@latest to benefit from the latest improvements. Regular updates bring new features and performance improvements.
Key takeaway: progress in stages (context, automation, then integrations) and keep your tool up to date to benefit from continuous improvements.
Recent articles about Claude

Claude Managed Agents: Anthropic's Platform for Production Agent Deployment
Anthropic launches Managed Agents: a cloud platform for deploying AI agents in production. Secure sandbox, checkpointing, multi-agent, autonomous sessions lasting hours. Notion, Rakuten, Asana and Sentry already use it.

Claude Code Dream & Auto Dream: Automatic Memory Consolidation
After 20 sessions, Auto Memory notes become a mess. Auto Dream solves this by automatically consolidating Claude Code's memory: deduplication, stale entry removal, relative-to-absolute date conversion.

Claude Code Auto Mode: Autonomy Without the Risk
Auto Mode in Claude Code eliminates permission interruptions while keeping a safety net. A classifier analyzes every action before execution and blocks destructive operations. The sweet spot between approving everything and letting everything through.
Claude Code Training
Master Claude Code fundamentals in 1 day with our expert instructors. 60% hands-on practice on real-world cases.
Discover the training