The three hosts
The names on this page are the ones you use.
Computer is the setting that chooses between them, and CORTEX_COMPUTER is the variable that carries it.
Cloud is the default
The TUI andcortex exec create a Cloud session unless you explicitly select This PC or SSH. That is the shipped default, which is why a fresh install can complete a turn with no extra configuration at all.
Cloud work runs in an isolated cloud environment that Cortex manages for you, not on your machine. Two things are worth separating in your head: the CLI never runs a model locally, so every turn goes to the coding service regardless of host, and the host only decides where the tools the model calls actually execute.
Select This PC
SetCORTEX_COMPUTER to run tools on the machine you are sitting at:
this_pc and ssh. Leaving the variable unset, or setting it to cloud, uses Cloud. The spellings this-pc and local are also accepted for This PC.
This PC requires an already connected Code session. The connection itself is established on the Cortex Code side, not from the CLI, so the machine has to be set up there first. See Runtimes and Machines.
Select an SSH host
SetCORTEX_SSH_HOST to a target and the runtime becomes SSH:
CORTEX_SSH_TARGET is an alias of the same variable. Setting either one selects SSH without touching CORTEX_COMPUTER, and the same connected-session rule applies: the host must already be connected to a Code session. See SSH hosts for setting one up.
This PC and SSH are opt-in, and the CLI documentation describes them as possibly shipping during the 0.1.x series. If they are not enabled on your build, Cloud is the only host available to you.
Both opt-in hosts fail closed
There is no silent substitution. If This PC or SSH is selected and the host is not usable, the turn stops instead of running in Cloud. The refusal is a single message:Hand one turn to Cortex Cloud
You do not have to change the host to move a single turn. Type& at the start of the composer and that turn is handed to Cortex Cloud. The timeline records it as a row reading ↑ Handed off to Cortex Cloud, so you can see afterwards which turns ran where.
What the host setting does not control
Computer selects where tools run. That is all it does. In particular it is not browser or desktop control: the CLI ships no built-in browser or desktop-automation tool, and that kind of work is done by connecting a server that provides those tools, on whichever host the session is using. See MCP servers in the CLI.
The host also does not change the permission model. Approvals, the sandbox and the permission table apply identically on all three hosts, so selecting This PC does not widen what the agent may do, it only changes where it does it.
Related
- Tools the agent uses, what the agent runs on the host you selected
- Environment variables,
CORTEX_COMPUTER,CORTEX_SSH_HOSTand the rest - Modes and permissions, the controls that apply on every host
- Headless and one-shot runs, choosing a host for an unattended run
- Runtimes, how the same hosts appear in Cortex Code