Skip to content

All Flags

All top-level flags that can be passed to the root clido command or clido run.

Flags can also be set via environment variables — see the Env column.

FlagShortTypeDefaultEnvDescription
--modelstringprofile modelCLIDO_MODELOverride the model for this invocation
--providerstringprofile providerCLIDO_PROVIDEROverride the provider for this invocation
--profilestringdefaultCLIDO_PROFILESelect a named profile from config.toml
--workdir-Cpath. (current dir)CLIDO_WORKDIRSet the working directory
--max-turnsinteger200CLIDO_MAX_TURNSMaximum number of agent turns
--max-budget-usdfloat5.0CLIDO_MAX_BUDGET_USDMaximum spend per session in USD
--permission-modeenumdefaultCLIDO_PERMISSION_MODEdefault, accept-all, or plan
--output-formatenumtextCLIDO_OUTPUT_FORMATtext, json, or stream-json
--input-formatenumtextCLIDO_INPUT_FORMATtext or stream-json
--quiet-qflagfalseSuppress spinner, tool output, cost footer
--print-pflagfalseNon-interactive mode (no REPL)
--continueflagfalseResume the newest session for the current dir
--resumestringResume a session by ID prefix
--resume-ignore-staleflagfalseSkip stale file check when resuming
--mcp-configpathPath to MCP server config (JSON)
--sandboxflagfalseEnable Bash sandboxing
--planner / --planflagfalseEnable interactive plan mode: decompose task into editable DAG before executing
--plan-dry-runflagfalseWith --plan: show editor but never execute
--plan-no-editflagfalseWith --plan: skip editor, execute immediately (CI-friendly)
--max-parallel-toolsinteger4CLIDO_MAX_PARALLEL_TOOLSMax concurrent read-only tool calls
--system-promptstringCLIDO_SYSTEM_PROMPTReplace the default system prompt
--system-prompt-filepathRead system prompt from a file
--append-system-promptstringAppend text to the default system prompt
--allowed-toolsstringComma-separated list of allowed tool names
--disallowed-toolsstringComma-separated list of disallowed tool names
--toolsstringAlias for --allowed-tools
--no-colorflagfalseNO_COLORDisable ANSI color output
--verbose-vflagfalseEnable debug-level logging

Override the model name for this invocation. Does not modify config.toml.

Terminal window
clido --model claude-haiku-4-5 "quick question"

Override the provider for this invocation. Must be a valid provider name: anthropic, openai, openrouter, minimax, alibabacloud, local.

Terminal window
clido --provider openrouter --model anthropic/claude-3-5-sonnet "task"

Select a named profile from config.toml. Profiles define provider, model, and credentials.

Terminal window
clido --profile cheap "simple task"

Set the working directory. All relative file paths and tool calls use this as the root.

Terminal window
clido -C /path/to/project "add tests"

Maximum number of agent turns (one turn = one provider API call). When the limit is reached, the agent stops and clido exits with code 3.

Default: 200 (from config).

Stop the agent when accumulated cost exceeds this value. Exits with code 3.

Terminal window
clido --max-budget-usd 0.25 "extensive refactor"

Controls how the agent handles state-changing tool calls:

ValueBehaviour
defaultPrompt user in TUI; allow automatically in non-TTY mode
accept-allAllow all tool calls without prompting
planDisallow all tool calls; agent can only plan and respond with text

Controls the output format. See Output Formats.

Suppress all output except the agent’s final response text. No spinner, no tool lines, no cost footer.

Non-interactive mode. Never enters the REPL. Useful in scripts where you want to guarantee clido does not wait for user input.

Resume the most recent session for the current working directory. Equivalent to --resume <latest-session-id>.

Resume a session by its ID (or a unique prefix). Combined with --resume-ignore-stale to skip the modified-file warning.

Path to a JSON file describing MCP servers to start. See MCP Servers.

Enable sandboxed Bash execution. Uses sandbox-exec on macOS and bwrap on Linux. The agent’s shell commands run in a restricted environment that cannot access files outside the working directory or make network connections.

Enable interactive plan mode. clido calls the LLM once to generate a structured task graph (DAG), then opens a full-screen plan editor in the TUI before executing anything. See Plan Mode.

Terminal window
clido --plan "migrate all deprecated API calls to v2"
clido --plan --plan-dry-run "refactor auth" # preview only
clido --plan --plan-no-edit "fix clippy" # skip editor

Maximum number of read-only tool calls that can run concurrently. Increasing this can speed up tasks that do a lot of file reading.

Replace the default system prompt entirely. The default prompt includes project context and memory injection. Using --system-prompt disables these.

Append additional instructions to the default system prompt, preserving memory injection and project context.

Restrict which tools the agent can use. --disallowed-tools takes precedence over --allowed-tools.

Terminal window
# Only allow file reading tools
clido --allowed-tools "Read,Glob,Grep" "review this codebase"
# Prevent shell execution
clido --disallowed-tools Bash "refactor src/lib.rs"