Skip to main content
Version: 3.1

Command Reference

Tables of every CLI flag, slash command, key binding, environment variable, and config.toml field. For behaviour, see Modes and Tools.

CLI flags

FlagArgumentEffect
--versionPrint the version and exit.
--resume[id] (positional)Resume a session. Without an id, reopens the most recent.

Slash commands

CommandArgsEffect
/helpShow the slash-command overlay.
/clearDrop history and rotate to a new session.
/resumeOpen the resume picker.
/modelOpen the model picker (provider, then model).
/themeOpen the theme picker (auto / light / dark).
/compactRewrite the full chat into one compact memory summary.
/truncate[keep]Drop old turns. Default keep is 4 user turns. A /compact memory summary is always kept.
/planSwitch to plan mode.
/normalSwitch to normal mode.
/autoSwitch to auto mode.

Key bindings

KeyEffect
EnterSend the current input.
Ctrl+J or Shift+EnterInsert a newline.
TabComplete a slash command from the suggestion panel.
Shift+TabCycle mode (Plan -> Auto -> Normal -> Plan).
Ctrl+CCancel the running turn.
Ctrl+DQuit.
PgUp or Shift+UpScroll the transcript up.
PgDn or Shift+DownScroll the transcript down.
Ctrl+SToggle native text-selection mode (releases mouse capture).

History recall (Up / Down) navigates previously sent inputs. The textarea otherwise behaves like a multi-line text field.

Themes

VariantBehaviour
autoDetects the terminal background at startup.
lightLight palette.
darkDark palette.

Set the theme with /theme (which also writes the [ui] theme field), or by editing config.toml directly.

Mode colours are fixed across themes:

  • Plan: orange.
  • Auto: purple.
  • Normal: theme primary.

Environment variables

VariableField overridden
OPERAIDE_CODE_CONFIGConfig file path.
OPERAIDE_CODE_PROVIDERdefault_provider.
OPERAIDE_CODE_MODELdefault_model.
ANTHROPIC_API_KEY[providers.anthropic] api_key.
OPENAI_API_KEY[providers.openai] api_key.
OPERAIDE_LLM_BASE_URL[providers.openai] base_url.
OLLAMA_ENDPOINT[providers.ollama] endpoint.
AZURE_OPENAI_API_KEY[providers.azure] api_key.
AZURE_OPENAI_ENDPOINT[providers.azure] base_url.
AZURE_OPENAI_API_VERSION[providers.azure] api_version.
AZURE_AI_API_KEY[providers.azureAI] api_key.
AZURE_AI_ENDPOINT[providers.azureAI] base_url.
MISTRAL_API_KEY[providers.mistral] api_key.
MISTRAL_BASE_URL[providers.mistral] base_url.

An empty variable is ignored, so EMPTY_VAR="" does not clobber a TOML value.

config.toml schema

Top-level keys:

KeyTypeMeaning
default_providerstringProvider name used at startup.
default_modelstringModel id within default_provider.

[providers.<name>] block:

KeyTypeRequiredMeaning
typestringSometimesOne of openai, anthropic, ollama, azure, azureAI, mistral. Inferred from <name> for openai, anthropic, ollama.
api_keystringYesAPI key. May be a Personal Access Key when pointed at a Studio proxy.
base_urlstringSometimesOpenAI-compatible base URL. Required for azure, azureAI.
endpointstringNoAlternative spelling of base_url. Used by Ollama.
modelsstring arrayYesAvailable model ids. For azure, deployment names.
modelstringNoLegacy single-model field. Merged into models.
api_versionstringSometimesRequired for azure.

[ui] block:

KeyTypeMeaning
themestringauto, light, or dark.

Tools by mode

ToolPlanNormalAuto
read_fileAllowAllowAllow
lsAllowAllowAllow
globAllowAllowAllow
grepAllowAllowAllow
search_handbookAllowAllowAllow
run_checkAllowAllowAllow
present_planAllowAllowAllow
bashAskAskAllow
write_fileDeny (hidden)AskAllow
edit_fileDeny (hidden)AskAllow

File locations

PathPurpose
~/.operaide-code/config.tomlUser-level config. Created on first run.
./.operaide-code/config.tomlWorkspace-local config. Wins over user-level.
~/.operaide-code/sessions/<id>/transcript.jsonPer-session transcript.
~/.operaide-code/sessions/<id>/meta.tomlPer-session metadata (provider, model, working dir, token usage).
~/.config/operaide-code/keys/<workspace>.keyStudio: persisted PAK for the refresh task. Mode 0600.
/usr/local/bin/operaide-codeBinary, in a Studio container.
<repo>/operaide-code/bin/operaide-codeBinary, in local Studio dev.

Bash allowlist

BinaryNotes
npmAll subcommands.
nodeAll subcommands.
npxAll subcommands.
tscAll subcommands.
eslintAll subcommands.
prettierAll subcommands.
gitOnly status, diff, log, show.

Refused: ;, &, |, >, <, $, `. Default timeout 120 seconds. Output cap 256 KB per stream.