AI Coding Agent
Remote Control
Always On

Run Claude Code on CometVPS

Give Anthropic's coding agent a server that never sleeps. Install it in one command, keep sessions running in tmux, and check in from anywhere.

Why Run Claude Code on a Server?

Claude Code runs on your server while Claude itself runs at Anthropic. The VPS holds your code, tools and sessions, so no GPU is needed.

Runs While You're Away

Start a task in tmux, close your laptop, and Claude Code keeps reading, editing and testing on the server.

Steer It From Your Phone

Remote Control puts a server session in the Claude app and at claude.ai/code, over outbound connections only.

Room to Build and Test

Your laptop stays free while builds, test suites and parallel sessions run on dedicated CPU and RAM.

Setup Guide

From a fresh server to a running Claude Code session in six steps

This guide gets Claude Code running; keeping your server secure is up to you. Claude Code changes over time, so if a step doesn't match, follow the official Claude Code documentation, and read each command before you run it.

  1. Order a VPS with at least 4 GB RAM

    Claude Code needs 4 GB of RAM or more. Core VPS Basic covers one session; Supernova Blaze adds room for builds and parallel sessions. Choose Ubuntu or Debian as the operating system (Claude Code supports Ubuntu 20.04+ and Debian 10+).
  2. Create a regular user for the agent

    Connect as root with the IP and credentials from your welcome email, then create a non-root user. Running the agent as a normal user limits what a bad command can touch. From your own computer, copy your SSH key to the new user and log in as them.
    ssh root@your-server-ip
    adduser dev
    usermod -aG sudo dev
    exit
    
    # back on your own computer
    ssh-copy-id dev@your-server-ip
    ssh dev@your-server-ip
  3. Install git and tmux

    tmux keeps your session alive after you disconnect. git lets Claude Code clone, branch and commit.
    sudo apt update && sudo apt install -y git tmux
  4. Install Claude Code

    Anthropic's native installer needs no Node.js and keeps Claude Code updated in the background. It puts the claude command in ~/.local/bin but doesn't add that folder to your PATH, so add it to ~/.bashrc and reload it, then check the version. If claude still isn't found, see Anthropic's installation troubleshooting guide.
    curl -fsSL https://claude.ai/install.sh | bash
    echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
    source ~/.bashrc
    claude --version
  5. Start a tmux session and sign in

    Open a named tmux session, clone your project, and start Claude Code. On first launch it asks you to sign in. The server has no browser, so copy the login link it shows (press c, or select it), open it on your computer or phone, and paste the code the browser shows into the terminal. If pasting into the prompt doesn't work, quit and run claude auth login instead. You need a Claude Pro, Max, Ultra, Team or Enterprise plan, or a Claude Console account.
    tmux new -A -s claude
    git clone https://github.com/you/your-repo.git
    cd your-repo
    claude
  6. Detach, reconnect, and resume

    Press Ctrl+B, then D, to detach and leave Claude Code working. Reconnect over SSH any time and run the same tmux command to pick up where you left off. A server reboot ends tmux sessions. After one, start tmux again, go back into your project and run claude --continue, which resumes the last conversation in that folder.
    tmux new -A -s claude                 # reattach
    cd your-repo && claude --continue     # after a reboot

Prefer a desktop app?

The Claude desktop app can run Claude Code on this server over SSH. In its Code tab, create a new environment, add an SSH connection to dev@your-server-ip, and pick your project folder. The app installs Claude Code on the server the first time it connects, so you only need steps 1 to 3. It suits hands-on work. For long unattended runs, start Claude Code in tmux as above: with a Claude account, a task started from the app can stop soon after your computer sleeps or disconnects. Read Anthropic's guide.

Optional: drive it from your phone with Remote Control

From your project folder inside tmux, start Claude Code's Remote Control server, then open the session from the Claude app or claude.ai/code. It asks you to confirm the first time. Press the spacebar to show a QR code you can scan with your phone. Remote Control makes outbound HTTPS connections only, so there are no ports to open. It needs a claude.ai sign-in on a Pro, Max, Ultra, Team or Enterprise plan, and API keys aren't supported. On Team and Enterprise, an Owner has to turn it on first.

cd your-repo
claude remote-control

Security tip: before you skip permission prompts

If you run Claude Code with --dangerously-skip-permissions, keep the server free of anything you can't afford to lose. Give it a deploy key or fine-grained token scoped to the repositories it needs, never your personal SSH key, keep production secrets off the box, and allow only SSH through the firewall. Backups are available as a paid add-on, and you can reinstall the OS from the control panel at any time.

sudo apt install -y ufw
sudo ufw allow OpenSSH
sudo ufw enable

For teams: self-hosted environments

On Claude Team and Enterprise plans, Anthropic's self-hosted environments (public beta) run Claude Code cloud sessions on runners you host. Runners only make outbound HTTPS connections, so a CometVPS server can host one. Read Anthropic's guide.

Recommended VPS Plans

Choose a server for Claude Code based on how many sessions you run at once

One Agent

Core VPS - Basic

$14/mo

2 vCPU, 4GB RAM, 60GB NVMe

Meets the 4 GB RAM minimum that Anthropic and OpenAI list for Claude Code and Codex. Good for one agent session at a time on small and medium repositories.

Recommended
Builds & Parallel Sessions

Supernova VPS - Blaze

$32/mo

4 Ryzen Cores, 8GB DDR5, 100GB NVMe

Meets OpenAI's 8 GB recommendation for Codex, with room for two or three agents plus language servers, test suites and Docker builds on fast Ryzen cores.

Agent Fleet / Team Server

Supernova VPS - Flare

$58/mo

6 Ryzen Cores, 16GB DDR5, 200GB NVMe

Room for four or more agents, each in its own git worktree, alongside heavy builds and test suites. Also works well as one shared server for a small team.

Ready to Run Claude Code 24/7?

Launch a server in minutes and keep your agent working while you're away from your desk.