Skip to main content

Guide ยท Remote dev boxes

Where to Run AI Coding Agents 24/7: Remote Dev Boxes

Last reviewed

We earn commissions when you shop through the links below.

A coding agent that runs for an hour should not stop when you close your laptop. The usual answer is a machine that stays on: start Claude Code or Codex inside tmux, detach, and check back over SSH from a laptop or phone. The real choice is who owns that machine. Weigh three things: whether sessions survive while you are away, how easy it is to reach from anywhere, and where your API keys and repo credentials live, since a box you control keeps them off the laptop you carry around.

Quick pick

Your repos are on GitHub and you want a box per repo
GitHub Codespaces
Hand off a task and review a pull request later
Codex cloud or Claude Code on the web
A company platform for developer and agent workspaces
Coder or Ona
Your own always-on virtual machine for tmux sessions
DigitalOcean Droplets or Hetzner Cloud
Sandboxes your own code creates for agent runs
Daytona
You already have a spare computer at home
A home machine on Tailscale

The options, and when to use each

GitHub Codespaces

GitHubdev containers

Use it for: Your code lives on GitHub and you want a cloud dev environment per repo, set up from a dev container config, that you open in the browser, VS Code or over SSH with the GitHub CLI.

Tradeoff: Codespaces stop after an idle timeout, so they suit working sessions more than an agent left running overnight.

Claude Code on the web

Anthropiccloud sessions

Use it for: You use Claude Code and want sessions that run in Anthropic's cloud environment, started from the web, the phone app or the terminal, and moved between cloud and local with --cloud and --teleport.

Tradeoff: You work inside Anthropic's environment and setup, not a machine you can shape freely or reuse for other tools.

OpenAI Codex cloud

OpenAIbackground tasks

Use it for: You use Codex and want to hand off tasks that run in the cloud in the background while you do something else.

Tradeoff: Tied to Codex; you can't attach your own tmux session or keep other long-running tools on it.

Ona (formerly Gitpod)

dev environmentsagents

Use it for: Your team wants managed, standardized dev environments with agents built in. Gitpod is now called Ona.

Tradeoff: A platform with its own way of working; heavier than one person needs to keep a single agent session alive.

Coder

self-hostedopen source

Use it for: You want open source, self-hosted workspaces where developers and AI agents work on your own infrastructure, reachable over SSH.

Tradeoff: You run the control plane and the infrastructure underneath it, which pays off for a team more than for one developer.

Daytona

sandboxesSDK

Use it for: You are building something that creates, runs commands in and deletes sandboxes from code, for example one sandbox per agent task.

Tradeoff: An API for short-lived sandboxes rather than a persistent box you SSH into and leave a tmux session running on.

DigitalOcean Droplets

virtual machineSSHalways on

Use it for: A Linux virtual machine that stays on: SSH in, install Claude Code or Codex, run them in tmux, and keep your API keys on the server instead of your laptop.

Tradeoff: You maintain it: updates, firewall, SSH keys and backups are your job, and it bills while it runs whether or not an agent is busy.

Hetzner Cloud

virtual machineEurope

Use it for: The same plain virtual machine setup, from a provider many developers pick for cloud servers in Europe.

Tradeoff: Same upkeep as any server you run yourself; check which locations suit you and your users.

Home machine with Tailscale

your hardwareprivate network

Use it for: You have a desktop or mini PC at home: put it on Tailscale and SSH in from your laptop or phone without opening ports to the internet.

Tradeoff: Power cuts, sleep settings and home internet outages stop your agent, and the secrets now live on a machine in your house.

Skills that use these tools