Configuration
Choose where OpenRig keeps your work, how often it saves snapshots and how its terminals behave. rig config shows the settings on your machine and lets you change one without editing a file by hand.
See the value you're actually using
rig config
rig config --with-source
rig config --json
rig config get workspace.root --show-source
--with-source shows where each value came from. For one setting, get --show-source shows the value and its source together. OpenRig resolves a CLI flag first, then an environment variable, then the config file, then the default.
Paths can depend on your installation. Read workspace.root or db.path when you need those locations rather than copying a path from another machine.
Change one setting, or undo your change
For example, set periodic snapshots to ten minutes:
rig config set snapshots.periodic.interval_seconds 600
rig config get snapshots.periodic.interval_seconds --show-source
To remove that override:
rig config reset snapshots.periodic.interval_seconds
If an environment variable overrides a value you save, config set names it. Check the effective value before assuming your change took effect. Always name a key when resetting one setting: bare rig config reset removes the whole config file.
Settings you may want to change
Keep a typed draft from receiving a message. By default, a send to a detected draft is pasted at the cursor and submitted with the draft. To refuse those sends instead:
rig config set transport.draft_delivery refuse
That takes effect from the next send. Detection can't recognize every prompt layout, so keep the per-seat typing guard on when you need to protect manual input. See Messaging.
Choose the terminal UI's time zone. Use an IANA name, then reopen the TUI:
rig config set ui.timezone Europe/London
See provider usage windows. Enable the account view's usage-window reads:
rig config set provider.usage_windows true
rig provider status --refresh
See Accounts, providers and rig services for account selection and the scope of those observations.
Get shorter command output. output.compact shortens common task and identity results; --full asks for the complete record when you need it.
rig config set output.compact true
Permissions and working modes
A permission policy chooses what an agent's coding tool allows or asks about. Inspect the available policies and what a rig spec would use:
rig policy list
rig policy current --spec ./rig.yaml
rig policy apply <name> --spec ./rig.yaml records the choice for launches that use that spec. The coding tool's native settings enforce it; recording a choice doesn't change the permissions of an already running agent.
rig mode records a separate working preference, such as human-led or delegated:
rig mode effective
rig mode set shows a proposed change first and writes it only with --confirm. A mode isn't a permission grant; its saved preferences don't change native permission prompts. See Hosts and humans for how a person's answers reach the agent that decides a request.
Workspace setup and changes that need a restart
rig config init-workspace adds OpenRig's project scaffold to the configured workspace without replacing existing files. See The work tree for what goes there.
Some settings are read at startup. Changing the files allowlist, progress scan roots or terminal.tmux_server needs a daemon restart. Launch settings such as launch.codex_login_shell apply when a seat next launches; they don't change a running agent. Follow the restart guidance before stopping anything.
Every key and option
The generated configuration reference lists the keys, types and release defaults. Use local rig config get <key> --show-source for your machine's effective value. The CLI reference covers all config, policy and mode options.