Cloud sessions
Run a governed agent in the cloud
A cloud session runs a vendor agent inside a persistent cloud workspace instead of on your Mac. The workspace keeps your checkout and installed dependencies between sessions, sleeps when idle and wakes when you dispatch. Your vendor key stays sealed in the cell, egress is deny by default, and nothing reaches your repository until a human approves it.
Off until a cell turns it on
An operator opts in, per cell
Cloud sessions run only on a hosted MUON cell, and only when that cell sets MUON_CLOUD_SESSIONS=1 and MUON_CLOUD_PROVIDER. An operator can choose a cloud target directly or pair an attached coordinator and grant it cloud agent rights.
What a cloud session is
Each cloud workspace is persistent and yours: one per user and repository binding. The same MUON runner you use on your laptop runs inside it, under the same lease, review and approval gates. A workspace sleeps after it has been idle (15 minutes by default) and wakes when you dispatch to it; your sessions are turns inside it.
- Persistent: the checkout, installed dependencies and task worktrees stay on the workspace's volume between sessions.
- Sleeps and wakes: with no cloud job running it sleeps; a new cloud dispatch wakes it.
- Watchable: a live activity stream of text, reasoning, tool activity and console output. It is read-only, because typing into a governed agent would bypass its approvals.
- Phase 1 lanes: claude-code and codex, on your own API keys.
How it stays safe
Your vendor key never enters the workspace
Your vendor API key is sealed in the cell. For each job the agent gets a short-lived gateway token scoped to that job's lane; the cell's model gateway swaps it for your key on the way to the model, and the token is revoked when the job ends. The gateway refuses requests that would run code or reach the network from the model provider's side, such as provider-run containers, remote tool servers and background runs; web search and tools the agent runs inside the workspace are allowed. The agent can spend through the gateway while its job lives, within the spend cap, but it never holds the key.
Deny-by-default egress
A workspace reaches only a fixed allowlist: the cell, GitHub, the Node and Python package registries, and for the claude-code lane its vendor's hosts. On the local Docker provider every workspace sits on an internal network whose only way out is its own egress proxy sidecar.
Human approval before any pull request
Results leave the workspace as a git bundle. The cell recomputes the review in its own copy of the repository and certifies it against its own code graph, never one the workspace built, then runs the same gates a local merge does, including an independent review. Only after a human approves does the cell publish: one squash commit of exactly the reviewed tree, on a muon/<taskId> branch, for the one pinned repository, and a pull request. It never overwrites commits a human pushed to that branch, and it refuses changes to .github/workflows. Your default branch changes only when a human merges the pull request.
Credentials die before a workspace sleeps
Before a workspace sleeps, every workspace credential is revoked, and a scan wipes token-shaped files from the runner's and the vendor CLIs' state and from untracked files; files your repository tracks are never modified. Each workspace has a spend cap ($25 per calendar month by default) that fails closed. muon cloud kill-all halts the whole cell: it revokes every credential, interrupts running jobs and stops every workspace, and nothing wakes until an operator clears the halt and releases each workspace.
How to start
- 01
Pick a provider
The local Docker provider needs no sandbox account and runs on a machine you own, which makes it the simplest way to try cloud sessions; it is not a boundary between tenants. The hosted sandbox providers are Agent 37 and Blaxel; Blaxel stays off until a live egress probe passes.
- 02
Set a vendor key on the cell
An operator runs
muon cloud keys set claude-code(orcodex) at a terminal and types the lane name to confirm. The key is read from a hidden prompt, never from the command line, and is never printed or logged. Keys are set for the whole cell by default. - 03
Dispatch into the cloud
The operator adds
--cloudto a dispatch, or uses the composer's Local/Cloud switch on the desktop once a cloud cell is configured. A paired coordinator with agent rights can also dispatch from MCP. The workspace wakes, fetches your repository with a fresh read-only token and starts the agent. - 04
Watch, then approve
Follow the live stream with
muon cloud watch <jobId>. When the turn is done, review and approve its merge on the cell the way you approve a local one; then the pull request opens.
Operators running cloud workspaces locally with Docker have a command-by-command runbook in the repository at docs/runbooks/cloud-workspaces-local.md. It covers the prerequisites, the cell's environment, dispatching, watching and approving, and kill-all, halt clear, reset, sleep, delete and troubleshooting.
Pair a local session with your cloud workspace
- 01
Check your workspace
Start with a live attached coordinator and a cloud workspace you own with an active binding and an eligible chat. Your cell operator enables coordinator pairing before you start.
- 02
Pair at the terminal
From the attached checkout, run
muon mcp pair --cell <cell> --workspace <id>. With a cell operator credential, review the proposed scope and typeyesat the terminal. - 03
Or approve in the dashboard
Add
--owner-surfaceand open the printed link to/keys/coordinator. Compare the issuer fingerprint, select the eligible chat and type the terminal’s approval code.
Pairing defaults to reads. To let the coordinator start and control cloud agents, request --agents and review the limits for agents at a time, agents in total and total agent runtime. Dashboard owners can opt in and lower the requested limits.
Check the cell alias and expiry with muon mcp pairings. Run muon mcp unpair <alias>to retire the pairing and follow the terminal’s revocation instructions.
Use the paired cloud workspace from MCP
Discover the workspace with cloud_workspace_list and cloud_workspace_status. The coordinator can also read scoped tasks, jobs, activity and approval evidence.
With agent rights, dispatch can start an agent on a paired workspace using a cloud execution target. The coordinator can also steer or interrupt its cloud jobs and request workspace sleep. Recovering a failed workspace keeps its keys, sign-ins and storage and requires standing delegation or a single-use human confirmation. Merge decisions stay with the human.
What stays true in the cloud
- Local-first by default: cloud is opt-in per cell and per dispatch, and your local brain adds nothing cloud.
- Your own keys: the cell holds your vendor API key; no subscription login is collected, stored or forwarded.
- Operator-only actions: dispatching to the cloud, approving a publish, deleting a workspace and kill-all each refuse an agent's credential.
- A runner credential can never create jobs: it reaches only the routes a runner needs, for its own workspace.