NodexVPS
Back to All Guides
AI Agent VPS5 min read•Updated 2026-03-22

Run Claude Code on a Remote Cloud VPS (Complete Guide)

Step-by-step tutorial to configure Anthropic Claude Code CLI on a dedicated NodexVPS Ubuntu VPS with tmux persistence, Node.js 20, and Git worktrees.

Running Claude Code on a dedicated remote VPS gives your AI agent 24/7 unthrottled compute, dedicated 10 Gbps networking, and protects your local machine's memory and battery.

1

Install Node.js 20 LTS & Essential Build Tools

Connect to your NodexVPS VPS via SSH and install modern Node.js and build packages.

2

Install the Claude Code CLI Globally

Use npm to install Anthropic official Claude Code package.

3

Securely Export Your API Key

Add your Anthropic API key to your environment variables or ~/.bashrc.

4

Launch Inside a Persistent Tmux Session

Ensure your agent continues executing even if your local laptop sleeps or SSH connection drops.

5

Pair with VS Code Remote - SSH

Open VS Code on your laptop, press F1, select 'Remote-SSH: Connect to Host', and enter your NodexVPS VPS IP address to edit code side-by-side with Claude Code.

Start Your NodexVPS Today

Save 50% with yearly billing. No contract, cancel any time.