GuidesHosting choices

Claude Code on a VPS: tmux, Remote Control and SSH

Claude Code on an always-on server: tmux so sessions survive, Remote Control from your phone, a handover CLAUDE.md, and the security posture that keeps it sane.

August 1, 2026Updated October 6, 2026The Everpod team
The short answer

The pattern developers keep rebuilding: a small VPS, Claude Code (or Codex) running inside tmux, and SSH from anywhere, laptop or phone. Detach, and the agent keeps working; reattach from any device and the session is exactly where you left it. It works well, and the setup is simple. The part that deserves your attention isn’t tmux. It’s the security posture of a box where an agent runs with relaxed permissions.

Why people want this

A coding agent on your laptop stops when the lid closes. Put it on an always-on machine instead and you get the things a laptop can’t give: multi-hour tasks that actually finish, kicking off work from your phone on the train, and one persistent environment that accumulates context instead of starting cold. The DIY walkthroughs for exactly this setup have been circulating among developers all year.

The core pattern (twenty minutes)

For unattended scripted runs (cron jobs, CI-style tasks) the official non-interactive mode is claude -p with --allowedTools or a permission mode, and --continue/--resume to keep a thread going across invocations. Either kind can run on your own Claude plan; what the labs’ terms allow and bar on a server is in using your Claude or ChatGPT subscription on a server.

One session is the start. Several at once, each in its own git worktree with one coordinating the rest, is an orchestrator, and it is what pushes a box past 4 GB: the sessions themselves are light, the builds and browsers they start are not.

The security posture is the whole game

On a remote box, the temptation is to run the agent with permissions wide open so it never stalls waiting for you. Understand what that trade means: an agent with unattended shell access is only as safe as everything it reads (a hostile string in a webpage or dependency README is an instruction-injection attempt against it), so the machine itself must be the boundary. Concretely, this box holds only what the agent needs: no password managers, no personal browser profiles, no do-everything cloud keys; repo access via a scoped deploy key, not your identity; a spending cap on the model account; and snapshots/backups so a bad afternoon is recoverable. A first-class citizen of this setup is the assumption that the agent will eventually do something you didn’t intend. Arrange the blast radius accordingly. Claude Code’s auto mode, where interactive sessions start since version 2.1.283, is the middle ground: no prompts for routine work, with a classifier checking actions in the background. It narrows the risk; it doesn’t move the boundary off the machine. The agents’ own logins live on that machine too, and securing a VPS for Claude Code and Codex covers what each can read of the other’s.

Can the agent administer its own server?

Mostly, yes, and it’s useful. Package updates, service restarts, disk cleanups, “why is the dev server down” triage: agents handle this well when the handover file tells them the house rules. Two boundaries earn their keep: the agent administers inside the machine, but identity and access (SSH keys, firewall rules, the provider account) stay yours; and anything irreversible (destroying data, rotating keys, touching DNS) is an ask-first item written explicitly into the handover file. An agent that can rebuild its own dev environment is a feature; an agent that can lock you out of the box is a story you tell at parties.

DIY vs the hosted alternatives

First-party clouds now cover slices of this (Codex’s cloud tasks, Claude Code on the web, Anthropic’s Projects), and they’re the zero-setup answer for bursty, repo-scoped work. What they don’t give you is the thing the VPS pattern exists for: a persistent machine you own, with state, tools, and context that accumulate. That’s the same ownership trade-off that runs through the whole open-agent world, and it’s why we expect the persistent-agent-computer shape to keep winning for daily-driver use. Everpod’s developer pod is that machine: a permanent cloud computer (VPS), set up and secured for you, with your pick of Claude Code, Codex, OpenCode, Pi, Hermes and OpenClaw installed, and you as its administrator.

Run Claude Code on an always-on developer pod.

A developer pod is a permanent cloud computer (VPS), set up and secured for you, with your pick of Claude Code, Codex, OpenCode, Pi, Hermes and OpenClaw installed. Run more agents at once than your laptop can hold, and keep them working when it’s closed. From $24 a month, built in about ten minutes.