Skip to main content
Ori reads its settings from environment variables. You can export them in your shell, or put them in a config file so they apply to every run.

Where variables come from

Every setting resolves through one list, and the first source that carries a valid value for it wins:
  1. The machine policy file: /etc/ori/config.json, or %ProgramData%\ori\config.json on Windows
  2. A command-line flag, for the six update flags listed below
  3. The process environment, meaning whatever your shell exports
  4. .ori/config.json in the working directory
  5. ~/.ori/config.json in your home directory
  6. Ori’s own default
A project file beats your home file, matching how most tools treat local configuration. The machine policy file sits above everything, including flags, so a policy your administrator sets cannot be turned off from a shell or a project. Only --auto-update, --auto-update-restart, --update-interval, --drain-timeout, --alpha, and --stable name a setting that also has a variable, so those are the only flags in the list. Every other flag is an argument to its command and does not take part. A config file can carry an env object of plain strings, named fields, or both. The two spellings feed the same setting:
A missing file is fine, and a malformed one contributes nothing. A value Ori cannot make sense of is skipped per variable, so one bad entry does not discard the rest of the file, and the next source down answers instead. Config files currently set the update and installation variables plus the sign-in method Ori remembers. The other variables on this page are read from the environment only, so put those in your shell or your process manager for now. Anywhere the table below says a variable is a switch, Ori treats an empty value, 0, and false as off, and any other value as on. 1 is the conventional way to turn one on.

Updates and installation

Sign-in

Models and output

Terminal appearance

Files

Locking updates for a fleet

To ship Ori through your own tooling and stop users updating it themselves, write this to /etc/ori/config.json on each machine, or to %ProgramData%\ori\config.json on Windows:
Ori then stops checking for releases, never prints an update notice, and answers ori update with a message saying the installation is managed by your organization. Use ORI_DISABLE_AUTOUPDATER instead if you want the background updater quiet while users can still update by hand. Add "channel": "stable" to the same file to hold the fleet on one channel, including against a --alpha flag.