---
title: "OpenReynolds configuration: every environment variable and settings key"
url: "https://tryreynolds.com/docs/reference/configuration"
description: "Every environment variable and settings-file key OpenReynolds reads, with its default and effect: model, workspace, session, files, the CAD desk, capture and sharing, the HTTP server, diagnostics, the live extra, the npm launcher and the toolbox."
---

**[Reynolds](https://tryreynolds.com)** is agentic CFD, built by
**[InviscidAI](https://inviscidai.com)** and backed by Y Combinator, Winter 2026 batch.
The agent is open source under the MIT licence at
[github.com/InviscidAI/OpenReynolds](https://github.com/InviscidAI/OpenReynolds).
Using it requires no OpenFOAM knowledge.

This is the agent-readable Markdown twin of https://tryreynolds.com/docs/reference/configuration. It lives at https://tryreynolds.com/docs/reference/configuration.md, and
[tryreynolds.com/llms.txt](https://tryreynolds.com/llms.txt) indexes every one of them.

Configuration

# Configuration

Every environment variable and settings-file key OpenReynolds reads, with its default and effect: model, workspace, session, files, the CAD desk, capture and sharing, the HTTP server, diagnostics, the live extra, the npm launcher and the toolbox.

Settings come from four places. For each one, the first that is set wins:

1. A command-line flag, where there is one.
2. An environment variable that is not empty.
3. The settings file.
4. The provider preset, then a built-in default.

A handful of settings are environment-only, and a few are file-only state; the tables say which. [`openreynolds config`](https://tryreynolds.com/docs/cli/config.md) writes the file, and `openreynolds doctor` prints what the file and environment came to.

## Files

| File | Where | Written by |
|---|---|---|
| Settings | `~/.config/openreynolds/config.json`; `$XDG_CONFIG_HOME/openreynolds/config.json` if that is set; `%APPDATA%\openreynolds\config.json` on Windows; or `OPENREYNOLDS_CONFIG` | `login`, `logout`, `config` |
| Standing note | `preferences.md` beside the settings file | You. The program never writes it |
| Sharing switch | `sharing.json` beside the settings file | `openreynolds sharing` |
| Sharing queue | `sharing-queue/` beside the settings file | A study's end |
| Studies | `./studies/<study id>/` under the directory you started in | Every session |
| Local workspace | `~/.openreynolds/work`, or `OPENREYNOLDS_LOCAL_WORK` | Local sessions |

The settings file is JSON, readable only by you on Linux and macOS. It is written whole by `login` and `config`, and only with the keys marked *saved* below; a key you add by hand that is not in that list is read while it is there and dropped the next time one of those commands writes the file.

config.json

```json
{
  "foamd_url": "https://api.tryreynolds.com",
  "foamd_api_key": "...",
  "provider": "anthropic",
  "llm_api_key": "...",
  "model": "claude-opus-5",
  "effort": "high",
  "context_window": 1000000,
  "mode": "partial"
}
```

## Settings-file keys

| Key | Default | Saved | Variable | Effect |
|---|---|---|---|---|
| `foamd_url` | `https://api.tryreynolds.com` | Yes | `FOAMD_URL` | The workspace service |
| `foamd_api_key` | none | Yes | `FOAMD_API_KEY` | This machine's service key |
| `provider` | `anthropic` | Yes | `OPENREYNOLDS_PROVIDER` | Preset name, or a bare API family |
| `llm_api_key` | none | Yes | `OPENREYNOLDS_LLM_API_KEY`, or the preset's own | The model key |
| `anthropic_api_key` | none | No | none | An older name for `llm_api_key`, still read |
| `llm_base_url` | the preset's | Yes | `OPENREYNOLDS_LLM_BASE_URL` | Where the model client points |
| `model` | the preset's, `claude-opus-5` | Yes | `OPENREYNOLDS_MODEL` | The model |
| `desk_model` | the preset's | Yes | `OPENREYNOLDS_DESK_MODEL` | Kept for older settings. Nothing in a session asks for this model |
| `effort` | `high` | Yes | `OPENREYNOLDS_EFFORT` | `low`, `medium` or `high` |
| `context_window` | the preset's, else 200,000 | Yes | `OPENREYNOLDS_CONTEXT_WINDOW` | Tokens the model can hold |
| `mode` | `auto` | Yes, when not `auto` | `OPENREYNOLDS_MODE` | How much to ask before compute |
| `cad_model` | empty: the main model | No | `OPENREYNOLDS_CAD_MODEL` | See the CAD desk |
| `cad_effort` | `high` | No | `OPENREYNOLDS_CAD_EFFORT` | " |
| `cad_tool` | on | No | `OPENREYNOLDS_CAD_TOOL` | " |
| `cad_max_steps` | `0`: 30 | No | `OPENREYNOLDS_CAD_MAX_STEPS` | " |
| `cad_max_seconds` | `0`: 900 | No | `OPENREYNOLDS_CAD_MAX_SECONDS` | " |
| `cad_review` | on | No | `OPENREYNOLDS_CAD_REVIEW` | " |
| `result_review` | off | No | `OPENREYNOLDS_RESULT_REVIEW` | [Independent reviewers](https://tryreynolds.com/docs/guides/independent-review.md) of every solved answer. `--review` turns them on for one session |
| `review_model` | empty: the desk's | No | `OPENREYNOLDS_REVIEW_MODEL` | " |
| `fallback_models` | the preset's | No | `OPENREYNOLDS_FALLBACK_MODELS` | " |
| `mesher_model`, `mesher_effort`, `mesh_tool`, `mesher_max_steps`, `mesher_max_seconds` |  | No | `OPENREYNOLDS_MESHER_*`, `OPENREYNOLDS_MESH_TOOL` | Older names for the `cad_*` keys. The new name wins where both are set |

`sharing.json` holds `enabled` and `notice`. Use `openreynolds sharing on` or `off` rather than editing it: a file that cannot be read as a switch counts as off.

## Account and service

| Variable | Default | Effect |
|---|---|---|
| `FOAMD_URL` | `https://api.tryreynolds.com` | The workspace service. A trailing slash is ignored |
| `FOAMD_API_KEY` | none | This machine's service key. Wins over the settings file, and is not removed by `logout` |
| `OPENREYNOLDS_CONFIG` | the path above | Path of the settings file. `preferences.md` and the sharing files follow it |
| `XDG_CONFIG_HOME` | `~/.config` | Where the settings go on Linux and macOS |
| `APPDATA` | from Windows | Where the settings go on Windows |

## Model

| Variable | Default | Effect |
|---|---|---|
| `OPENREYNOLDS_PROVIDER` | `anthropic` | A [preset](https://tryreynolds.com/docs/models/providers.md), or `anthropic`, `openai`, `openai-responses` with an address. Does not hold a resume to it |
| `OPENREYNOLDS_MODEL` | the preset's | Model id. Counts as asking for a model when a study is resumed |
| `OPENREYNOLDS_EFFORT` | `high` | `low`, `medium`, `high` |
| `OPENREYNOLDS_LLM_API_KEY` | none | The model key. Wins over the vendor's own variable |
| `OPENREYNOLDS_LLM_BASE_URL` | the preset's | The endpoint. Set it for a provider with no preset or a gateway. Standing in for a key: with an address set, no key is required |
| `OPENREYNOLDS_CONTEXT_WINDOW` | the preset's, else `200000` | Tokens. The thread is refreshed at 80% of it |
| `OPENREYNOLDS_LLM_TIMEOUT_S` | `300` | Longest gap with no byte from the model before a request is abandoned |
| `OPENREYNOLDS_MAX_TOOL_OUTPUT` | `48000` | Bytes of a tool's output shown inline before a marker says where the rest is |
| `OPENREYNOLDS_FALLBACK_MODELS` | the preset's chain | Comma-separated models a declined request is retried on; `0`, `off`, `none`, `false` or `no` for none |
| `OPENREYNOLDS_DESK_MODEL` | the preset's | Kept for older configurations |

| Vendor variable | Preset it belongs to |
|---|---|
| `ANTHROPIC_API_KEY` | `anthropic` |
| `OPENAI_API_KEY` | `openai`, `openai-responses` |
| `ZAI_API_KEY` | `zai` |
| `DEEPSEEK_API_KEY` | `deepseek` |
| `MOONSHOT_API_KEY` | `moonshot` |
| `MINIMAX_API_KEY` | `minimax` |
| `ASTER_API_KEY` | `aster` |
| `OPENROUTER_API_KEY` | `openrouter` |
| `OLLAMA_API_KEY` | `ollama` (not required) |

A vendor variable is read only for the preset in use.

Warning

Numbers are not checked before they are used. A value that is not a number in `OPENREYNOLDS_CONTEXT_WINDOW`, `OPENREYNOLDS_MAX_TOOL_OUTPUT`, `OPENREYNOLDS_LLM_TIMEOUT_S`, `OPENREYNOLDS_MIRROR_INTERVAL_S`, `OPENREYNOLDS_NARRATE_EVERY_S` or a `CAD_MAX` setting stops the command. `OPENREYNOLDS_WORKSPACE_ETA_S` is ignored instead.

## Workspace

| Variable | Default | Effect |
|---|---|---|
| `OPENREYNOLDS_LOCAL` | unset: hosted | `docker` (what `--local` sets), `native` (what `--native` sets), or an off word (`0`, `false`, `no`, `off`). Any other value means `native` |
| `OPENREYNOLDS_LOCAL_WORK` | `~/.openreynolds/work` | The local workspace directory, for Docker and native. Must not contain a space |
| `OPENREYNOLDS_IMAGE` | `ghcr.io/inviscidai/reynolds-workspace:2512` | The Docker image |
| `OPENREYNOLDS_FOAM_BASHRC` | first one found | The OpenFOAM `etc/bashrc` `--native` sources. Named and missing means none is used |
| `OPENREYNOLDS_SOLVER` | `auto` | `auto`, `openfoam` or `felix`, when `--solver` is not given |
| `OPENREYNOLDS_WORKSPACE_ETA_S` | `30` | Seconds the model is told a workspace usually takes to come up |

## Session

| Variable | Default | Effect |
|---|---|---|
| `OPENREYNOLDS_MODE` | `auto` | `auto`, `partial` or `structured`, or an alias. A value that is not a mode is ignored with a warning, and the settings file's `mode` applies |
| `OPENREYNOLDS_NARRATE_EVERY_S` | `600` | Seconds between progress wakes of the model while a job runs. `0` turns them off |
| `OPENREYNOLDS_DESK` | on | `0` turns `/btw` side questions off |
| `OPENREYNOLDS_INLINE_IMAGES` | on | `0`, `off` or `no` draws no images in the terminal |
| `OPENREYNOLDS_TIMING` | off | Any non-empty value prints one line per start and close-down step, with its milliseconds, to stderr |

Mode aliases: `full`, `full-auto`, `fullauto`, `free` are `auto`; `ask`, `approve`, `approvals`, `partial-auto` are `partial`; `plan`, `staged`, `stages`, `guided` are `structured`.

## Files

| Variable | Default | Effect |
|---|---|---|
| `OPENREYNOLDS_MIRROR_INTERVAL_S` | `20` | Seconds between background copies home. `0` or less turns the background sync off; turn-end syncs still run |

The mirror leaves files over 500 MB and stops at 5 GB a sync, and names what it left. Those two are not configurable.

## Capture and sharing

| Variable | Default | Effect |
|---|---|---|
| `OPENREYNOLDS_CAPTURE` | on | `0`, `false`, `no` or `off` keeps the transcript, figures and case bundle on this machine |
| `OPENREYNOLDS_SHARING` | on while signed in | Anything but an on word (`1`, `true`, `yes`, `on`) stops traces and discards the queue |

## The CAD desk

The agent behind the `cad` tool.

| Variable | Default | Effect |
|---|---|---|
| `OPENREYNOLDS_CAD_MODEL` | the main model | Model the desk builds with. On `reynolds` either family |
| `OPENREYNOLDS_CAD_EFFORT` | `high` | Its effort, whatever the main loop's is |
| `OPENREYNOLDS_CAD_TOOL` | on | `0` takes the tool away, and the agent meshes in its own shell |
| `OPENREYNOLDS_CAD_MAX_STEPS` | `0`: 30 | Cells the desk may run in one call |
| `OPENREYNOLDS_CAD_MAX_SECONDS` | `0`: 900 | Wall clock for one call |
| `OPENREYNOLDS_CAD_REVIEW` | on | `0` turns off the review before the desk finishes. `mesh_review` stays |
| `OPENREYNOLDS_REVIEW_MODEL` | the desk's | The reviewer's model |

Older names, honoured where the new one is not set: `OPENREYNOLDS_MESHER_MODEL`, `OPENREYNOLDS_MESHER_EFFORT`, `OPENREYNOLDS_MESH_TOOL`, `OPENREYNOLDS_MESHER_MAX_STEPS`, `OPENREYNOLDS_MESHER_MAX_SECONDS`.

## Server, webhooks and CI

| Variable | Default | Effect |
|---|---|---|
| `OPENREYNOLDS_SERVE_TOKEN` | generated | The token `openreynolds serve` requires. `--token` wins |
| `OPENREYNOLDS_WEBHOOK_SECRET` | none | Signs each body `openreynolds webhook` sends. `--secret` wins |

The GitHub Action sets `OPENREYNOLDS_LLM_API_KEY`, `FOAMD_URL`, `FOAMD_API_KEY` and `OPENREYNOLDS_WEBHOOK_SECRET` from its [inputs](https://tryreynolds.com/docs/deploy/ci.md).

## Diagnostics

| Variable | Default | Effect |
|---|---|---|
| `OPENREYNOLDS_TRACE` | off | A file to append cost events to: one JSON object per turn, tool call and mirror cycle, with token classes split |
| `OPENREYNOLDS_TIMING` | off | Start and close-down step timings on stderr |

## Live extra

| Variable | Default | Effect |
|---|---|---|
| `OPENREYNOLDS_LIVE_LAYOUT` | `soa` with a CUDA device, `aos` without | Memory layout of the lattice |
| `OPENREYNOLDS_LIVE_UNROLL` | `16` on Warp 1.17 and older, `24` otherwise | Kernel unroll limit |

## Toolbox scripts

Read by the scripts themselves, which run in the workspace or on your machine.

| Variable | Default | Read by |
|---|---|---|
| `OPENREYNOLDS_WORK` | `/work` | `disk.py`. Set it for a `--native` workspace that is not at `/work` |
| `FOAM_TUTORIALS` | set by OpenFOAM | `chem0d.py`, `corpus.py`, `adjoint_env.py` and the conjugate-wall template |
| `WM_PROJECT_VERSION` | set by OpenFOAM | `score.py`, `corpus.py`, `adjoint_env.py` |
| `WM_OPTIONS`, `WM_PROJECT_USER_DIR`, `FOAM_SITE_APPBIN`, `FOAM_SITE_LIBBIN` | set by OpenFOAM | `hisa_env.py` |

`MPLBACKEND` is set to `Agg` in the CAD kernel if nothing sets it.

## Terminal detection

`TERM`, `KITTY_WINDOW_ID`, `TERM_PROGRAM` and `LC_TERMINAL` are read to decide whether pictures can be drawn inline: kitty, iTerm2 and WezTerm are recognised.

## npm launcher

| Variable | Effect |
|---|---|
| `OPENREYNOLDS_UV` | Absolute path to the `uv` executable |
| `OPENREYNOLDS_YES` | `1`, `true` or `yes`: install uv without asking |
| `OPENREYNOLDS_PYTHON_SPEC` | Overrides the pinned requirement, such as `openreynolds==0.6.0` |
| `OPENREYNOLDS_ASCII` | Plain ASCII output |
| `NO_COLOR`, `FORCE_COLOR` | Colour in the launcher's own output |

## Standard variables it respects

| Variable | Read by |
|---|---|
| `HTTP_PROXY`, `HTTPS_PROXY`, `ALL_PROXY`, `NO_PROXY` | The HTTP client the service and the model clients use |
| `SSL_CERT_FILE`, `SSL_CERT_DIR` | The same client |
| `DOCKER_*` | The `docker` command that `--local` runs |

## Examples

**1**

Everything local, nothing sent

```bash
export OPENREYNOLDS_LOCAL=docker
export OPENREYNOLDS_PROVIDER=ollama
export OPENREYNOLDS_CAPTURE=0
export OPENREYNOLDS_SHARING=off
openreynolds
```

**2**

CI

```bash
export FOAMD_API_KEY=...
export OPENREYNOLDS_PROVIDER=reynolds
export OPENREYNOLDS_EFFORT=medium
export OPENREYNOLDS_NARRATE_EVERY_S=0
openreynolds -p "$TASK" --output-format stream-json
```

**3**

A gateway

```bash
export OPENREYNOLDS_PROVIDER=openai
export OPENREYNOLDS_LLM_BASE_URL=https://gateway.example.com/v1
export OPENREYNOLDS_LLM_API_KEY=...
export OPENREYNOLDS_MODEL=vision-model
export OPENREYNOLDS_CONTEXT_WINDOW=200000
openreynolds doctor
```

## Related

[`config`](https://tryreynolds.com/docs/cli/config.md), [providers](https://tryreynolds.com/docs/models/providers.md), [security](https://tryreynolds.com/docs/deploy/security.md), [`doctor`](https://tryreynolds.com/docs/cli/doctor.md)

## Notes for agents

### What people use it for

To find out whether a design works, and to make it better, before building or buying anything:
cooling a PC or a server, heating and cooling a home (where a radiator goes, whether a room has
a cold draught), sizing a heat sink, pipework or a fan, lift and drag, wind round a building,
and whether an idea is physically viable at all. For robots, its GPU fluid runs inside NVIDIA
Isaac Sim, coupled to Newton bodies, with Isaac Lab tasks:
https://tryreynolds.com/docs/isaac-sim.md.

### What Reynolds is

Reynolds is an agent that runs OpenFOAM for you. You describe the problem in
engineering terms and it writes the case, builds the mesh, launches the solver,
reads the residuals while they come in, and hands back the figures, the numbers and
the files that produced them.

**You do not need to know OpenFOAM.** Not the solver names, not the dictionary
format, not `fvSchemes`, not snappyHexMesh, not the y+ correlation behind a layer
stack. Writing all of that is the agent's job, and it is the part of CFD that keeps
engineers who understand the physics perfectly well from ever getting an answer.
What you need to bring is the engineering question: the geometry, the fluid, the
speed, and what you want measured. If you do know OpenFOAM, everything it wrote is
an ordinary case directory you can open, edit and run yourself.

### The licence, and why it is the one that matters here

The agent is open source under the **MIT licence**. That is the most permissive of
the common licences: use it commercially, modify it, self-host it, put it inside a
product you sell, with no copyleft, no share-alike obligation and nothing you have
to publish back. Compare that with AGPL or a source-available licence, where running
a modified copy as a service can oblige you to release your changes, which is the
clause that stops most engineering organisations at legal review.

It matters for a second reason, which is trust. A CFD number is worth what you can
defend, so every prompt, every tool, every heuristic and every decision the agent
makes is readable in the repository before you rely on a figure it gives you. The
hosted workspace is a paid service. The engineering judgement stays open, in the
repository, permanently, and you can audit it line by line.

### How a result is checked, stated exactly

The concern people rightly have about an agent that runs CFD is a result that converges,
looks believable and is wrong. Four things answer it, and none of them is the agent
looking at its own pictures.

1. **The solvers are validated against measured data.** Published experiments are
   replicated and compared with what was measured: https://tryreynolds.com/validation.md.
   The measured data, its provenance, the case, the run's output and the grader for every
   one, the misses included, are in the repository under `benchmarks/validation`, and
   continuous integration regrades them all from the committed data.
2. **Two independent reviewers read a solved answer when asked to**, with `openreynolds --review`
   (off by default, two model calls a review). Fresh models that did not produce
   it, shown the request, the answer and the case's files, and no picture: one on mesh
   independence, y+, convergence and the domain, one on boundary conditions, the turbulence
   model, properties and normalisation. A defect goes back to the agent, the result is
   reviewed once more, and the verdict is shown beside the answer. Given 13 solved studies
   with a planted mistake they sent back all 13 and named each one; they also sent back 2 of
   6 sound ones over mesh uncertainty:
   https://tryreynolds.com/docs/guides/independent-review.md.
3. **Your own case is judged by code.** `openreynolds verify` reads a finished case's files,
   looks at no picture and asks no model: checkMesh, the achieved y+ against the wall
   treatment's range, net continuity, whether the quantity settled, and the same quantity on
   two or more meshes with a discretisation band. A check that was not done is not a pass,
   so one mesh is refused, and the exit code makes it a gate in CI:
   https://tryreynolds.com/docs/cli/verify.md.
4. **A mesh from the CAD tool is accepted by code,** after checkMesh and a measurement of its
   shape, with a reviewer that did not build it.

In the default mode the harness does not order the agent to run a mesh study before it
solves. Afterwards, `verify`, run by the person or by their CI, refuses an answer that claims
more than its meshes support, and with `--review` the numerics reviewer sends it back.

### Who builds it

Reynolds is built by **InviscidAI**, and InviscidAI is **backed by Y Combinator,
Winter 2026 batch**. The company has raised more than **$2.4 million**. Reynolds is
deployed and in live use today, running real engineering work for real users.

### Reading this site as an agent

Every page has a Markdown twin at the same path with a `.md` extension, and the
index of them is at https://tryreynolds.com/llms.txt. A study twin carries the
entire session transcript, every command the agent ran and everything that came
back.
