$ ssh root@YOUR_VPS_IP$ adduser dev$ usermod -aG sudo dev$ apt update$ apt install -y git tmux curl$ su - dev
Claude Code is not installed automatically and is not free: you need a paid Claude plan (Pro or higher) or an Anthropic API key billed by usage. No Anthropic account comes with the VPS, and the model runs at Anthropic, not on the server.
Choose the resources of your VPS
Claude Code runs on all our Linux VPS plans: you only pay for the VPS.
With your consent, we measure which ads bring us customers and how the site is used. Without it, nothing is measured and the site works exactly the same. You can change your mind at any time. Cookie policy.
Install Claude Code on a VPS and code from anywhere
Install Claude Code on an Ubuntu 24.04 VPS: Anthropic's coding agent works on your repositories inside tmux. Needs a Claude plan or an API key.
Claude Code is Anthropic's command-line coding agent. On a VPS it keeps working on your repositories around the clock, inside an SSH session.
Step-by-step procedure
Order the VPS and add a user
Order a VPS Mini running Ubuntu 24.04 LTS, connect as root with your SSH key, then create a dedicated user so the agent does not run as root.
Install git and tmux
Install the basic tools from the Ubuntu repositories, then switch to the dev user for the rest of the setup.
Install Claude Code
Run the official native installer, then check the version. It puts claude in ~/.local/bin and updates itself. If the command is not found, open a new session.
Sign in to your account
Start claude inside a tmux session, at the root of a repository. Follow the link it prints to sign in with your Claude plan, or use an API key in ANTHROPIC_API_KEY.
Work and come back later
Detach the session with Ctrl+B then D. Later, reconnect over SSH and resume it. If something is wrong, claude doctor checks the installation.
Choose the resources of your VPS
Claude Code runs on all our Linux VPS plans: you only pay for the VPS.
Recommended base: Ubuntu 24.04
VPS Mini: €3.99 per month incl. VAT with a 1-year term (or €4.99 per month with no commitment) · 2 vCPU · 8 GB RAM · 40 GB storage
VPS Essentiel: €7.99 per month incl. VAT with a 1-year term (or €9.99 per month with no commitment) · 4 vCPU · 16 GB RAM · 80 GB storage
VPS Performance: €17.59 per month incl. VAT with a 1-year term (or €21.99 per month with no commitment) · 8 vCPU · 48 GB RAM · 150 GB storage
VPS Pro: €27.99 per month incl. VAT with a 1-year term (or €34.99 per month with no commitment) · 12 vCPU · 64 GB RAM · 250 GB storage
Why run Claude Code on a VPS?
Claude Code is a command-line tool from Anthropic: it reads your code, edits files, runs commands and tests and uses Git, following your instructions in plain language. It runs on Linux, macOS and Windows. It does not run a local model: every request goes to Anthropic's servers.
On a VPS, Claude Code gets a dedicated machine that is always on and separate from your computer. Long tasks keep running in tmux when you close your laptop, your repositories and build tools stay in one place, and you can give it more freedom on a server you know how to reinstall. You need a paid Claude plan or an Anthropic API key.
Sessions that survive disconnects
Run Claude Code inside tmux: the task keeps going on the VPS when you drop SSH, and you pick it up again from another machine.
A sandbox you can reinstall
The agent runs commands. On a separate VPS, a mistake does not touch your computer, and the system can be reinstalled from the panel.
Root access for your build tools
Install Node, Python, Docker or the compilers your projects need. Claude Code uses them to run tests and builds.
Back up before big changes
Take a backup from the panel before handing a large refactor to the agent. On top of Git, you can roll back the whole server.
Before you start
Good to know: Claude Code is not installed automatically and is not free: you need a paid Claude plan (Pro or higher) or an Anthropic API key billed by usage. No Anthropic account comes with the VPS, and the model runs at Anthropic, not on the server.
Ubuntu 24.04 LTS (Anthropic supports Ubuntu 20.04+ and Debian 10+)
4 GB RAM minimum according to Anthropic; the VPS Mini (8 GB) leaves room for your builds
A Claude Pro, Max, Ultra, Team or Enterprise plan, or a Console account with an API key
Outbound internet access to Anthropic's servers
Git and tmux, plus your code repositories
Install Claude Code on your VPS
The main steps, to follow over SSH. The official documentation is the reference for the details.
Order the VPS and add a user: Order a VPS Mini running Ubuntu 24.04 LTS, connect as root with your SSH key, then create a dedicated user so the agent does not run as root.
Install git and tmux: Install the basic tools from the Ubuntu repositories, then switch to the dev user for the rest of the setup.
Install Claude Code: Run the official native installer, then check the version. It puts claude in ~/.local/bin and updates itself. If the command is not found, open a new session.
Sign in to your account: Start claude inside a tmux session, at the root of a repository. Follow the link it prints to sign in with your Claude plan, or use an API key in ANTHROPIC_API_KEY.
Work and come back later: Detach the session with Ctrl+B then D. Later, reconnect over SSH and resume it. If something is wrong, claude doctor checks the installation.
For which projects?
Always-on coding agent
Refactor a large repository
Fix tests continuously
Code from a tablet
The essentials, included in every plan
No hidden extras for the essentials: protection, an IP address, a recovery console and support from real people are included from the first plan.
Anti-DDoS: Network protection is included on every service, with no paid option.
Dedicated IPv4: Each VPS has its own public address and full root access.
Recovery console: Take back control of your VPS with the noVNC console, even without SSH.
Support 7 days a week: By ticket and on Discord, from a team that knows your services.
No commitment: Monthly, cancellable at any time, or yearly to pay less.
Run Claude Code on your own VPS.
Choose your resources, install, stay in control. No commitment.
Frequently asked questions
How do I install Claude Code on a VPS?
On an Ubuntu 24.04 VPS, create a non-root user, install git and tmux, then run the official installer with curl -fsSL https://claude.ai/install.sh | bash. Check it with claude --version, start claude in a repository and follow the sign-in link. The details are in the steps above and in Anthropic's documentation.
Is Claude Code free?
No. According to Anthropic, Claude Code requires a Pro, Max, Ultra, Team, Enterprise or Console account; the free claude.ai plan does not include it. With a Console API key, Anthropic bills usage by the tokens consumed. The VPS does not include any Anthropic subscription: you sign up with them directly.
Which VPS plan for Claude Code?
Anthropic lists 4 GB of RAM as the minimum. The model runs at Anthropic, so the VPS mostly serves your tools: Git, compilers, tests, Docker. The VPS Mini (2 vCPU, 8 GB) is enough for most projects. For heavy builds or several sessions in parallel, the VPS Essential (4 vCPU, 16 GB) gives more headroom.
How do I sign in without a browser on the server?
On first launch, claude prints a sign-in link: open it in the browser on your own computer, sign in to your Claude account and finish the step it asks for in the terminal. Another option is to set the ANTHROPIC_API_KEY variable with a key from the Anthropic Console; Claude Code then offers to use it and skips the browser sign-in.
Is it risky to let Claude Code run commands?
Claude Code asks for permission before sensitive actions, but it will run commands if you allow it. A separate VPS limits the damage: your personal files are not on it, the agent runs as a non-root user and you can restore a backup or reinstall the system from the panel. Only put the secrets the project needs on the server.