YOLO Studio
AgentsGuidesDocsHome

Guide

How to run Claude Code remotely

Claude Code runs wherever its terminal runs. Move it off your laptop and long tasks survive a closed lid, several sessions stop fighting over one machine, and you can check in from any device. Here are the three common setups and what each one costs you.

Get started

Option 1: SSH into a server and use tmux

  1. 01

    Get a Linux machine

    A cloud VM or a spare box at home. Install Node.js, git and Claude Code, and sign in.

  2. 02

    Clone your repository

    Give the server its own deploy key or token rather than copying your personal SSH key onto it.

  3. 03

    Start Claude Code inside tmux

    Run tmux new -s claude, then claude. Detach with Ctrl-b d and the session keeps running after you disconnect. Reattach later with tmux attach -t claude.

This is the cheapest and most flexible option, and all of the upkeep is yours: patching the server, keeping its credentials scoped, and opening a tunnel or port whenever you want to see the app it is building.

Option 2: a dev container on a remote host

If your repository has a dev container definition, your editor can build it on a remote machine and attach to it. Claude Code then runs inside the container, which keeps it apart from the host’s other files. You still own the host, and a container shares the host’s kernel, so it is a weaker boundary than a separate virtual machine.

Option 3: a hosted cloud workspace

A hosted workspace gives you the machine without the upkeep. In YOLO Studio, each workspace is a Linux sandbox in its own virtual machine with Claude Code pre-installed. You open it from any browser, connect your Claude subscription or an API key once, and start Claude Code in a tile.

Because there is no machine of yours to protect, Claude Code there runs without permission prompts, and each extra session gets its own lane: a separate git clone on its own branch. Your running app shows in a preview tile beside it, with no tunnel to set up.

Which to choose

Your own serverHosted workspace
SetupProvision, install and secure it yourselfSign in and create a workspace
UpkeepYours: updates, keys, disk, uptimeNone
Several sessions at onceWorktrees and tmux windows by handOne lane per session, created for you
Seeing the appA tunnel or an open portA preview tile next to the agent
Full control of the machineYesWithin the sandbox

Questions

Does Claude Code keep running when I disconnect?

On a server, only inside tmux or screen; a plain SSH session ends when the connection drops. In a YOLO Studio workspace, closing the browser tab or the agent’s tile does not stop the agent.

Can I use my Claude subscription remotely?

Yes. On your own server you sign in to Claude Code there. In YOLO Studio you connect the subscription once from Agent access, and each session receives a short-lived access token.

Keep reading

Run Claude Code in the cloudGuide: --dangerously-skip-permissionsGuide: run coding agents in parallel

Try it on your own repository

Sign in with GitHub, open a workspace on your repository, and put your first agent to work in a few minutes.

Get started
YOLO Labs

© 2026 Yolo Labs, LLC

Home
Security
Docs