Product
Platform overview Tomosu engine (open source) Tomosu Cloud Reliability rules
Solutions
Prevent outages before merge Reliability Radar Fix safety For developers For SRE and platform teams
Developers
Quickstart Documentation Contribute a rule
Resources
Blog Case studies Learn FAQ News
Company
Pricing About Contact Join the Waitlist
Theme

Settings

Every Tomosu setting can be set in four places: the Settings page, config.yaml, a .env file and a TOMOSU_* variable. A command-line flag wins, then the environment, then .env, then config.yaml, then the default. tomosu config check shows each value and where it came from.

  • config init
  • config check
  • settings list
  • Updated

Where can I set a setting?

PlaceExampleGood for
The Settings pageSettings → Tomosu AgentA running engine; admins only
config.yamlllm:
  max_calls: 30
Settings kept with a project
A .env fileTOMOSU_LLM_MAX_CALLS=30Keys and secrets, out of git
An environment variableTOMOSU_LLM_MAX_CALLS=30Containers, 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
The Settings page: Appearance with System default, Light and Dark, Alerts with the Slack webhook and email settings, and OpenTelemetry production data with run.listen and the OTLP ports.
Settings.

Which settings are there?

GroupKeysGuide
Generalpath, repo, exclude, include_tests, format, rules, data_dir, events_daysScan your code
Tomosu Agentllm.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_tokensTomosu Agent
Runtimerun.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.ingestSend OpenTelemetry data
Indexindex.out, index.servicesCode indexes
Code hostsintegrations.github|gitlab|bitbucket.repo, token, apiCI and pull request comments
Contributionscontrib.github_repo, repo, token, apiContribute
Tomosu cloudcloud.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_keyLearning signals
Fix safety, alerts, CI/CD checkfix_safety.auto_revert, notify.slack_webhook, email_to, email_from, smtp_url, ci_gate.enabled, mode, promptFix 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.