surshar / claude-code
Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.
Built by Anthropic · github.com/anthropics
| @@ -17,11 +17,27 @@ | ||
| 17 | 17 | |
| 18 | 18 | ## Get started |
| 19 | 19 | |
| 20 | -1. Run the following command in your terminal: <br /> | |
| 21 | - ```sh | |
| 22 | - npm install -g @anthropic-ai/claude-code | |
| 23 | - ``` | |
| 24 | -2. Navigate to your project directory and run <code>claude</code> | |
| 20 | +1. Install Claude Code using one of these methods: | |
| 21 | + | |
| 22 | + **User-level installation** (recommended, no `sudo` required): | |
| 23 | + ```sh | |
| 24 | + mkdir -p ~/.local/share/npm-packages | |
| 25 | + npm config set prefix ~/.local/share/npm-packages | |
| 26 | + export PATH=~/.local/share/npm-packages/bin:$PATH | |
| 27 | + npm install -g @anthropic-ai/claude-code | |
| 28 | + ``` | |
| 29 | + | |
| 30 | + *Add `export PATH=~/.local/share/npm-packages/bin:$PATH` to your `~/.bashrc` or `~/.zshrc` to make the change permanent.* | |
| 31 | + | |
| 32 | + **Installation inside of a virtual environment** (from `nvm`, etc...): | |
| 33 | + ```sh | |
| 34 | + npm install -g @anthropic-ai/claude-code | |
| 35 | + ``` | |
| 36 | + | |
| 37 | + *Do NOT install this package as an administrative user, such as `root`. This can compromise the security and stability of your system.* | |
| 38 | + | |
| 39 | +2. Navigate to your project directory and run <code>claude</code>. | |
| 40 | + | |
| 25 | 41 | 3. Complete the one-time OAuth process with your Anthropic Console account. |
| 26 | 42 | |
| 27 | 43 | ### Research Preview |