Claude Code · Always on · Root access

Claude Code VPS Your agent keeps working after you close the laptop

A Linux VPS for running Claude Code around the clock. Start a task, close your laptop, and check on it from your phone. Private KVM server with full root, a dedicated IP and reserved memory. The 4 GB plan Claude Code needs starts at $14.99₹1,389.27 a month, billed monthly.

Claude Code VPS plans

Anthropic lists 4 GB of RAM as the requirement for Claude Code, so start at the 4 GB plan. The smaller plans are for bots and scripts, not for a coding agent. Billed monthly, with no long contract.

Compute Region

Choose the deployment location
Currently out of stock

Claude Code VPS plans · Miami

Miami, Florida · AMD EPYC KVM VPS with full root access and a choice of 15 Linux builds
Plan vCPU Memory Storage Bandwidth Setup Price
4GB Plan Recommended 4 vCPU 4 GB 80 GB SSD 5 TB Instant $14.99/mo₹1,389.27/mo Buy Now
6GB Plan 4 vCPU 6 GB 100 GB SSD 5 TB Instant $19.99/mo₹1,852.67/mo Buy Now
8GB Plan 6 vCPU 8 GB 100 GB SSD 5 TB Instant $29.99/mo₹2,779.47/mo Buy Now
16GB Plan 8 vCPU 16 GB 100 GB SSD 5 TB Instant $59.99/mo₹5,559.87/mo Buy Now
Choose Ubuntu 24.04 on the order form. Claude Code supports Ubuntu 20.04 and newer.

Why people move Claude Code off the laptop

Claude Code on a laptop stops when the lid closes. On a server it does not.

Long tasks finish overnight

Give Claude Code a refactor, a test suite or a migration in the evening. The server keeps running while you sleep, travel or lose Wi-Fi, and the result is waiting in the morning.

Check in from your phone

With Remote Control you open the Claude app or claude.ai/code, read what the agent did and send the next instruction. No laptop, and no open port on the server.

The agent works away from your own files

On a VPS the agent can only touch what you put there: the repository and the tools it needs. Your personal documents, browser sessions and saved passwords stay on your own machine.

Memory that is really yours

The RAM in your plan is reserved for your server, so the agent, builds and test runs do not compete with other customers for memory.

One fixed IP for everything

Every server has its own IPv4 address. Point a domain at it, allow it in your database firewall, or preview the app Claude just built at the same address every day.

Break it, then rebuild it

If an experiment goes wrong, reinstall the operating system from the client area and start clean in a few minutes. Reboot is there too, with no ticket needed.

Install Claude Code on your VPS in 6 steps

Six short steps from payment to a running agent. Every command below is the official one from Anthropic's documentation.

  1. 1

    Order a 4 GB plan with Ubuntu 24.04

    Click Buy Now on a plan above and choose Ubuntu 24.04 on the order form. The server is built automatically after payment, and the IP address and root password arrive by email.

  2. 2

    Connect by SSH and create a normal user

    Log in as root once, create a user for the agent, and switch to it. Replace YOUR_SERVER_IP with the address from the email.

    ssh root@YOUR_SERVER_IP
    adduser dev
    usermod -aG sudo dev
    su - dev
  3. 3

    Install tmux and Claude Code

    tmux keeps your session alive after you disconnect. The second command is the native Claude Code installer, which also keeps it updated.

    sudo apt update && sudo apt install -y tmux git
    curl -fsSL https://claude.ai/install.sh | bash
  4. 4

    Sign in from your own browser

    Start a tmux session and run Claude Code. The server has no browser, so press c to copy the login link, open it on your laptop or phone, and paste the code back into the terminal.

    tmux new -s claude
    claude
  5. 5

    Clone your project and give Claude a task

    Clone a repository, open Claude Code inside it, and work as you would locally. To leave it running, detach from tmux with Ctrl+B then D and close your terminal.

    git clone https://github.com/you/your-project.git
    cd your-project
    claude
  6. 6

    Come back later, from any device

    Reconnect by SSH and re-attach to see the session. To steer it from the Claude mobile app or claude.ai/code instead, start Remote Control inside tmux.

    tmux attach -t claude
    
    # optional: control it from your phone
    claude remote-control

Which plan for which kind of work

Sizes follow Anthropic's published requirement of 4 GB RAM for Claude Code as of November 2026.
What you runPlan to pickWhy
One Claude Code session on a web app, API or script project4 GBThis is the requirement Anthropic lists. Enough for the agent, git, a dev server and a test run.
Two or three sessions at once, or Docker builds8 GBEach session and each container takes its own share of memory. 8 GB keeps them from pushing each other out.
Several agents plus a database and a staging copy of the app16 GBA full stack that stays up all day needs room for the database cache as well as the agents.
Telegram bots, cron jobs, small scripts without a coding agent1 GB or 2 GBFine for light programs. Too small for Claude Code, whose installer alone wants about 512 MB free.

Laptop vs a Claude Code VPS

Your laptopVPSLake VPS
Keeps working with the lid closed
Survives a dropped connectionYes, inside tmux
Reachable from your phoneOnly while it is awakeAny time
Agent can reach your personal filesYesOnly what you copy to the server
Fixed public IP for previews and webhooks
CostBattery, fan noise and a machine left onFrom $14.99₹1,389.27 a month for 4 GB

What a Claude Code VPS is

