Skip to content

Step 9 — Install Claude Code on the Server

Claude Code needs Node.js:

Terminal window
sudo apt update
sudo apt install -y nodejs npm

Then install Claude Code. Check the current command at docs.claude.com, since installers change, but the standard path is:

Terminal window
sudo npm install -g @anthropic-ai/claude-code

Confirm it landed:

Terminal window
claude --version

Your server is now built. Everything from here happens in your editor.

Connect Your Editor