Quick answer
Installing takes one command, and sign-in happens in the browser. Paid access is always required: a subscription or API billing.
The path from an empty terminal to the first answer: open a terminal, paste the command, open a new window, check the version, sign in to your account.
Claude Code is a coding agent from Anthropic, the company that makes Claude. It works in the terminal, a window where you type text commands, reads your project files and edits them to do the task you give it. You install it with one command: you copy the line for your system, paste it into the terminal and wait. Then you open the terminal again, check the version and sign in to your Claude account through the browser. Access is paid: you need a subscription or an account billed by API usage. The free Claude chat plan stays free, but Claude Code is not part of it.
Everyday example. Luka lives in Lisbon and works on a laptop with Ubuntu. He opens the terminal and pastes the command for macOS, Linux and WSL. The installer shows nothing for a few minutes, and Luka does not close the window. Then he opens a new terminal window, types claude --version and sees a version number with the note "(Claude Code)". Signing in is left: Luka runs claude in the project folder, the browser opens the sign-in page, and he signs in through his Pro subscription. Portugal is in Anthropic's country list, so the region is no obstacle.
Common mistake: installing Claude Code with only a free chat account. The installation will succeed, but signing in will not give access to the agent: the free plan does not include Claude Code. Before installing, decide how you will pay: a Pro, Max, Ultra, Team or Enterprise subscription, or API billing through Console.
You can check the answer right after installing: the command claude --version prints a version number and "(Claude Code)". Prices and terms were checked against the Claude pricing page and the Claude Code setup page.
| Question | Answer as of 18.11.2026 |
|---|---|
| How to install | one command: one for macOS, Linux and WSL, another for Windows PowerShell or CMD |
| Price | Pro $20 a month, Max $100, Ultra $200; Team from $25 a seat |
| What includes it | Claude Code is in Pro, Max, Ultra, Team and Enterprise; the free plan has no Claude Code |
| Availability | Russia is not in Anthropic's official country list; the terms name Claude Code among the products with this restriction |
Date checked: 18.11.2026. Prices and the country list change: open the Anthropic pages again before you pay.
What Claude Code is
Claude Code is a coding agent from Anthropic. It reads your project, edits files, runs commands and tests, and works with git. Regular Claude in the chat answers with text, while Claude Code changes the project files itself.
An agent does the work itself: you describe the task in words, and it opens the right project files, makes edits, runs checks and shows the result. Git is a program that keeps the history of a project's changes; Claude Code can work with it. Tests are checks that confirm the program still works after an edit; the agent runs them itself and reads the result.
Claude Code runs in the terminal, in VS Code and JetBrains, in the desktop app, in the browser, in Slack and in CI. This article covers the terminal, which is the main way to use it.
Everyday example. Rita lives in Riga and runs a small website with tests and a change history in git. First she asks Claude in the chat why a button does not work and gets an explanation as text: she has to fix the code herself. Then she launches Claude Code in the site folder and writes the same task. The agent finds the right file, edits it, runs the tests and shows the change. Rita looks at the edit in git and accepts it. Latvia is in Anthropic's country list, so the region raises no questions.
Is Claude Code the same Claude as in the chat, just in the terminal? No. In the chat Claude answers with text, and you carry the edits over yourself. Claude Code changes project files and runs commands: that is why it needs a separate installation and is included only in paid plans. How to check: the free plan does not include Claude Code, and in the plans table on claude.com/pricing the Free column says "Claude Code: No".
Install step by step
Requirements: macOS 13+, Windows 10 1809+ or Windows Server 2019+, Ubuntu 20.04+, Debian 10+, Alpine 3.19+; 4 GB of memory or more, an x64 or ARM64 processor, internet access. The commands come from the setup page, date checked: 18.11.2026.
The command depends on the window where you type. On macOS, Linux and in WSL (a Linux environment inside Windows) one line is used. On Windows there are two windows, PowerShell and CMD, and their commands differ. You can tell them apart by the prompt: in PowerShell it starts with "PS", in CMD there is no "PS". If you take the command for the other window, the installation will not start.
Three commands for three windows: macOS, Linux and WSL; PowerShell with the "PS" prompt; CMD without "PS".
Terminal
curl -fsSL https://claude.ai/install.sh | bashPowerShell
irm https://claude.ai/install.ps1 | iexCMD
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmdThe installer shows no progress while it downloads files. Administrator rights are not needed on Windows. Installing Git for Windows is optional: without it Claude Code runs commands through PowerShell.
Everyday example. Jan lives in Gdansk and works on a Windows laptop. He opens PowerShell and sees "PS" at the start of the line. So he needs the command irm https://claude.ai/install.ps1 | iex. Jan pastes it and does not see a single line for a few minutes, but he does not close the window: the installer shows no progress. He needed no administrator rights and did not install Git for Windows. When the installation finished, Jan opened PowerShell again and ran claude --version. Poland is in Anthropic's country list. You can check that the window is the right one by the first two letters of the prompt.
The installer, that is, the command with curl or irm, is the recommended way: it updates Claude Code in the background by itself. A package manager is a program that installs and updates other programs by name; this way works too, but you have to update Claude Code manually. With npm, install without sudo: the documentation warns that such an installation will not be able to update itself.
The installer updates itself, package managers update manually: Homebrew, WinGet, npm, apt, dnf, apk.
| Method | Command | Updates |
|---|---|---|
| Installer (recommended) | curl -fsSL https://claude.ai/install.sh | bash | automatic, in the background |
| Homebrew (macOS) | brew install --cask claude-code | manual: brew upgrade claude-code |
| WinGet (Windows) | winget install Anthropic.ClaudeCode | manual: winget upgrade Anthropic.ClaudeCode |
| npm (needs Node.js 22+) | npm install -g @anthropic-ai/claude-code@latest | repeat the install command |
| apt, dnf, apk | add the Anthropic repository following the instructions in the documentation | with the regular system update |
Everyday example. Marco lives in Milan and works on a Mac. He already installs all his programs through Homebrew, so he picks brew install --cask claude-code instead of the installer. Everything works the same, but a month later Marco updates Claude Code with brew upgrade claude-code: it will not update itself. Italy is in Anthropic's country list. How to check the installation method: if Homebrew installed it, update it with the same Homebrew.
WSL is a Linux environment inside Windows: Claude Code works in it as on regular Linux. The choice depends on the project. If the project and its programs are for Windows, install on Windows directly. If you need Linux programs or command isolation (a sandbox, that is, running the agent's commands in a restricted environment), take WSL 2. WSL 1 fits when WSL 2 is unavailable, but it does not support command isolation.
Three modes on Windows: directly, WSL 2 with command isolation, WSL 1 without isolation.
| Option | When to take it | Command isolation (sandbox) |
|---|---|---|
| Windows directly | projects and programs for Windows | not supported |
| WSL 2 | Linux programs or command isolation | supported |
| WSL 1 | if WSL 2 is unavailable | not supported |
In WSL you run the Linux command inside the WSL window, not from PowerShell. On Alpine, bash and curl are needed before installing: apk add bash curl.
First run and sign-in
Sign-in happens in the browser: Claude Code opens the page itself, and after signing in the terminal shows "Login successful".
Go to the project folder and run claude. The program opens the browser, you sign in to your Claude account, and the terminal shows "Login successful" and a prompt to press Enter. After that you can ask questions about the project.
First run
cd path/to/project
claudeIf the browser did not open, press c: the sign-in address is copied to the clipboard. You can sign out with the command /logout and sign in again with /login. Help inside the session is /help.
The way to sign in depends on how you pay. A Pro, Max or Ultra subscription is issued to a person. Team and Enterprise use the account of an employee invited by an administrator. Claude Console is a separate account billed by API usage with prepaid credits. Amazon Bedrock, Google Cloud and Microsoft Foundry fit organizations that already have a cloud provider.
Four sign-in paths: a subscription, Team or Enterprise, Console, cloud providers.
| What to sign in with | Who it is for |
|---|---|
| Pro, Max or Ultra subscription | one person, signing in through a claude.ai account |
| Team or Enterprise | an employee invited by an administrator |
| Claude Console | API billing with prepaid credits |
| Amazon Bedrock, Google Cloud, Microsoft Foundry | organizations with a cloud provider |
The list of accounts comes from the authentication page and the quickstart in the documentation.
Everyday example. Emma lives in Vienna and bought a Pro subscription. She goes to the project folder, runs claude, and the browser opens the sign-in page. Emma signs in to the same Claude account she uses for the chat. The terminal shows "Login successful", she presses Enter and asks: "what does this project do?". A few seconds later the agent describes the project. Later Emma wants to check which account the program is using and types /status; to switch accounts she uses /logout and /login. Austria is in Anthropic's country list, so the region is no obstacle.
Are a chat subscription and Claude Code two separate sign-ins? No. A Pro, Max or Ultra subscription is issued to a claude.ai account, and the same account opens Claude Code. They share one limit. How to check: after signing in, type /status and look at which sign-in method is shown.
Is a free Claude account enough? No. The setup requirements say: "The free claude.ai plan does not include Claude Code access". You can sign in to Claude Code only through a paid route: a subscription, Team, Enterprise, Console or a cloud provider. How to check: open the Claude Code setup page and find this phrase in the requirements.
Plans: what is included and what it costs
Claude Code is included in the paid Pro, Max, Ultra, Team and Enterprise plans and is not included in the free plan. Prices and contents are taken from claude.com/pricing. Date checked: 18.11.2026. Plans change, so open Anthropic's pricing page again before you pay.
A plan is a subscription with a fixed monthly price and its own amount of usage. Claude Code has no separate price: it comes with the subscription, together with ordinary Claude in chat. The higher the plan, the more usage you can spend in a five-hour window and in a week. Pro, Max and Ultra suit one person, Team seats suit a team, and Enterprise suits a company with a contract.
The plan ladder: Free without Claude Code, then Pro, Max, Ultra, Team standard and premium seats, Enterprise by contract.
| Plan | Price per month | Claude Code | Usage |
|---|---|---|---|
| Free | $0 | no | limited |
| Pro | $20 if billed monthly, $17 if billed yearly ($200 up front) | yes | base |
| Max | $100 | yes | 5x Pro |
| Ultra | $200 | yes | 10x Pro per week |
| Team, standard seat | $25 monthly, $20 if billed yearly | yes | as in the seat's subscription |
| Team, premium seat | $125 monthly, $100 if billed yearly | yes | 5x a standard seat |
| Enterprise | on the page: $20 per seat per month if billed yearly, from 20 seats | yes | by contract |
Source: claude.com/pricing. Date checked: 18.11.2026.
Jonas lives in Vilnius and wants to try Claude Code on his own project. He opens the pricing page and sees the note “Claude Code: No” next to Free, so the free option is out. Pro costs 20 dollars a month when billed monthly, and that is enough to start. Yearly billing lowers the price to 17 dollars a month, but 200 dollars are charged at once, and Jonas is not yet sure he will use the agent every day. He takes monthly billing. To check your own case, open the pricing page and find the Claude Code note in the row of your plan.
A limit is the amount of usage after which the subscription asks you to wait. Pro and Max have two: a five-hour session limit and a weekly limit. Ultra has a weekly limit, and verified Ultra accounts have no five-hour limit. The limit is shared by Claude in chat and Claude Code: if you spent the usage in chat, less is left for the agent.
Two spending windows, five-hour and weekly; one pool of usage for chat and Claude Code.
| Plan | Which limit |
|---|---|
| Pro and Max | a five-hour session limit and a weekly limit |
| Ultra | a weekly limit; verified Ultra accounts have no five-hour limit |
| All subscriptions | the limit is shared by Claude in chat and Claude Code |
When the limit runs out, you can turn on extra usage paid with credits or buy API credits at standard API prices. To stay within the subscription, decline paying with credits. A week later Jonas notices that in the evening the agent asks him to wait: in the morning he talked to Claude in chat for a long time, and the shared usage is already gone. He decides not to buy credits and simply waits for the new window.
An API key is a programmatic password with which Claude Code pays for each request at API rates. A subscription has a fixed price, while a key is paid by volume. If the variable ANTHROPIC_API_KEY is set in the system, Claude Code takes the key instead of the subscription. For Jonas this was a surprise: the variable was left over from another project, and spending went at API rates even though his subscription was paid.
Two ways to pay: a subscription with a fixed price and an API key paid by volume. The key overrides the subscription.
ANTHROPIC_API_KEY is set in the system, Claude Code takes the key instead of the subscription, and spending goes at API rates.Prices per million tokens by model are not given here: I did not check them on the pricing page on 18.11.2026.
Does the free plan give Claude Code? No. The installation documentation says Claude Code requires a Pro, Max, Ultra, Team, Enterprise or Console account, and the free claude.ai plan does not include access to it. How to check: open the pricing page and find the note “Claude Code: No” next to Free.
Does a paid subscription lift the regional restriction? No. Anthropic's country list applies to use regardless of the plan and the way you pay. How to check: find your country in the list on Anthropic's page.
Is an API key cheaper than a subscription? It depends on the workload. A subscription costs a fixed sum, a key charges money by volume, and I did not check the exact rates on the pricing page on 18.11.2026. How to check: compare a month of spending in Console with the price of the subscription.
How to check that everything works
A working installation prints a version number with the note “(Claude Code)”. Next come diagnostics, the sign-in method and a first question about the project.
The check is five short steps, and each answers its own question. The version shows that the program is found and starts. Diagnostics collects a report on the installation and settings without starting a session. The status inside a session tells you how you signed in: with a subscription or with a key. A question about the project tests the whole chain at once: sign-in, network and file reading. The update shows that the installation can receive new versions.
The ladder of checks: version, diagnostics, status, a question about the project, update.
| Check | Command | What you should see |
|---|---|---|
| Version | claude --version | a version number and “(Claude Code)” |
| Diagnostics | claude doctor | a report on the installation and settings without starting a session |
| Sign-in | /status inside a session | the sign-in method: subscription or key |
| Work with a project | the question “what does this project do?” | a short description of the project |
| Update | claude update | “Claude Code is up to date” |
Sarah lives in Dublin and has just installed Claude Code on her laptop. She opens a new terminal window and types claude --version. A version number appears with the note “(Claude Code)”, so the program is found. Then she runs claude doctor and gets a report on the installation. In the project folder she runs claude, types /status and sees that she signed in with a subscription and with no key involved. The last step is the question “what does this project do?”: a short description of the project means the whole chain works. You can check it yourself in five minutes by going through the table from top to bottom.
Stopping at the version. A version number confirms only that the program is found in PATH. It does not check sign-in, network or file permissions. If the version prints but the question about the project gets no answer, look for the cause in the sign-in: check /status and run /login if needed.
Common installation errors
The documentation has a solution for every error message: the “Find your error” table on the page “Troubleshoot installation and login”. Date checked: 18.11.2026.
An installation error is read from the text of the message: from it you go to the cause, and from the cause to the action. Most often the cause is simple: the install folder is not in PATH (the list of folders where the terminal looks for programs), the command is for the wrong shell, or rights or memory are missing. Countries outside the supported list are a separate case: it is described in the table by the rows on 403 and “App unavailable in region”.
The error tree: what you see, what the cause is, what to do.
| What you see | Cause | What to do |
|---|---|---|
command not found: claude or “'claude' is not recognized” | the install folder is not in PATH | open a new terminal window; on macOS and Linux add ~/.local/bin to PATH |
The token '&&' is not a valid statement separator | the CMD command was run in PowerShell | take the command irm … | iex |
'irm' is not recognized | the PowerShell command was run in CMD | take the command curl … install.cmd |
syntax error near unexpected token '<' | a web page came instead of the script | check the network and proxy, open the solutions section of the documentation |
curl: (22) … 403 | a proxy or filter blocks the address, or the country is outside the supported list | check the network; for the country list and what to do, read the article on access by country, VPNs and bans |
EACCES: permission denied | no rights to the install folder | fix the folder's permissions, do not use sudo |
TLS connect error | outdated certificates or a proxy inspecting traffic | update the system certificates |
Killed during installation on Linux | not enough memory | free memory or add swap |
App unavailable in region | Claude Code is unavailable in the country | check the list of supported countries: Claude Code not available in your country: supported countries, VPN and bans |
Mateus lives in São Paulo and installed Claude Code on a Mac with one command. The installer finished, but the terminal shows “command not found: claude”. He decides the installation broke and wants to run it again. First he opens a new terminal window: the old window does not know about the new folder. If the message stays, the cause is PATH, and he needs to add ~/.local/bin to the zsh settings file and open the window again (the command is in the next block). After that claude --version prints a version. To check that you did the same, look at the output of claude --version.
Add the folder to PATH
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrcFor bash, fits instead of /.bashrc/.zshrc. After the edit, open a new terminal window.
If claude is not found, did the installer fail? Most often it worked, and the terminal does not know about the new folder: in the table this is the PATH row with the solution “open a new terminal window”. How to check: open a new window and repeat claude --version.
Does a change of network always cure error 403? No. In the table 403 has two causes: a proxy or filter, or a country outside the supported list. In the second case the network will not help, and you need to look at Anthropic's country list.
Is EACCES cured with sudo? No. The table names fixing the folder's permissions as the solution and says not to use sudo.
Access from Russia
Russia is not in Anthropic's official list of supported countries, and the terms name Claude Code among the products available only in the listed countries. Date checked: 18.11.2026. The terms took effect on 12.11.2026.
The country list is an Anthropic document naming the places where Claude can be used. Any country or region that is not in the list counts as unsupported. There is no entry “Russia” in the list, so installation and sign-in from Russia are not supported. Anthropic does not give its reasons. My guess is that they lie in the policy of the US and other countries: sanctions, export restrictions and laws. This is a guess, and the company's documents have no such explanation.
A map of the countries where Anthropic supports Claude Code, and the countries outside the list.
During installation this shows as the message “App unavailable in region” and as a 403 error on download: both rows are in the errors table. A paid subscription does not lift the restriction: the list applies to a paid plan and to an API key alike. What the restriction means, how to read entries with brackets and what is legal to do if your country is not in the list is covered in detail in a separate article.
Alternatives to Claude Code
Alternatives do the same as Claude Code: they read a project, edit files and run commands. They differ in model, price and place of work. Each has its own access terms, which you check on the program's website.
An alternative is another coding agent: it works in a terminal or in an editor and changes project files at your request. You choose one by three questions. Whose model sits inside? Where does it work: in a terminal, in an app or in an editor? How do you pay for it? Each agent has a description in the site's glossary; the facts on Gemini CLI and Antigravity CLI come from their articles, which also give the dates.
A map of alternatives: OpenCode, Codex, Cursor, Gemini CLI and its successor Antigravity CLI.
| Agent | Whose, on which model | Where it works |
|---|---|---|
| OpenCode | an open agent, you choose the model: Claude, GPT, Gemini and others through an API or a local one; you pay the model provider | terminal, app, web |
| Codex | OpenAI, GPT models | ChatGPT, app, terminal, IDE |
| Cursor | Anysphere, an editor based on VS Code with a built-in agent; its own models and other companies' models | editor |
| Gemini CLI | Google, Gemini models; stopped working for ordinary users on 18 June 2026 | terminal |
| Antigravity CLI | Google; Gemini CLI was moved into it | terminal, Antigravity app |
If you need your own model and direct payment to the provider, look at OpenCode. If you already pay for ChatGPT, look at Codex. If you prefer working in an editor rather than a terminal, look at Cursor. If you used Gemini CLI, Antigravity CLI took its place. Install commands for the alternatives are not given here: each has its own and they change. You can find them on the program's own website.
Ready-made prompts for the agent
Four prompts for the first session. Paste them into Claude Code after you run claude in the project folder.
The prompts go in rising order: first the agent only reads and tells, then it creates a rules file, then it makes a small edit, and at the end it runs the tests. Each prompt asks to show the result before writing or to leave files unchanged, so the first session stays safe.
1. Getting to know the project
What does this project do? Which technologies does it use and where is the main entry point? Answer with a list of five items.2. Project rules
Read the project and create a CLAUDE.md file: build and test commands, folder structure, what must not be touched. Show me the text before writing.3. A small edit
Add an “Installation” section to the README with the commands from package.json. Show me the change and wait for my confirmation.4. Checking that it works
Run the project's tests and list the failing ones. Suggest a cause for each, but do not change any files yet.