How to Install Claude Code and Start Coding With AI in Your Terminal

Claude Code is an agentic coding tool that lives in your terminal and helps you code faster with natural-language commands. This guide covers installing it on macOS, Linux and Windows, and your first steps after setup.
What is Claude Code?
Claude Code is an agentic coding tool that lives in your terminal. It understands your whole codebase and helps you write code faster by doing routine tasks, explaining complex code, and handling Git workflows — all through natural-language commands. You describe what you want in plain words, and it reads files, runs commands, edits code and runs tests for you. It is open source, published on GitHub, and it works in your terminal, in your IDE, or by tagging @claude on GitHub.
What can you do with Claude Code?
- Ask for a feature or a fix in plain language and let it edit the project for you
- Have it explain unfamiliar code, find bugs, or suggest refactors
- Run tests and Git commands without leaving the terminal
- Extend it with skills and plugins to add new abilities
How to install Claude Code
The fastest way on macOS or Linux is the official install script. Open a terminal and run:
curl -fsSL https://claude.ai/install.sh | bashOn macOS or Linux you can also use Homebrew:
brew install --cask claude-codeOn Windows, the recommended method is PowerShell:
irm https://claude.ai/install.ps1 | iexOr install it with WinGet:
winget install Anthropic.ClaudeCodeThe npm package is deprecated, so use one of the methods above instead.
If you already use Claude Code and want its agent SDK development plugin, paste these two lines into the Claude Code chat box, not the terminal, pressing Enter after each:
/plugin marketplace add anthropics/claude-code/plugin install agent-sdk-dev@claude-code-pluginsFirst steps after installing
Open a terminal, move into your project folder, and run:
claudeStart with a small, safe request — for example, ask it to explain the project structure or to find where a particular function is defined. Review the changes it proposes before accepting them. Once you trust the workflow, give it a routine task such as adding a test or fixing a failing build, and let it run the commands and report back.
Frequently asked questions
Is Claude Code free? The tool itself is open source and free to install, but running it needs a Claude subscription or API access.
Is it hard to install? No. One command is enough on any platform.
How do I uninstall it? The README does not list uninstall steps directly. It points to the setup documentation for removal instructions, so check there for the steps that match your install method.
Comments (0)