Skip to content

Configuration

Alper Sarıtaş edited this page Dec 4, 2026 · 2 revisions

The settings folder

omo keeps its settings in a folder of its own:

  1. $OMO_DIR, when that is set;
  2. else $XDG_CONFIG_HOME/omo/, when that variable is an absolute path;
  3. else ~/.omo/.

So ~/.config/omo/ is used only when XDG_CONFIG_HOME points at ~/.config. A relative OMO_DIR is taken from the folder omo is started in. Folders and files are created readable by their owner only.

Settings are never read from the sources folder. Nothing is shared with the pi app either: a provider signed in to in pi is not signed in here, and omo never reads, creates or writes ~/.pi or uses pi's PI_* settings paths.

File Holds
auth.json Sign-ins made with /login: subscriptions signed in to through the provider's page, and API keys for model providers and search services. /logout removes one. Keys taken from the environment are not touched. Every change is made under a lock on the file and written whole, so two omo processes cannot lose a refreshed sign-in
models.json Custom providers and their models. Optional
config.json omo's settings, described below

config.json

Every key is optional. Most are set by commands, and you can also edit the file by hand. omo reads it at start.

{
	"defaultModel": "anthropic/claude-sonnet-5-5",
	"defaultThinking": "medium",
	"models": { "judge": "anthropic/claude-opus-5-5" },
	"thinking": { "map": "high" },
	"theme": "system",
	"outside": true,
	"limits": { "passages": 8, "needs": 4 }
}
Key Type Meaning Set with
defaultModel "provider/id" The model for every task without its own /model for all tasks
models.map, models.judge, models.transcribe "provider/id" A model for one task, where it should differ from the default /model <task>
defaultThinking level The thinking level for every task without its own /thinking for all tasks
thinking.map, thinking.judge, thinking.transcribe level A thinking level for one task /thinking <task>
theme "system", "dark", "light" Colours. system (the default) picks light or dark from the terminal's COLORFGBG by hand
outside boolean Whether outside sources are on when omo starts. On unless set to false by hand. /outside changes only the session
limits object Limits on the guide; see below by hand
deviceId string This installation's id, given to a sign-in that asks for one. Created on first use automatic

Thinking levels are off, minimal, low, medium, high, xhigh and max. Each model offers only some of them.

How a task's model is chosen

  1. The task's model in config.json;
  2. else the default model there;
  3. else a model of a signed-in provider, by a fixed order of preferred models.

A model name that cannot be used stops omo at start, rather than at the first task.

A task's thinking level is its level in config.json, then the default level there, then medium. It is clamped to what the model offers, so a model that cannot think runs with thinking off. The status line shows the level after the model's name.

Limits

limits sets how much the guide does, for anyone who wants shorter maps or a tighter budget. With no limits set, a map has no size limit and adds as many outside sources as it needs. The tool-call budget and the turn limit keep their defaults.

Key Meaning Default
passages The most passages a map lists no limit
needs The most passages one passage can need first no limit
added The most sources from outside the folder the guide adds in one task no limit
toolCalls Tool calls per task. After that, only the finishing tool (and, in a map, assume_reader) runs 40
turns Model turns per task, a hard stop 60

Each limit must be a whole number above 0. A value that is not, or an unknown key, stops omo at start with a message naming it, for example config.json: limits.passage is not a limit (passages, needs, added, toolCalls, turns).

A limit you set is told to the guide with the query ("The person set these limits: List at most 8 passages in offer_paths. …"), so it plans within it. It is also enforced:

  • offer_paths's schema carries the maximum list sizes, so a longer list is refused;
  • add_outside refuses an add past the limit.

models.json

models.json adds providers that speak an API omo knows: openai-completions, openai-responses, anthropic-messages, google-generative-ai or mistral-conversations.

{
	"providers": {
		"local": {
			"baseUrl": "http://localhost:8080/v1",
			"api": "openai-completions",
			"apiKey": "LOCAL_API_KEY",
			"models": [{ "id": "my-model" }]
		}
	}
}

apiKey is either a key or the name of an environment variable that holds one. A provider that cannot be used is left out, and a line at start says why.

models.json takes only this subset. It cannot change a built-in provider, and keys cannot come from a command (an apiKey starting with !).

Environment variables

Variable Effect
OMO_DIR Moves both the settings folder and the store (to $OMO_DIR/data)
XDG_CONFIG_HOME, XDG_DATA_HOME Used when absolute, for the settings folder and the store
BRAVE_API_KEY, OPENALEX_API_KEY Search keys, when none is stored with /login
Provider variables such as ANTHROPIC_API_KEY Model provider keys, as pi-ai reads them

pi-ai and pi-tui still read a few PI_* variables: the sign-in callback host, prompt cache retention, terminal settings and debugging. Two of pi-tui's debugging switches write outside omo's folders when set: PI_TUI_WRITE_LOG appends terminal output to the path it names, and PI_TUI_DEBUG=1 writes render dumps to /tmp/tui.

Clone this wiki locally