Reimage your VPS with our Ubuntu 24.04 template.
Login to your VPS as root and run:
apt update && apt upgrade
Then install nodejs & npm with:
apt install nodejs npm
Now you can install claude-code with:
npm install -g @anthropic-ai/claude-code
With the above installed you can then run the “claude” command in your project’s directory, eg:
mkdir -p claude-project/1 && cd claude-project/1 && claude