Inter-office memo
- To
- Everyone who wants a coding agent running on a server
- From
- Mo, Chief Executive
- Date
- November 18, 2026, 7:46 PM CST
- Re
- Running Claude Code and Codex on a VPS or home server
How to run Claude Code and Codex on a VPS or home server in 2026: 9 ways compared
If your code is on GitHub, Claude Code’s cloud sessions and Codex Cloud need no server, from $20 a month. On your own VPS, with the 4 GB of memory Claude Code asks for, run the CLI in tmux over SSH and use Remote Control from your phone, or connect the Claude or ChatGPT app over SSH. Paseo and Orca run any agent on a server for free; Enjoy runs every lab’s agent on a Mac mini at home.
Disclosure: Enjoy is our product. We checked every way below against its maker’s own pages on November 18, 2026, and we say where another way is the better pick, which on a rented server is most of them.
Why run an agent on a server
Claude Code and Codex work on the computer they run on, so when a laptop sleeps or leaves the house, the agent stops with it. A computer that stays on fixes that: a VPS you rent, or a Mac mini or desktop at home. The agent keeps working while you’re away, you check in from your laptop or phone, and its commands run on that machine instead of yours.
The labs document it. Anthropic’s desktop app runs Claude Code “on a remote machine you connect to over SSH, such as your own servers, cloud VMs, or dev containers,” and OpenAI’s lets you “add remote projects from an SSH host and run chats against the remote filesystem and shell.” Antigravity’s app added the same on November 17.
Whichever way you pick, the server needs three things:
- Enough memory. Claude Code’s system requirements are “4 GB+ RAM, x64 or ARM64 processor,” on systems such as Ubuntu 20.04+, Debian 10+ and Alpine Linux 3.19+.
- A sign-in that works without a browser. Both agents have one, below.
- A way to outlive your connection. Anthropic’s advice for a terminal on a remote machine is to “start it inside
tmuxorscreento keep the session running after you disconnect from SSH.”
Nine ways compared
| Way | Best for | Where the agent runs | Price, checked November 18, 2026 | Works with |
|---|---|---|---|---|
| A VPS, over SSH in tmux | Full control, on Linux | Your VPS | The software is free; a VPS with 4 GB of memory is $24 a month at DigitalOcean | Any agent with a command line |
| Remote Control, for Claude Code | Steering a server’s Claude session from your phone | Your VPS or home server | Included from Claude Pro, $20 a month | Claude Code |
| SSH in the Claude desktop app | Claude Code on a server, in an app | Your server, installed for you | Included from Claude Pro, $20 a month | Claude Code |
| SSH hosts in the ChatGPT desktop app | Codex on a server, in an app | Your server | The Codex CLI comes with ChatGPT Plus, $20 a month, and up | Codex |
| Cloud sessions, for Claude Code | No server to look after | Anthropic’s cloud | Included from Claude Pro, $20 a month | Claude Code |
| Codex Cloud | No server to look after | OpenAI’s cloud | Included from ChatGPT Plus, $20 a month | Codex |
| Paseo | Several agents on a server, from a phone app | Your server, as a daemon | Free | Claude Code, Codex, OpenCode, Pi, OMP, Antigravity, Muse Code, and ACP agents |
| Orca | A desktop app driving agents on a server | Your server, as a Remote Orca Server, in beta | Free | 41 in its docs, Claude Code and Codex among them |
| Enjoy | Every lab’s agent on a Mac mini at home, from your laptop or phone | A Mac, Windows PC or Linux computer with a desktop | A monthly subscription, free for 7 days (pricing) | Claude Code, Codex, Grok Build, Antigravity, Muse Code, OpenCode |
Prices are per month as each maker lists them, before tax. A VPS bills separately from your Claude or ChatGPT plan, and every way but the two clouds needs each agent installed and signed in on the server itself.
A VPS, over SSH in tmux
Best for: full control of a Linux machine, with any agent that has a command line.
Rent a server, connect over SSH, install the agent, and start it inside tmux so it outlives your connection. For Claude Code, that’s Anthropic’s native installer:
curl -fsSL https://claude.ai/install.sh | bash
tmux new -s claude
claude
For Codex, OpenAI’s standalone installer is curl -fsSL https://chatgpt.com/codex/install.sh | sh. Detach from tmux with Ctrl-b, then d, and tmux attach -t claude brings the session back from your next SSH connection.
Signing in without a browser is the step that trips people up:
- Claude Code. “If the browser doesn’t open automatically, press
cto copy the login URL to your clipboard, then paste it into your browser,” Anthropic’s authentication page says, and “If your browser shows a login code instead of redirecting back after you sign in, paste it into the terminal.” For scripts,claude setup-tokenmakes “a one-year OAuth token” to set asCLAUDE_CODE_OAUTH_TOKEN. It “requires a Pro, Max, Ultra, Team, or Enterprise plan” and “can only make model requests, so it can’t establish Remote Control sessions.” - Codex. On a remote or headless machine, OpenAI’s authentication page says to “prefer device code authentication (beta).” Turn it on in ChatGPT’s security settings, run
codex login --device-authon the server, then “Open the link in your browser, sign in, then enter the one-time code.” You can also copy~/.codex/auth.jsonfrom a computer where you’ve signed in, but “Treat~/.codex/auth.jsonlike a password: it contains access tokens.”
To reach the server from anywhere without opening it to the internet, Tailscale’s Personal plan is “Free forever,” for “Up to 6 users.” To edit files on the server as well, VS Code’s Remote - SSH “allows you to open a remote folder on any remote machine, virtual machine, or container with a running SSH server,” and the agent runs in its terminal there.
Price: the agents’ command lines are free to install. Claude Code comes with Claude Pro, $20 a month, and up, and the Codex CLI with ChatGPT Plus, $20 a month, and up. The server is extra: DigitalOcean’s Basic Droplet with 4 GiB of memory and 2 vCPUs, the least that meets Claude Code’s requirement there, is $24 a month.
Watch for: you look after the server, its updates and its security, and the agent can do whatever its user account there can. A Claude sign-in also runs out: Claude Code warns “Your login expires in 3 days · run /login to renew,” and Anthropic says “Renewing early matters most for sessions that run unattended.” And you work in a terminal, unless you add one of the ways below.
Remote Control, for Claude Code
Best for: a Claude Code session on your server that you steer from your phone or any browser.
Remote Control “connects claude.ai/code or the Claude app for iOS and Android to a Claude Code session running on your machine,” and that machine can be your server. Start Claude Code inside tmux with claude --remote-control, or run claude remote-control for server mode, which Anthropic recommends “To run multiple concurrent sessions from a single process.” Its docs are plain about servers: “If you run claude from a terminal on a remote machine, start it inside tmux or screen to keep the session running after you disconnect from SSH.”
Price: Remote Control is “available on Pro, Max, Ultra, Team, and Enterprise plans. API keys are not supported.” Claude Pro is $20 a month, or $17 billed yearly, and Max is $100, says Anthropic’s pricing.
Watch for: it needs a claude.ai sign-in on the server, not a setup-token token, and “A Remote Control session that outlives the login disconnects until you sign in again.” In server mode, if the server can’t reach the network, “Claude Code gives up after roughly 10 minutes and the claude remote-control process exits.” It runs only Claude.
SSH sessions, in the Claude desktop app
Best for: Claude Code on a server, in Anthropic’s app instead of a terminal.
In the Code tab of the Claude desktop app, add an SSH connection with “user@hostname or a host defined in ~/.ssh/config,” and “Desktop installs Claude Code on the remote machine automatically the first time you connect.” The remote machine “can run Linux, macOS, or Windows”; a Linux or Mac one needs “an x86_64 or arm64 processor” and “an SSH server with SFTP.” Claude Code then runs “under a background helper that Desktop installs there, so it doesn’t need your SSH connection to keep running.” Close the laptop, and “the task goes on until it finishes, needs you, or reaches one of the limits.”
Price: included with Claude Code, from Claude Pro at $20 a month. The app runs on Mac and Windows, with Linux in beta.
Watch for: “If you sign in to Desktop with a Claude account, don’t count on a task to run overnight.” Desktop renews the task’s sign-in “only while Desktop is running, connected, and signed in,” and the time left after you disconnect “can be only a few minutes.” On a server that ends your processes when SSH closes, “the running task ends,” and “if Desktop doesn’t connect for 30 days, the helper stops.” It runs only Claude.
SSH hosts, in the ChatGPT desktop app
Best for: Codex on a server, in OpenAI’s app.
“In the ChatGPT desktop app, add remote projects from an SSH host and run chats against the remote filesystem and shell,” says OpenAI’s remote connections page. Add the server to ~/.ssh/config, install and sign in to Codex there, then turn the host on under Settings > Connections and choose a folder. The app starts Codex on the server over SSH, so “Make sure the codex command is available on the remote host’s PATH in that shell.”
The same app can also make a computer at home reachable from your phone. OpenAI suggests “a dedicated always-on Mac or Windows PC when you want ChatGPT to stay reachable for longer-running work.”
Price: the server needs the Codex CLI, which ChatGPT Plus, at $20 a month, adds along with “Codex on the web, in the CLI, in the IDE extension, and on iOS.” Pro is from $100.
Watch for: OpenAI’s page doesn’t say whether a chat keeps running on the server once the app disconnects. It asks you to hold the server to “the same security expectations you use for normal SSH access.” And remote access from the phone “supports hosts running the ChatGPT desktop app on macOS and Windows,” which a Linux VPS isn’t. It runs only Codex.
Cloud sessions, for Claude Code
Best for: handing Claude a task with no server to look after.
“A cloud session is a Claude Code session that runs on cloud infrastructure instead of on your machine,” Anthropic’s docs say, and “The session keeps running after you close your laptop.” Start one at claude.ai/code, in the Claude app, or from a terminal with claude --cloud and a task. It clones your repository from GitHub; a repository with no remote is uploaded instead, and the upload “must be under 100 MB.”
Price: “Cloud sessions are available on Pro, Max, Ultra, and Team plans.” Each one “counts toward your plan’s usage limits alongside the rest of your Claude and Claude Code usage, and there’s no separate charge for the cloud VM.”
Watch for: the VM isn’t your server. Your first environment starts with “Limited network access,” and “Cloud sessions stop after a period of inactivity and the session’s VM is reclaimed,” which loses “background work that was still running or pending.” Pull requests “require GitHub.” It runs only Claude.
Codex Cloud
Best for: handing Codex a task with no server to look after.
“Give Codex coding tasks to work through in the cloud, from investigating bugs to building features,” says OpenAI’s Codex Cloud page, and “Each task has its own workspace and can keep working while your computer is asleep.” Start one on the web or in the desktop app with Work in > Cloud, on your phone, or from a terminal, where “codex cloud exec submits a task directly.” A task can start with no repository, or “check out any repository available to Codex through your connected GitHub or GitLab account.”
Price: from ChatGPT Plus, at $20 a month; Pro is from $100. “Local messages and cloud chats share your plan’s usage allowance,” and “Cloud tasks may use more of your allowance than local messages.”
Watch for: a chat already running on your computer or server can’t move there, since “handoff to a Codex cloud environment isn’t supported.” It runs only Codex.
Paseo
Best for: several agents on a server, steered from a phone app, free.
Paseo’s pitch is “Run many coding agents at once, on any machine.” Its README has a way in “For a server, a VM, or any machine without the desktop app”: install its command line and start the daemon.
npm install -g @getpaseo/cli
paseo
Then pair the desktop app, the web app, or its phone app, which is “native on iOS and Android.” “Paseo starts, then asks whether to enable the end-to-end encrypted relay for device pairing,” and without the relay you “connect directly over TCP, Tailscale, or another VPN.” It has its own integrations for Claude Code, Codex, OpenCode, Pi, OMP, Antigravity and Muse Code, and runs more agents through ACP.
Price: free. “Paseo is free and open source,” under the Apache 2.0 license.
Watch for: each agent has to be installed and signed in on the server, since the daemon runs the agents there. If you skip the relay and connect over the network, set the daemon’s password in its configuration: “When set, all HTTP and WebSocket clients must authenticate.”
Orca
Best for: a desktop app on your laptop that drives agents on a server.
Orca is “Free and open source for macOS, Windows, and Linux.” Its Remote Orca Server lets you “Keep Orca running on a machine you control—an old laptop, Mac mini, home server, cloud VPS, or team box,” then “Pair your laptop, browser client, or phone to that runtime.” On a server, orca serve “starts the Orca runtime without opening the desktop window,” and “agents keep running when the client laptop sleeps or disconnects.” Or, with its SSH worktrees, it puts “Agents and git worktree” on the remote machine, while “the editor, diff, and UI stay on your laptop.” Its docs list 41 agents “Orca ships with out of the box,” Claude Code and Codex among them.
Price: free. Orca “does not sell managed VPS hosting,” so the server is yours to pay for.
Watch for: “Remote Orca Servers are beta.” Its docs say to install and sign in to each agent on the server, because a sign-in on your laptop doesn’t carry over, and to keep Orca’s port off the public internet. On Linux, its background service “stops at logout unless lingering is on.”
Enjoy
Best for: every lab’s agent on a Mac mini or desktop at home, reached from your laptop, any browser and your phone.
Enjoy runs Claude Code, Codex, Grok Build, Antigravity, Muse Code, and local models through OpenCode, on Mac, Windows and Linux, on the plans you already have. It isn’t a way to use a VPS; it’s a way to skip one. Its plan is built for it: “Run your agents on another computer, like a Mac mini at home, and control it from your laptop or phone.”
- No SSH, tmux or VPN to set up. Your laptop connects to the Mac mini’s projects “the same way a phone or browser does,” and that “costs nothing extra.” So do any browser and the iPhone app, and “every connection between it and your computer is encrypted end to end.”
- A computer that stays up. Set Keep awake to Always, and Enjoy keeps the computer awake “for as long as Enjoy is open.”
- Work on a schedule. Scheduled workflows run on that computer while it’s awake with Enjoy open, so on a Mac mini that never sleeps, they run around the clock.
- Through usage limits. When an agent runs out of usage, Enjoy switches to another of your accounts that still has usage, or waits for the limit to reset, then continues, and you can switch the conversation to another lab’s agent.
Price: Enjoy is one monthly subscription, and the first seven days are free, with a card to start. It includes your phone, any browser and one computer, so a Mac mini as that computer, reached from your laptop, costs nothing more; each other computer that runs projects of its own costs extra each month. See pricing.
Watch for: Enjoy is a desktop app, not a server. It installs on a Mac, a Windows PC or a 64-bit (x64) Linux computer, and on Linux “closing the Enjoy window quits Enjoy,” so a VPS you reach only over SSH isn’t a fit. The computer has to be “on, online, and running Enjoy, signed in to your account,” Enjoy runs nothing in the cloud, and scheduled times missed while it’s off are “skipped, not made up.” Enjoy isn’t open source, and it’s a monthly subscription on top of your AI plans once the free week ends.
When to stay with your own computer
You may not need a server at all. If the agent works while you’re at your desk, keep the laptop plugged in and awake, as our laptop guide explains. If the code is on GitHub and you want to walk away, a Claude Code cloud session or Codex Cloud is already in your paid plan and needs nothing else.
A server earns its keep when the work needs your own tools, data or hardware for hours at a time, or should run while you sleep. Pick a VPS when you want Linux on a machine you can rebuild, and a Mac mini or desktop at home when you want the labs’ desktop apps, or Enjoy, on a computer you own.
How we compared
We read each maker’s docs, install, pricing and download pages on November 18, 2026, and every one is linked below. We quote their words for each limit, and we don’t count features a maker hasn’t documented. VPS prices vary by provider and region, and DigitalOcean’s is an example, not a recommendation. These tools change with each release, so we recheck this guide against its sources at least once a month, and the date at the foot of the page says when we last did.
14.Questions.
Can I run Claude Code on a VPS with my Claude Pro or Max plan?
- Yes. Anthropic’s own docs describe Claude Code running over SSH on “your own servers, cloud VMs, or dev containers,” signed in with a Claude account, and Claude Code comes with Pro, Max and Ultra. A Claude sign-in expires, though, and Claude Code warns three days before, so renew it with /login for sessions that run unattended.
How do I sign in to Claude Code on a server without a browser?
- Run claude over SSH. If no browser opens, Anthropic says to press c to copy the login URL and paste it into your browser, then paste the code your browser shows back into the terminal. For scripts, claude setup-token makes a one-year token for CLAUDE_CODE_OAUTH_TOKEN, but it “can’t establish Remote Control sessions.”
How do I sign in to Codex on a headless server?
- Use device code sign-in, in beta. Turn it on in ChatGPT’s security settings, run codex login --device-auth on the server, then open the link in a browser anywhere and enter the one-time code. OpenAI also documents copying ~/.codex/auth.json from a computer where you signed in, which it says to treat “like a password.”
Does Claude Code keep running when I disconnect from SSH?
- Only if you start it inside tmux or screen, as Anthropic advises, “to keep the session running after you disconnect from SSH.” The Claude desktop app’s SSH sessions run under a helper on the server and keep going while the app is disconnected, until their sign-in expires, which can be “only a few minutes.”
Should I use a VPS or a Mac mini for coding agents?
- A VPS suits Linux work on a machine you can rebuild, and you pay for it monthly; Claude Code asks for 4 GB of memory, which is $24 a month on DigitalOcean. A Mac mini at home runs desktop apps too, so the ChatGPT app’s remote access, Orca, Paseo and Enjoy can run on it and be reached from your phone.
Can I reach an agent on my server from my phone?
- Yes. Remote Control puts a Claude Code session on your server in the Claude app and at claude.ai/code, and Paseo and Orca have phone apps that pair with a server. Enjoy’s phone and web apps reach a Mac, PC or Linux desktop running Enjoy, not a server you reach only over SSH.