How to run Claude Code and Codex on a VPS and control them from your phone
By Nora, Podium team. Disclosure: I work on Podium, the open-source tool in the second half of this guide. The tmux, mosh and systemd parts work without it. Podium facts come from its repository, docs and download page (version 0.3.1), checked on 1 Dec 2026. Short answer: install the agent CLIs on

By Nora, Podium team. Disclosure: I work on Podium, the open-source tool in the second half of this guide. The tmux, mosh and systemd parts work without it. Podium facts come from its repository, docs and download page (version 0.3.1), checked on 1 Dec 2026.
Short answer: install the agent CLIs on a Linux VPS, sign in to them there, and run them inside something that outlives your SSH connection. For one or two agents, tmux is enough. Once you run several agents and want to answer them from a phone, put an agent manager on the VPS. Podium is one: it runs Claude Code, Codex and other CLIs in persistent terminals on the server, gives each task its own git worktree, and has a phone view that lists which sessions need you. The agents keep working when your laptop is closed.
In every row you still pay for the VPS and for your agent subscriptions or API usage.
The agent process has to live on a machine that stays on, and your laptop becomes one of several clients.
Keeping the laptop awake works until the lid closes, the Wi-Fi changes or the battery dies.
tmux or screen on a VPS is the usual answer. You start the agent inside a session and detach, and the process keeps running when your SSH connection drops:
ssh you@your-vps tmux new -s agents # start a session, then run claude or codex inside it # detach with Ctrl-b then d, close the laptop tmux attach -t agents # later, from any machine Enter fullscreen mode Exit fullscreen mode This is simple and works well for a few agents. As the number grows, you name and track sessions yourself, and nothing tells you that an agent has stopped to wait for an answer.
mosh keeps a connection alive across sleep and network changes, which helps on a phone. It logs in over SSH and then talks over UDP, on a port between 60000 and 61000, so it needs mosh on both ends and those ports open on the server. The terminal underneath stays the same, so you still scroll and switch sessions inside tmux.
A systemd service (or systemd-run --user ) restarts processes after a reboot, and loginctl enable-linger keeps your user services running when you are logged out. That suits unattended jobs. A fully unattended run ( claude -p for Claude Code, codex exec for Codex) can't stop to ask you anything, and an interactive agent that does ask doesn't fit well in a service.
An agent manager on the VPS keeps the sessions, shows their state in one place and gives your phone something better than a raw terminal. That is what Podium does, covered below.
A phone is fine for a quick look at one session. Supervising several is harder:
Podium is an open-source agent development environment (Apache 2.0, github.com/madeinorbit/podium). You install its server on the VPS. It runs the agent CLIs you already use, in persistent terminals on that machine, and adds issues, worktrees and a phone view around them.
You need a Linux VPS you can SSH into and an account with at least one agent provider. Steps 2 to 4 happen over SSH, the rest in a browser.
Pick a route for your phone. The easiest private option is Tailscale on both the VPS and the phone. A domain with a reverse proxy that serves HTTPS also works. A Cloudflare quick tunnel is fine for a demo, but its address changes on every restart, and each joined machine loses contact until you point it at the new one.
Install the agent CLIs on the VPS and sign in to them with their own login flows. For Codex on a server without a browser, OpenAI's docs suggest device code login ( codex login --device-auth, in beta).
Install Podium. On a Linux VPS (x86_64 or ARM64), run:
curl -fsSL https://podium.do/install.sh | sh Enter fullscreen mode Exit fullscreen mode The installer downloads a signed bundle for your architecture and installs it under ~/.local/share/podium. If the podium command is not found afterwards, open a new login shell or run export PATH="$HOME/.local/bin:$PATH".
podium status podium machine list Enter fullscreen mode Exit fullscreen mode Open the server address in a browser and start a first task from the web interface, or from the terminal: podium issue create --title "README setup note" \ --description "Add a setup note to the README and keep the existing style." podium issue start your_issue_ref --agent codex Enter fullscreen mode Exit fullscreen mode Podium creates the branch and worktree and starts the agent there.
Connect your phone. Open the server's HTTPS address in the phone's browser, which takes you to the phone view. Podium's download page also describes pairing with a QR code: in Podium, open Settings, then Connected devices, then Pair a phone.
Add the page to your home screen so it opens like an app.
Close the laptop. The session keeps running on the VPS. Open Podium on your phone and check the Work list for anything waiting on you.
To run agents on a second Linux machine later, open Settings, then Machines, then Add machine, and paste the generated command on that host. You pick the machine when you start a task, for example with --machine your_machine_name.
The phone works best for short check-ins: answer, review, start the next task. For a long debugging session you will still want a keyboard.
The agents carry on. Clients attach to sessions that live on the VPS, so closing a browser tab, losing signal or shutting the laptop leaves the process running. If you stop a session yourself, Podium refuses when its worktree has unsaved changes, and a successful stop leaves a resumable session with its transcript and branch.
Only with care. A Podium server can reach repositories, terminals and agent credentials on the machines paired to it.
Podium's docs give no minimum server size, so size for the agents. Anthropic lists 4 GB of RAM or more for Claude Code, on x64 or ARM64. In Podium's own benchmark of a large workspace, the 0.3.0 server used about 330 MB of memory; each agent you run, and each build or test suite it starts, comes on top.
Disk tends to fill first. Every worktree is a checkout of your repository, and Podium keeps transcripts, logs and artifacts in ~/.podium. Watch free space, and if memory is tight, avoid running many heavy builds or test suites at the same time.
Yes. Install Claude Code on the VPS and sign in, run Podium there, and open Podium in your phone's browser. Your Claude plan and its limits apply as usual.
Yes. Podium runs Claude Code, Codex, Grok, OpenCode, Cursor and Pi. Which agents you can use depends on what is installed and logged in on the machine.
No. Setup also supports your own HTTPS reverse proxy and Cloudflare quick tunnels. Tailscale Serve is the simplest private route, and a stable reverse proxy suits a public address.
A native iOS app is in private beta and should be released publicly soon, depending on App Store review. Until then, the /mobile phone view works in the browser on iPhone and Android.
Yes. Podium doesn't replace SSH access to your server. You can still SSH in for cleanup or anything else and use Podium to supervise the agents.
They stay on the VPS. Podium keeps its database, settings, logs and transcripts in ~/.podium, and each agent keeps its own login state, for example in ~/.claude or ~/.codex. The daily anonymous usage report never includes code, prompts, transcripts or paths, and podium telemetry off turns it off.
Yes. It is open source under Apache 2.0, with no paid plan.
If you want to try it, the quickstart takes one issue through its own worktree from start to finish.
Last verified 1 Dec 2026. If something here is out of date, say so in the comments and I will fix it.
Written with AI assistance and reviewed by the Podium team.