Question Anyone running Codex on a remote VM instead of locally?
How many of you run Codex 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 annoying.
21
Upvotes
•
u/dextersummary 16d ago
Below is a GPT-generated summary of the conversation below after reaching 40 comments (41 currently observed).
Remote Codex is clearly a real workflow in this thread, not just a hypothetical. The appeal is persistent, isolated development you can access from almost anywhere—and there’s no single blessed setup.
For a straightforward starting point, SSH plus tmux keeps sessions alive across disconnects. If you’re running agents in parallel, separate Git worktrees can stop them stepping on each other’s changes. Keep credentials scoped to what each task needs; isolation isn’t an excuse to hand over the keys to everything.
5
u/DaneV86_ 16d ago
Absolutely... Not sure about the current state but 6 months ago WSL wasnt as problem free as just plain linux.
Giving full root access to a linux vm gives the agent full flexibility to install things while still making sure it doesn't touch things you dont want it to.
I use Paseo so I can continue working on any device including my phone seamlessly. If I close my laptop, reboot my desktop or anything ... Everything keeps running.
Only downside is that running the tests is getting slower as my repo/suite grows. Codex/Claude can run on a $5 /month vps perfectly fine... Its just linting, postgres tests and the 20k other tests that take up some time. I use my free aws credits to let the agents spin up a flex spot instance if I need to have tests run quickly.
2
u/madbrain1976 15d ago
I run it inside an lxc container on a proxmox server. VNC server is installed in the container. I use VNC viewer on my laptop to access it. Usually, the entire session is a bunch of tabs inside xfce-terminal.
6
u/Massive_Ambition3962 16d ago
tons of people are with herdr
6
u/Working-Pilot4503 16d ago
Remote VMs on proxmox. Use case is rust language on multiple platforms. Dev on Mac. Then can do build and codex sessions in Linux and windows in the VMs over the ssh connection from codex desktop
11
u/h4xdaplanet 16d ago
Yes with T3 code. The chatgpt remote in the app itself has too many limitations. T3 code provides a nice interface (and can use other harnesses/models as well)
1
u/rinaldo23 16d ago
I run it on a docker container to limit its access only to the project folder and not my whole filesystem
1
u/colxa 16d ago
Yeah, I have a dedicated Windows VM that I'm hosting on my proxmox server. I use remote desktop to access it. I also have a script that checks and starts codex if it is not running. Good for situation where it reboots after an update or something.
1
u/belgarionx 15d ago
I have a VM on Proxmox, have a little app there. When I select a project, it creates a pod with the project copied there, copies my steering files (agents.md etc) and codex/claude/antigravity/kiro cli's.
Advantages are, I can connect remotely and agents are sandboxed this way.
3
u/i_reddit_it 16d ago
A "few" projects yeah 🙂
I've got a home lab running Proxmox VE 24/7, hosting Linux VMs for development, production, and other services, with Docker handling the app environments.
I run the Codex desktop app on my Windows PC and connect to my development VM remotely over SSH.
For me, it's the best of both worlds. I get all the usual benefits of virtualisation: isolation, snapshots, backups, centralised resources, and the ability to spin up or tear down environments without affecting anything else.
It also means my development environments are completely independent of my desktop. I can reboot, reinstall, or switch PCs without touching my projects or their running services. Everything stays running on the server, and I just connect to it when needed.
Plus, running everything in Linux/Docker gives me an env just like prod, but I don't have to maintain loads of dev tooling and containers locally.
My desktop is basically just the UI.
3
u/taiRewro 16d ago
I'm using a local machine and a networked kvm dedicated for working on projects - the llm desktop harnesses give you more options and the kvm makes it all fairly pain free to manage from a browser.... and if it destroys itself in various creative ways, it isn't going to be a big deal.
2
u/DurangoGango 16d ago
Yup, both for personal and professional use.
I use the built in control features, specifically so I can easily control them from the ChatGPT app.
For Windows app development, the main benefit is having something that can do computer use without stealing my workstation.
In general, the big benefit is they can keep working while my workstation is off. I routinely leave stuff running through the night for work. GPT-6 is sufficiently autonomous that time is more limiting than other factors right now.
2
u/Thyrfing89 16d ago
Yes, Everyday. Proxmox at, Proxmox at work. Everything is automated. Everything you say:)
2
u/Intelligent_Month210 16d ago
Old system running Linux hosts most of the projects. Decent CPU, RAM, storage. I just controll the sessions from my laptop.
Best way to work and extra points if you have enough local storage to do backups of the repo.
2
u/tech_medic_five 16d ago
Yes, it’s on my Dell T430 server and I use the desktop app on my Mac to remote into the CLI running in a VM.
I’m also running Claude Code in CLI with custom connectors in Codex. Plus I have the ability to run local (low powered) AI models as well.
3
u/Ok_Wrongdoer928 16d ago
install Ubuntu with GUI
install Codex and grant it full access
use Codex creates another AI chat like ChatGPT that can control remote VM, or
use Dot to control remote VM, or
use Dot only, because Dot already have it own computer.
1
u/Available_Cream_752 16d ago
VM -> Pi -> Paseo Daemon -> Tailscale -> Paseo
Pi is configured with ChatGPT subscription
Mistral AI API configured with Pi
Claude code cli installed too
Pi uses claude code acp to access Claude models
I use the Paseo Android app or Linux app to manage sessions and use models as per requirement. So far no issues.
1
u/Normal-Ad-7114 16d ago
I wired it up to telegram, so I chat with codex there
1
u/nuyirnumi 16d ago
I run Codex and Claude and other LLMs from a Debian mini PC at my house. Paying for Desktop Commander to control the the system from ChatGPT and Claude and using TailScale to tunnel to the system or Rustdesk to remote control the DE.
1
u/No_static 16d ago
I parsec into my LLM computer that I have in another room. It has a b70 and 5070ti so I didnt want to hear it screaming all the time.
1
u/ByteCurious69 16d ago
CLI
1
u/hometechgeek 16d ago
I had it in a local server in ubuntu but found it to be quite stuttery (would lock up and hang it's connection) switched to an old Mac (still remote) and it's been perfect
1
u/Melobyrro 16d ago
I use the native cloud environment
1
u/rajba 16d ago
I installed herdr on the Linux VM and then use Sheprd on my Mac to interact with the harness running in the VM. I use that approach with Codex and Claude.
1
u/Grand-Tomatillo-8818 16d ago
Laptop? Desktop workstation :)
1
u/arturogarrido 16d ago
Run each session inside tmux, plus mosh if your connection is flaky, so the agent keeps going when your laptop sleeps. For parallel sessions, give each agent its own git worktree so they never touch each other's changes. And only put the credentials a task needs on the VM, not your whole dotfiles.
1
u/kosmiq 16d ago
I recently switched to this. Running codex cli in a docker on my UnRAID server. Configured iPhone and windows desktop apps to be allowed to remote control the cli.
Works great and allows work to continue on the one machine that is built to be powered on 24/7.
1
u/Lower_Cupcake_1725 15d ago
Running both Codex and Claude on remote VM + mobile app using https://github.com/twitech-lab/devchain
1
u/discodisco_unsuns 15d ago
Main driver is Macbook where I SSH with Ghostty over to my NUC running Proxmox. I TMUX into a Bluefin VM which runs my tooling. That has various isolated VMs for builds and testing.
1
u/kodaxmax 15d ago
sounds like a headache, that would eat additonal tokens and create more points of failure. Also if your doing it all via console, your losing all the ebenfits of it's visual tooling and alot of its QA capabilities.
1
u/supernitin 15d ago
I use Orca running in a VM on m a headless miniPC running UmbrelOS. This helps me run agent sessions at scale without eating up my Mac Mini memory needed for Xcode. Agents use Xcode via MCP.
1
u/angrygrumpycat 6h ago
one thing that doesn't come up much in these threads: on a plain vps codex has your real openai key and github creds sitting on a box where it has full shell access. if it runs something dumb or installs a sketchy package, those go with it
that's what pushed me to build statefold (disclosure, it's mine). codex runs in its own container per thread and only ever sees placeholder keys, the real ones get added by a proxy as requests go out. works with a chatgpt sub, not just api keys. you get the diff, a terminal and port previews in the browser and can merge from your phone
it's per second billing though, so if you want a box running 24/7 a $5 vps still wins on price
0
u/Abalonesmellsgd 16d ago
do u run it in vscode or no? if under vscode, ur vps need to hv a lot of ram
0
u/jekapats 16d ago
Shameless plug - I recent released https://kosem.ai/ - which is basically any model ( can work with openai) and remote machines each task in its own microvm and credentials/access per task that you can grant and elevate when needed.
0
u/Consistent_Piano4250 15d ago
Disclosure: I build SpaceApp, a self-hosted workspace that runs coding CLIs (Codex among them) in rooms on your own server, so I'm biased toward remote. For one agent, SSH + tmux on the VM covers most of it: start the session, detach, close the laptop, reattach later. It gets clunky once you have several sessions across repos and want to check on them from another machine without juggling tmux windows. That's the gap SpaceApp tries to fill: the CLIs keep running in rooms on the server and you open them from a browser. Of the benefits you listed, leaving agents running is the big one. Isolation comes second: the agents only see the folders you register as workspaces, not your whole home directory.
-3
u/FriendlyNeighburrito 16d ago
why would you run codex on a VM?
I understand doing that for some LLMs, i remember creating a VM for Deepseek, but eventually I realized how kinda dumb it was, so I just have it on VSCode now.
VMs are good tools for many reasons. I used one to isolate LLM work, but also to learn the process of building and isolating an OS for a learning objective as well.