← Back to context

Comment by andrewchambers

13 hours ago

I've recently had great success running codex in a regular qemu VM and using codex remote control to talk to it from my phone.

Honestly works extremely well as a personal assistant.

I can see why turning it into an API makes sense, just be aware you might not need to lock yourself in if you can setup your own VMs.

The key here is that they are _not_ just turning "running codex on a VM" into an API. Their harness is running outside a VM, interacting with a VM when needed. See the diagram in their post. This allows them to scale the agent runs independently from the VMs. That's why they call it "managed Codex harness", it's a different version than what you run.

Yes, I do the same with Claude Code. Create an instance on the server for a project and then can create sessions from any device, close my laptop while claude code keeps working, etc. without losing the convenience of dedicated apps.

I do the opposite. I have a Slack bot that communicates with an app on my Mac mini that dispatches agents for tasks. It knows all my projects and also has a scheduler that uses the Herdr API. That way I can have things running on my Claude/Codex subs at home 24/7.

Setting up all my code, environment, context, etc in the cloud on VMs seemed like a lot so instead I send back tasks to my Mac mini(s) that are running at home.

Yep I run `claude remote-control` as daemons (systemd/launchctl) on whatever paths/repos I wanna be able to create a session from on-to-go.

Works really well and is a great use case for work laptops. Same shell, same memories, same sessions

I've been running Hermes inside a remote docker container connected to Slack bound to a Codex account. It's actually pretty great, I prefer this approach for a lot of things. Because it's in a Docker container I have 100% control over the configuration. It may do some crazy stuff, but I know it's not going to start exfiltrating my AWS SSO tokens or SSH keys from my laptop.

I've done something similar by running pi within an xmpp wrapper on my server, so I can talk to it from any phone or computer. Works super well.

Do you have 1 long running session?

  • Considering the harness needs to be running how else would this work?

    Pretty easy these days with old school tools like tmux but more modern tooling like herdr [0] is really the path you'd want to take.

    [0] https://herdr.dev/

  • Codex remote control serve can run continuously.

    Sometimes start a new chat in the phone app, sometimes just add to the main one. Both seem to work ok.

    If I want the agent to wait for something I need to start a new chat in the iphone app.