Where can I set a setting?
| Place | Example | Good for |
|---|---|---|
| The Settings page | Settings → Tomosu Agent | A running engine; admins only |
config.yaml | llm: | Settings kept with a project |
A .env file | TOMOSU_LLM_MAX_CALLS=30 | Keys and secrets, out of git |
| An environment variable | TOMOSU_LLM_MAX_CALLS=30 | Containers, Kubernetes, CI |
A variable is the key’s path in upper case with TOMOSU_ in front: run.listen is TOMOSU_RUN_LISTEN. Every command flag works the same way, as TOMOSU_<COMMAND>_<FLAG>.
Which value wins?
Highest first: a command-line flag, a variable set in the shell, CI or Kubernetes, the same variable in .env, config.yaml, then the built-in default. A .env file never replaces a variable that is already set. A value set by the environment shows as read-only on the Settings page, with where it came from.
tomosu config init # write an example config.yaml (readable by you only)
tomosu config init --env # write .env.example with every variable, commented out
tomosu config check # each setting, its value and where it came from (keys masked)
tomosu config check --all # also the settings left at their default
$ tomosu config check
config.yaml is OK
model fallback: off
env file: /tmp/tdocs/cfg/.env
settings (precedence: flag > environment > .env > config file > default):
path /tmp/tdocs/cfg/src config config.yaml
include_tests false config config.yaml
format text config config.yaml
data_dir /tmp/tdocs/data env TOMOSU_DATA_DIR
llm.enabled false config config.yaml
llm.provider openai config config.yaml
llm.timeout 1m0s config config.yaml
llm.max_functions 20 config config.yaml
llm.max_calls 50 .env TOMOSU_LLM_MAX_CALLS
llm.max_batch_tokens 6000 config config.yaml
llm.validate true config config.yaml
llm.draft true config config.yaml
llm.review true config config.yaml
llm.runtime true config config.yaml
llm.digest true config config.yaml
llm.repair_attempts 2 config config.yaml
llm.hide_doubted false config config.yaml
llm.show_suggested true config config.yaml
llm.max_run_tokens 300000 config config.yaml
llm.max_run_time 10m0s config config.yaml
llm.concurrency 4 config config.yaml
llm.memory_days 180 config config.yaml
cloud.timeout 15s config config.yaml
cloud.sync_interval 1h0m0s config config.yaml
cloud.channels.pri true config config.yaml
cloud.channels.signals true config config.yaml
…
How do I change settings on a running engine?
On the Settings page, or from the terminal. Most settings apply after a restart: the page then shows Restart now for admins (tomosu settings restart). cloud.enabled, the signals, identity and outcomes channels, the agent’s schedule and daily budget (llm.runtime_schedule, llm.max_daily_calls and their companions) and run.ingest apply at once.
$ tomosu settings list --group "Tomosu Agent" --engine http://localhost:7600 --token $TOMOSU_UI_TOKEN
Tomosu Agent
llm.enabled = true (env TOMOSU_LLM_ENABLED, set by the environment: change it where the engine is started, needs a restart)
llm.provider = openai-compatible (env TOMOSU_LLM_PROVIDER, set by the environment: change it where the engine is started, needs a restart)
llm.model = practice (env TOMOSU_LLM_MODEL, set by the environment: change it where the engine is started, needs a restart)
llm.api_key = (default, needs a restart)
llm.anthropic_api_key = (default, needs a restart)
llm.openai_api_key = (default, needs a restart)
llm.base_url = http://127.0.0.1:7700 (env TOMOSU_LLM_BASE_URL, set by the environment: change it where the engine is started, needs a restart)
llm.timeout = 1m0s (default, needs a restart)
llm.max_functions = 20 (default, needs a restart)
llm.max_calls = 30 (default, needs a restart)
llm.max_batch_tokens = 6000 (default, needs a restart)
llm.validate = true (default, needs a restart)
llm.draft = true (default, needs a restart)
llm.review = true (default, needs a restart)
llm.runtime = true (default, needs a restart)
llm.digest = true (default, needs a restart)
llm.repair_attempts = 2 (default, needs a restart)
llm.hide_doubted = false (default, needs a restart)
llm.show_suggested = true (default, needs a restart)
llm.max_run_tokens = 180000 (default, needs a restart)
llm.max_run_time = 10m0s (default, needs a restart)
llm.concurrency = 4 (default, needs a restart)
llm.memory_days = 180 (default, needs a restart)
tomosu settings get llm.provider --engine http://localhost:7600
tomosu settings set llm.max_calls=50 --engine http://localhost:7600
tomosu settings models llm.provider=anthropic --engine http://localhost:7600 # Load models
tomosu settings restart --engine http://localhost:7600

Which settings are there?
| Group | Keys | Guide |
|---|---|---|
| General | path, repo, exclude, include_tests, format, rules, data_dir, events_days | Scan your code |
| Tomosu Agent | llm.enabled, provider, model, api_key, base_url, timeout, max_calls, max_functions, max_run_time, concurrency, validate, draft, review, runtime, digest, show_suggested, hide_doubted, memory_days, runtime_schedule, runtime_min_severity, runtime_signals, max_daily_calls, max_daily_tokens | Tomosu Agent |
| Runtime | run.listen, run.ui, run.otlp_grpc_port, run.otlp_http_port, run.otlp_address, run.docker_network, run.admins, run.sources, run.index_dir, run.index_store and its bucket keys, run.eval_interval, run.ingest | Send OpenTelemetry data |
| Index | index.out, index.services | Code indexes |
| Code hosts | integrations.github|gitlab|bitbucket.repo, token, api | CI and pull request comments |
| Contributions | contrib.github_repo, repo, token, api | Contribute |
| Tomosu cloud | cloud.enabled, cloud.url, proxy, ca_file, timeout, sync_interval, channels.pri, channels.signals, channels.identity, channels.outcomes, signals_interval, machine_key, pro_rules.update_interval, license_key | Learning signals |
| Fix safety, alerts, CI/CD check | fix_safety.auto_revert, notify.slack_webhook, email_to, email_from, smtp_url, ci_gate.enabled, mode, prompt | Fix safety |
Secrets (API keys, tokens, webhook addresses) are write-only: once saved, they are never shown again, and config check masks them. tomosu config check warns if your .env is tracked by git.