Start here
-v and --trace increase console verbosity and can expose sensitive context. --debug instead records bounded, content-free diagnostics under the Cortex home diagnostics/ directory (or CORTEX_DIAGNOSTICS_DIR); it never uploads anything.
“The coding service is temporarily unavailable”

The outage state: the error, what to do next, and a composer that retries on Enter — your work so far is saved in this session.
- Can this machine reach
api.cortex.foundation? - Is a proxy in the way? Corporate TLS interception can break calls even when browsing works.
- Is
CORTEX_API_URLset to something unexpected?cortex debug config --envtells you. - Are you signed in?
cortex whoami.
“This PC and SSH Code execution require an already connected Code session”
You selected This PC or SSH — throughCORTEX_COMPUTER or CORTEX_SSH_HOST — without a connected Code session. Those hosts are never created on the fly, and the Cloud is not substituted. Either resume a session that already has the host, or unset CORTEX_COMPUTER to use the Cloud. See Code on desktop.
The TUI will not start
Cortex needs a terminal on both stdin and stdout. In a pipeline, a CI job, or under a wrapper that redirects either, it refuses and points you atcortex run or cortex exec.
Sign-in problems
See Sign in → Troubleshooting.The agent will not change anything
Check, in order:- Mode. Plan and Ask are read-only. Shift+Tab to Agent.
- Sandbox.
--sandbox read-onlyblocks all writes;workspace-writeconfines them to the workspace. - Approval policy. With
--ask-for-approval neverand no autonomy the agent may be declining rather than prompting. - The
permissiontable inconfig.tomlcan denyeditor specific command patterns outright. - Agent tool access. An agent with
tools: read-onlycannot write, whatever the session policy says. - Spec mode. Mutating tools stay locked until the plan is accepted.
cortex debug config --diff shows what differs from the defaults.
A tool is not available
--enabled-tools / --disabled-tools, the agent’s tools field, the current mode, or the permission table.
An edit broke the build
After an edit, a Diagnostics row lists compiler errors and warnings with file and line, so the agent — and you — can see what to fix next./diagnostics [file] runs the same check on demand.

An Edit row followed by Diagnostics: one error and one warning, each with its location.
An MCP server is not connecting
PATH in the environment Cortex launches it from; a missing -- in cortex mcp add made the server’s flags Cortex flags; the URL points at localhost or a private range and needs --allow-local; the bearer-token environment variable named in the config is not set. In the TUI, a failed server shows a red × in /mcp with r to reconnect.
Quota exhausted

× Agent quota exhausted: the meter, the reset time, and the two ways to continue now. The composer holds follow-ups until the window resets.
/usage shows the details. Quotas fail closed; see Plans and quotas.
A run times out
cortex exec defaults to a 600-second timeout and 100 turns.
--command-timeout or execution.command_timeout_seconds instead. Splitting a large task into several runs usually beats raising the ceiling.
Output is truncated or mangled
--color never (or NO_COLOR) for logs and pipelines. -o json or -o stream-json when something downstream parses the output; the shape of text is not a contract.
Disk usage keeps growing
cortex lock add <SESSION_ID> -r "keep for the audit".
A build from source fails
On Linux the optional audio and desktop crates need ALSA headers:sudo apt-get install -y libasound2-dev pkg-config. Use the toolchain pinned in rust-toolchain.toml.
Reporting a problem
/bug in the TUI, or open an issue at github.com/CortexLM/cli.

