What a Cloud guest is
- It is prepared from your repository. The first turn of a session attaches a guest and clones the repository you picked in the composer. That is why the first session on a new repository spends time installing before any work appears.
- It is headless. There is no screen, no desktop and no remote-desktop view in a Code runtime. A session’s Desktop tab exists only with the badge Soon. If you want an agent with a screen and a browser, that is a Cortex Bot computer, not a Code runtime.
- One repository per runtime. A session works one repository at a time. A second repository means a second session.
- It is where the diff comes from. The Diff tab reads the guest’s working tree live and captions it Live from the Cloud guest. When the tree cannot be read the pane says The changes could not be read from the runtime. rather than showing you an empty diff.
- It holds no secrets. Code has no Secrets page on any surface, and nothing in Code asks you to paste a token.
The life of a guest
While the runtime is being attached the session status reads Connecting, then Connected. The Terminal tab tells you where commands went: Commands from this session run inside the Cloud guest.
A long-running command eventually times out rather than hanging the turn forever, and a whole turn has a wall-clock ceiling. Neither is a fault in your repository: read the transcript, narrow the command, and send it again.
Give a session its own machine
A plain Cloud session installs what the repository declares every time. An environment is a machine you keep: Cortex clones the repository into it, the harness installs the toolchain, and you save the result as an image so the next session skips the install.1
Open the Runtime tab
In an open session, choose Runtime in the output pane. While it looks for a machine it says Looking for an environment… With no repository on the session it says No repository chosen, because an environment is built from a repository.
2
Start one
Press Give this session its own machine, then Start an environment.
3
Install it
Press Install the environment and watch Install progress under HARNESS. It opens with Cloning the repository and reading what it declares… When nothing is reported yet the panel says No progress was reported.
4
Read the outcome
On success the section reads ENVIRONMENT with a Verified with line. On failure it reads SETUP DID NOT FINISH and offers the Harness transcript plus Re-run setup.
5
Save it
Press Save image. The toast confirms Environment saved and explains what you bought: The next session on this repository and ref resumes from it.
What a runtime does not give you
- You cannot scope a runtime by directory or by command. There is no command allowlist and no per-directory allowlist anywhere in Cortex Code. The shell is allowed or withheld as a whole, per command, at the moment it is asked. What that decision looks like is on Permissions and approvals.
- A file write is not approved on the permission rail. Commands are answered with Allow once, Always allow or Deny; writes wait in Changes for Approve. Keep the two apart.
- A Code session has no MCP servers, no connected apps and no plugins, whatever runtime it is on. The session’s Tools tab says so in its own words: Off · this session has no MCP access. and Off · Chat and Bot access does not carry into Code. Servers you add under Code integrations are configured for the workspace, and a Code session may report no access to them.
- There is no offline or mock Code runtime. A deployment without a runtime fleet cannot run one at all, so there is nothing to try Code runtimes against.
When a runtime is not available
Cortex fails closed here. If a guest cannot be placed, nothing is started, so nothing is lost. The surface separates three situations, and the right response differs for each:
A session never quietly relocates. A runtime is bound once per turn with no fallback, so an unusable runtime refuses the turn and names an action to take.
The error codes you may meet:
Runtimes other than Cloud
In the browser, Cloud is the runtime, plus a registered team runner when the deployment has one. Two more runtime kinds exist in the Cortex desktop app and the Cortex CLI: This PC, a machine you paired, and SSH, a registered remote host. See Code on desktop, SSH hosts and Machines.Related
- Environments and images - keep an installed machine and reuse it.
- Machines - Cloud occupancy and team runners.
- SSH hosts - the third runtime kind, registered in the desktop app.
- How Code works - the turn loop that runs inside the guest.
- Code troubleshooting - failed starts and capacity problems.