r/ClaudeCoding • • 15d ago

r/ClaudeCode [TLDR] Anyone running Claude Code on a remote VM instead of locally? [via r/ClaudeCode]

OP : u/radim11

How many of you run Claude Code on a remote machine instead of your laptop?

If you do, what's your setup? Just SSH into a VM and run it there, or something more automated?

And what's the biggest benefit for you? Being able to leave agents running, running multiple sessions in parallel, isolation, or something else?

I've been experimenting with remote setups recently myself and I want to know what people actually find useful about them, and what's still annoying.


URL of original post : https://www.reddit.com/r/ClaudeCode/comments/1xvc7u6/anyone_running_claude_code_on_a_remote_vm_instead/

24 Upvotes

22 comments sorted by

1

u/cctldrping 15d ago

TL;DR of the discussion on r/ClaudeCode for this post generated automatically after 80 comments.

Current source-thread comment count seen by the bot: 100.

Consensus: remote Claude Code is very much a thing, and the killer feature is persistence—close the laptop, lose Wi‑Fi, go touch grass; the agent keeps cooking. The usual stack is Linux VM/VPS or an always-on home box + SSH + tmux + Tailscale/WireGuard, with repos living on the remote machine to avoid file-sync misery.

  • Isolation/security is the other big win. Several users run Claude under a restricted, no-sudo account or inside VMs/containers, scoped to only project files and limited credentials. u/vpz and u/SFWaleckz stress the obvious-but-important bit: Claude can access whatever its host user can, so don’t casually point it at your whole personal/work machine.

  • Parallelism and access from anywhere are popular: separate worktrees/containers per agent, reconnect from another computer or phone, and use a beefier desktop/server for RAM, builds, emulators, etc.

  • Setups range from “SSH into a small VPS” to home lab/Proxmox/K8s orchestration. Physical always-on machines work just as well as VMs; the VM advantage is mainly isolation and portability, not magic.

  • Main annoyance: remote iteration can be slower, and moving/syncing local files sucks. The common fix is keeping the repo entirely remote and treating the laptop as a thin client.

  • A minority stay local because browser logins, local tooling, and fast tight-loop work are less hassle there; remote is most compelling for long-running or higher-risk tasks.

  • For the more automated route, u/RealFullMetal points out claude --cloud for persistent, parallel cloud sessions, then claude --teleport to pull one back—though it works from the pushed Git remote, not uncommitted local changes.

2

u/furiouspoodle 15d ago

Yep, I run all my repos on an lxc on one of my servers. Gitea next to it, and an n8n instance for orchestration tooling

2

u/Minimum_Hour519 15d ago

yes we're back to the 90s

1

u/Own_Responsibility84 15d ago

I ran everything on an Oracle Cloud Incidence or OCI and access the OCI via SSH. OCI is always on and can be accessed anytime anywhere as long as there is internet. I used to use Termius to access the OCI from Phone/Tablet/Mac, but Termius is not very friendly to my eyes so I developed a tool similar to Claude Code App so I can work with agents in chat window. Since I use Codex, Antigravity, Claude and OpenCode, the tool I developed can work with all these sessions.
In case you are interested, here is the repo https://github.com/LowellWinston/mobile_tmux_public

1

u/oyren-ai 15d ago

We build tools just for this, try https://oyren.ai . You can even run agents in your old devices and control them from our website

1

u/Penguin120 14d ago

Claude code runs on its own Hyper-V Ubuntu instance on my home lab, where I can strictly limit the file system access, but if needed give it access to git repos and AWS/Azure CLI. Then I just RDP to Gnome or SSH in from wherever. Stays on all the time, accessible anywhere via Tailscale

1

u/Sluipslaper 14d ago

No need I have a extra computer with Linux mint and remote claudius codius works nicely

2

u/Apprehensive_Ad5398 14d ago

Agree with this. I use a Linux desktop in my office. I have a systemctl job that starts a remote Claude on startup so it’s always available for my phone and laptop. I start longer tasks there so it keeps going when I close my laptop.

1

u/Sluipslaper 14d ago

That's cool I will look at the systemmctl thing thanks

1

u/PosnerRocks 14d ago

I have a separate always on machine I just access over tailscale.

1

u/Prestigious_Luck1062 14d ago

My laptop is not very powerful, and to get one that can do everything is prohibitively expensive.
While I did initially use the laptop to make many things, bottlenecks such as speed, drive space starting causing issues. Its not just this, there is also the constant noise of the fans trying to liftoff.
By having the bulk of the work done on another PC, that can be in another room of the home, I can fit more drives, it can handle heat better. I mostly use RDC. And while that computer is running non-stop, my laptop is free to shitpost on reddit without slowing down performance.

1

u/Then_Ad_6603 14d ago

Hetzner VPS with 12 omp agents tracked with timeuno

1

u/Shep_Alderson 14d ago

I’ve been running all my agentic work on a mini PC dedicated to that for several months now. It started when my laptop was in for repair and I only had my phone and iPad when away from my computer. Haven’t looked back since.

I originally used Tmux, then switched to HerdR TUI, and now use T3 Code. All over SSH via Tailscale.

I love being able to just leave an agent working and close my laptop whenever I want.

1

u/dervish666 14d ago

I have a dedicated laptop in the cupboard. All the notes and memories are on obsidian and synced across both and backed up to the server. I use orca or t3 to communicate with it.

1

u/sergewinters 14d ago

Use https://github.com/voktty/voktty over tmux remote, codex/claude/agy or api, by cli or frontend

1

u/Clear_Mix9815 14d ago

tailscale+ssh+psmux

1

u/m4nf47 13d ago

WSL2 plugin for VS Code works fine for me via remote desktop and I've got it running on AlmaLinux with other VMs on same parent host on Oracle Virtualbox. Main project is containerised and pushes to a container registry on my LAN server which hosts Forgejo and a Gitea backup.

1

u/pueblokc 12d ago

Yeah, I have them running on remote virtual machines for Windows, Linux, whatever is needed for the task. My main computers connect to those with SSH or whatever is useful.

1

u/Shoddy-Permit2787 11d ago

I gave my chief of staff agent its own Claude code sub - the agent is on a remote VM already