openreynolds
v0.3.1
Published
Agentic OpenFOAM CFD: describe a flow problem, get an evidence-backed answer. Launcher for the openreynolds Python package.
Downloads
405
Maintainers
Readme
openreynolds (npm launcher)
Agentic OpenFOAM CFD: describe a flow problem, get an evidence-backed answer.
This npm package is a launcher, not the program. The real thing is the
openreynolds Python package; everything
about what it does, what it needs (an Anthropic key, a compute backend) and how to use
it is in the
project README.
npm install -g openreynolds exists so people who live in Node get the same
one-command install as everyone else.
Install
npm install -g openreynolds
openreynolds "flow over a cylinder at Re=100"
# or without installing
npx openreynolds --helpPrefer the Python-native route if you already have uv or pipx:
uvx openreynolds # run without installing
pipx install openreynoldsWhat the launcher does
On every run, in order, saying what it is doing before it does it:
- Finds
uv(OPENREYNOLDS_UV, thenPATH, then the usual install directories). Ifuvis missing it offers the official installer (curl -LsSf https://astral.sh/uv/install.sh | shon macOS/Linux,irm https://astral.sh/uv/install.ps1 | iexon Windows). It asks first on a terminal; pass--yesor setOPENREYNOLDS_YES=1to skip the question. In a non-interactive shell without either it prints the instructions and exits with code 2. Nothing is ever installed silently. - Installs the Python package once, with
uv tool install "openreynolds>=0.3,<0.4"(the range is pinned in the launcher;uvfetches a Python 3.10+ if you have none). Skipped whenuv tool listalready shows it. - Execs the installed
openreynoldswith all of your arguments, inheriting stdin/stdout/stderr and the environment. Exit codes are passed through; Ctrl-C goes to the Python process, which does its own cleanup.
Node is only involved for those few milliseconds of bookkeeping.
Launcher-only commands and flags
Everything not listed here is forwarded to the Python CLI untouched. Launcher flags must come before any forwarded arguments.
| Command / flag | Meaning |
| --- | --- |
| openreynolds upgrade | Upgrade the Python package within the launcher's pinned range (uv tool install --upgrade). Update the launcher itself with npm update -g openreynolds. |
| openreynolds --launcher-version | Print the npm launcher version and the Python spec it pins. |
| --yes | Run the uv installer without asking. |
| --from-path <dir> | Developers: install a local checkout in editable mode (uv tool install --editable <dir>) instead of the PyPI release. |
Environment variables
| Variable | Effect |
| --- | --- |
| OPENREYNOLDS_UV | Absolute path to the uv executable to use. |
| OPENREYNOLDS_YES=1 | Same as --yes. |
| OPENREYNOLDS_PYTHON_SPEC | Override the pinned requirement, e.g. openreynolds==0.1.3 or openreynolds>=0.2.0a1. |
| OPENREYNOLDS_ASCII=1 | Plain ASCII output (no box-drawing glyphs). |
| NO_COLOR / FORCE_COLOR | Disable / force ANSI color in the launcher's own output. |
Anything else (ANTHROPIC_API_KEY, backend configuration, ...) belongs to the Python
program and is passed through unchanged.
Uninstall
npm uninstall -g openreynolds
uv tool uninstall openreynoldsNote on the reynolds npm package
reynolds on npm (v0.1.x) is the earlier, different product: a bundled terminal app
with its own hosted-compute setup. It is not this launcher and does not install
openreynolds.
License
MIT. Source: https://github.com/InviscidAI/OpenReynolds/tree/main/launcher
