Reference
CLI
Every command and flag of frontier.
This page is generated from frontier --help and from the flag parser in cli.mjs. For the commands you type inside the cockpit, see Slash commands.
Commands
| Command | What it does |
|---|---|
frontier | Interactive cockpit (agent tools on; edits ask y/n) |
frontier "task" | One-shot here (read-only unless --allow-edits) |
frontier -p "task" --json | Headless for scripts / Claude Code (exit 3 = quality unavailable) |
frontier mcp | MCP server for Claude Code |
frontier doctor | init | Diagnose connection | set up this project |
frontier setup | Configure a provider key and budget in ~/.frontier |
frontier add <service> | Connect token-harbor, antseed or grok in one step (finds the models, runs a test) |
frontier trust | untrust [dir] | Trust (or stop trusting) a folder's settings and instruction files |
frontier scan [dir] [--json] | Find secrets in a folder (exit 1 when any are found) |
frontier connect claude | Add Relief's baton hooks and handoff skill to Claude Code (asks first) |
frontier connect codex | opencode | Add Relief's MCP server to that tool's own config (asks first, keeps a backup) |
frontier disconnect <agent> | Remove what connect added, and nothing else |
frontier continue --baton | Claude out? Carry its work on here or in a worktree (asks; --where here|worktree) |
Flags
| Flag | What it does |
|---|---|
--model <id> | Pin one model for this run instead of letting Relief route. See /model in the cockpit for ids. |
--mode <name> | The persona: architect, code, ask, debug, review or orchestrator. |
--file <path> | Add a file to the prompt. Secret files such as .env are refused. Repeat the flag for more files. |
--out <path> | Write the answer to a file as well. |
--cwd <dir> | Work in this folder instead of the current one. |
--allow-edits | Let a one shot or headless run change files. Without it, those runs are read only. |
--no-tools | Plain chat: the model cannot read, search, edit or run anything. |
--plain | No colour, no animation, ASCII only, for screen readers. FRONTIER_PLAIN=1 does the same. |
-p, --print | Headless: print the answer and exit. Never asks a question. |
--json | Headless output as one JSON object. Implies -p. |
--image <path> | Attach an image file for a vision model. Repeat the flag for more. |
--baton | With continue: carry on the work Claude Code left, here or in a worktree. |
--where here|worktree | With continue --baton: answer the Here or Worktree question without asking. |
-y, --yes | Answer yes to the confirmation question of connect, disconnect or the baton takeover. |
--check | With update: only report whether a newer signed release exists. |
--staged | With scan: look at the files staged in git instead of a folder. |
--handoff <id> | With continue: start from a saved handoff. |
--from-claude-session | With continue: start from this folder's latest Claude Code transcript. |
-v, --version | Print the version and exit. |
-h, --help | Print the help text and exit. |
Typing in the cockpit
- Enter sends, Ctrl+J adds a line (or end a line with \ and press Enter). Tab completes a /command, Up/Down browse earlier messages.
- Esc stops the answer, Shift+Tab cycles permissions, ? on an empty prompt lists every shortcut (or type /keys).
- !command runs a shell command yourself (like /run, in your chosen shell); its output joins the conversation.
- Ctrl+G or /notepad composes in Notepad; piped input can also use <<< ... >>> for a multi-line block.
Exit codes
| Code | Meaning |
|---|---|
| 0 | Success. |
| 1 | Any other error. With --json, the object has code and message. |
| 2 | No prompt was given, or an option value was not understood. |
| 3 | QUALITY_UNAVAILABLE: The quality floor stayed busy for the whole patience window. |
| 5 | MODEL_REJECTED: The model you pinned refused the request. |
| 6 | NO_MODEL_AT_FLOOR: No configured model reaches your quality floor. |
| 130 | CANCELLED: Stopped by you (Ctrl+C). |
The full list of error codes is on Errors and exit codes.