This guide assumes you have already run
rmux new for a project. If not,
start with Quick Start.Claude Code
Start a persistent Claude Code session
Detach and let it work
PressCtrl+B, then D to detach from the tmux session. Or just close
your laptop entirely — the VM does not care.
Check on it later
Run multiple Claude Code instances
Codex
Any CLI Agent
RMUX workspaces are normaltmux sessions on a remote VM. Any CLI tool
that runs in a terminal works — there is nothing agent-specific about the
runtime. If it runs in a shell, it runs in RMUX.
Parallel Agents
The most powerful RMUX pattern is running multiple agents on the same project at the same time, each in its own isolated workspace.Set up parallel workspaces
Start an agent in each
Check progress without interrupting
View workspace logs without attaching:How isolation works
- The
mainworkspace uses/workspace(the shared project root). - Named workspaces use git worktrees when the project is a git repo — each workspace gets its own working tree branched from the current state.
- For non-git directories, RMUX creates copied folders instead.
Moving Changes Back
After agents finish their work, use git to review, push, fetch, and merge their branches from themain workspace or from your local checkout.
Secrets And API Keys
Agents often need API keys (for LLM providers, for example). RMUX can inject secrets into the remote environment:Overnight And Long-Running Tasks
RMUX is ideal for tasks that take hours:- Start the task — attach, give the agent a large refactoring job or full test suite, then detach.
- Go to sleep — the VM keeps running.
- Check in the morning —
rmux workspace attachto see results. The full terminal scrollback shows everything the agent did.
rmux env down when you are done to stop compute costs. The workspace
state is preserved — rmux new in the same directory will resume where you
left off.
Tips
- Use named workspaces for agents — keep
mainclean for manual work and usermux workspace new agent-namefor each agent task. - Detach, do not kill —
Ctrl+B, Ddetaches without stopping anything.exitorCtrl+Dinside the shell ends the session. - Check logs remotely —
rmux workspace logs <name> --followlets you tail output without attaching. - Expose ports — if an agent starts a dev server, use
rmux env expose 3000to get a public URL.
Read Next
Day-To-Day Workflows
The full set of workspace commands for daily use.
Environment Lifecycle
Create, stop, resume, and destroy environments.
Workspace Model
How
main, named workspaces, and tmux sessions fit together.Configuration
Backend settings, config files, and environment variables.


