1
Install the CLI
- macOS and Linux
- Windows
PATH. Install the CLI has the exact locations and the options for pinning a version.2
Sign in
cortex whoami confirms the account. On a machine with no browser, use cortex login --device-auth and enter the printed code on another device. See Sign in.3
Start a session in your project
Plan, search, build anything, the mode chip reading Agent at its top left, and the model chip, for example Cortex Mini 1 (medium), at its bottom right.On a first run you also get the tips panel:/ opens the command list, and /models is the entry for picking a model and its reasoning effort.Now type what you want and press Enter:Worked for 12s.Press Esc to interrupt a turn that is heading the wrong way; the timeline marks it Stopped. While a turn is running the composer still accepts text, but Enter queues a follow-up instead of sending it.4
Tell Cortex about the project
AGENTS.md in the current directory, and /init does the same from inside a session. Cortex reads that file at the start of every session in the project, so put the build command, the test command, house style, and anything a new contributor would need to be told into it. Add --force to overwrite an existing file.A good AGENTS.md is the single highest-value thing you can do for the quality of later turns.5
Choose how much autonomy to grant
Every session runs under an approval policy and a sandbox. The defaults are When the agent wants to run a command you get a numbered prompt headed
approval_policy = "on-request", so the agent asks before anything consequential, and sandbox_mode = "workspace-write", so writes stay inside the workspace.Press Shift+Tab to cycle the mode. The chip at the top left of the composer tells you where you are:Plan and Ask are enforced by the harness, not by asking the model to behave: the mutating tools are withheld outright.Or set the policy when you start the session:
Cortex wants to run. Option 1 runs it once, option 2 allows that kind of command in this project from now on, option 3 lets you edit the command first, and option 4 refuses and lets you say what to do instead. See Modes and permissions.Other ways to start
cortex run or cortex exec instead: see Headless and one-shot runs.
Every turn goes to the Cortex coding service; the CLI does not run a model on your machine. If the service cannot be reached you get
The coding service is temporarily unavailable and a non-zero exit status, never a quiet fallback.