~/.opsh/config.json. You can edit this file directly in any text editor, or use the built-in interactive editor so you never have to write JSON by hand. This page documents every field in the config file and explains what each one does.
Opening the config editor
Two commands open the interactive config editor:- On first run or to reset settings:
opsh --initin your terminal. - From inside the Opsh REPL: type
!configat the prompt.
~/.opsh/config.json when you select Done.
Config file location
config.json is plain JSON. You can open and edit it with any text editor. Opsh reads it fresh on every invocation, so changes take effect immediately without restarting.Full config file structure
The example below shows every field with its default value.config.json
Field reference
Config file format version. Always
1. Do not change this value.The shell Opsh uses when running generated commands. Accepted values:
"bash" or "zsh". If omitted or set to null, Opsh auto-detects your shell from the SHELL environment variable.When
true, Opsh prints the generated command to stdout without executing it or asking for confirmation. Useful for previewing commands in scripts or pipelines.When
true, Opsh automatically runs commands it classifies as safe and summarizes the output in plain English. Enabling warp mode sets confirmByDefault to false. See the Warp Mode guide for details.When
true, Opsh always asks for your confirmation before executing any command. Set to false to skip confirmation for safe commands. This setting is overridden and disabled when warpMode is true.Maximum number of entries Opsh stores in its own command history. Older entries are dropped when the limit is reached.
Number of recent shell commands sent to the AI as context with each request. Higher values give the AI more context about what you’ve been doing, but slightly increase token usage.
AI provider configuration. Controls which provider is active and holds per-provider settings including model, API key, and base URL. See the Provider setup page for full details.