A Claude Code VPS is an ordinary Linux server in a datacenter that you use as the home for Claude Code. You connect to it by SSH from a laptop, tablet or phone. The repository, the tools and the agent all live on the server, so the work continues whether or not your own device is switched on. Every VPSLake plan is a private KVM virtual machine with reserved memory, SSD storage, full root access and its own IPv4 address.

It suits developers who hand Claude Code long jobs, people who want to check on an agent from a phone, and anyone who would rather not give an agent the run of their personal computer. If you only use Claude Code for short sessions while sitting at your desk, your laptop is enough and you do not need this.

What we do and do not set up for you

We deliver a clean server with the operating system you picked, a root password and a fixed IP. We do not preinstall Claude Code and we do not sell Claude subscriptions. You run the official installer yourself, which is one command and means you are always on the version Anthropic currently ships. If you get stuck on the server side, such as SSH access, a reinstall or a reboot, support is available by ticket, WhatsApp and Telegram seven days a week.

Memory, swap and why the small plans are not for this

Claude Code needs 4 GB of RAM according to Anthropic. The 1 GB and 2 GB plans on this page exist because they are useful for bots and small scripts, but a coding agent on them tends to be killed by the system when memory runs out, often in the middle of the install. If you already own a small server and want to try anyway, Anthropic's own troubleshooting guide suggests adding a 2 GB swap file first:

sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile

Swap is a safety net, not extra speed. For daily work the 4 GB plan is the honest starting point, and upgrading to 8 GB later keeps your files and needs only a reboot.

Signing in, Remote Control and API keys

There are three ways to authenticate Claude Code on a server. The normal one is the copy-the-link login described in the setup steps, using your Claude subscription. The second is an API key from the Anthropic Console, set as ANTHROPIC_API_KEY, which bills per use. The third is a long-lived token made with claude setup-token on a machine that has a browser.

Remote Control, the feature that lets you drive a session from the Claude app, only works with a subscription login. It does not accept API keys or setup tokens. It makes outbound HTTPS connections only, so there is nothing to open in the firewall, and Anthropic recommends starting it inside tmux or screen on a remote machine, which is what step 6 does.

Where the servers are

You choose the location on this page: Miami, Florida, Frankfurt, Germany or Amsterdam, The Netherlands. For a coding agent the location matters less than people expect, because the heavy work happens on the server and only text travels to your screen. Pick the place closest to you if you plan to type in the terminal a lot, or closest to your users if you will also host the app there. If you want a graphical desktop instead of a terminal, see Ubuntu RDP, and for a Windows machine see Windows RDP for AI coding. Using OpenAI's agent instead? The same server works as a Codex VPS.

Claude and Claude Code are products of Anthropic. VPSLake is an independent hosting provider and is not affiliated with Anthropic.

Pay the way you already pay

  • USDT, BTC & 20+ coinsvia Cryptomus
  • UPI / PhonePe / PaytmINR via Razorpay
  • Visa / Mastercardvia Paddle
  • Net banking & walletsIndia

Frequently Asked Questions

Yes. Claude Code is a command-line program that runs on Ubuntu 20.04 or newer and Debian 10 or newer, which is exactly what a Linux VPS is. You connect by SSH, run the official one-line installer and sign in with your Claude account. Nothing about it needs a screen or a desktop.
Anthropic lists 4 GB of RAM as the requirement, so the 4 GB plan is the smallest one we recommend. It handles one agent working on a normal web or API project. Pick 8 GB if you run several sessions at once, build Docker images, or run a database and a dev server next to the agent.
No. You get a clean Ubuntu or Debian server with root access, and you paste the official installer command yourself. It is one command, and you always get the current version straight from Anthropic. The exact commands are in the setup steps on this page.
No. The VPS is the computer. Claude Code itself needs your own Claude Pro, Max, Ultra, Team or Enterprise plan, or an Anthropic Console (API) account. The free claude.ai plan does not include Claude Code.
Run claude on the server. When it cannot open a browser, press c to copy the login link, open that link on your own laptop or phone, approve it, and paste the code it shows back into the terminal. The sign-in happens in your own browser, not on the server.
Yes, as long as you start it inside tmux. tmux keeps the terminal session alive on the server after your SSH connection closes. Reconnect later from any device, run tmux attach, and the session is exactly where you left it.
Yes. Start claude remote-control inside tmux on the server, then open claude.ai/code or the Claude app on iPhone or Android and pick the session. Remote Control makes outbound connections only, so you do not open any port on the server. It needs a Claude subscription login; API keys do not work for this feature.
In a sense. claude remote-control runs in server mode and waits for sessions you start from the web or the mobile app. That is the supported way to leave Claude Code on a machine and send it work from elsewhere. It is not a public web service and it does not listen on an open port.
Create a normal user first. Claude Code works as root, but its skip-permissions mode refuses to run with root or sudo privileges, and working as a normal user is safer in any case. The first setup step on this page creates that user.
Yes. Switch the price to INR with the currency button in the menu and pay by UPI, PhonePe or net banking. India is on Anthropic's list of supported countries, so Claude Code itself works with an Indian account. Our servers are in the USA and Europe, which is fine for a coding agent because the work happens on the server, not over your connection.

Give Claude Code a machine that never sleeps

Order a 4 GB VPS, paste one install command and leave your agent running. Billed monthly, cancel when you like.

Related solutions