Install inference-engine
Choose one installation method. uv is the recommended option. Every distribution runs the same native Rust executor. The project currently publishes alpha releases, so the commands below explicitly select prereleases.
Install with uv
Install uv, then:
uv tool install --prerelease allow inference-engine
Run without a persistent tool installation:
uvx --prerelease allow inference-engine --help
For a uv-managed project:
uv add --dev --prerelease allow inference-engine
uv run inference-engine --help
Commit uv.lock to keep the project version reproducible. Upgrade an installed
tool with uv tool upgrade --prerelease allow inference-engine. If the command
is not on your PATH, run uv tool update-shell and restart your terminal.
Install with pip
In an activated Python virtual environment:
python -m pip install --pre inference-engine
Upgrade with python -m pip install --upgrade --pre inference-engine. On Windows
you can use py -m pip instead of python -m pip.
Install with pipx
pipx install --pip-args=--pre inference-engine
Upgrade with pipx upgrade --pip-args=--pre inference-engine.
Install with Homebrew
On macOS (Apple silicon) or Linux, use the Legra tap:
brew install legra-ai/tap/inference-engine
Upgrade with brew upgrade inference-engine.
Download a standalone executable
Download the ZIP for your system from
GitHub Releases.
Compare its SHA-256 checksum with the adjacent .zip.sha256 file, extract it
and put inference-engine (or inference-engine.exe on Windows) on your PATH.
No Python, Node.js or Rust installation is needed.
Use shasum -a 256 ARCHIVE.zip on macOS, sha256sum ARCHIVE.zip on Linux, or
Get-FileHash ARCHIVE.zip -Algorithm SHA256 in PowerShell. The result must match
the published checksum exactly. Choose the archive ending in the target from
the table below. To upgrade, replace the executable with the desired release.
Install with Cargo
With cargo-binstall installed, download a prebuilt alpha executable:
cargo binstall inference-engine --version '>=0.1.0-alpha.1, <0.1.0'
The explicit range selects the newest alpha in the current series. Missing release archives are errors; this installation does not compile a replacement.
To compile the published Rust crate instead:
cargo install inference-engine --locked --version '>=0.1.0-alpha.1, <0.1.0'
Cargo installs into ~/.cargo/bin; ensure that directory is on your PATH.
Source builds require the crate's declared Rust compiler or newer and a native
C toolchain. A checkout uses the compiler pinned in rust-toolchain.toml.
Install with npm
For a Node.js project:
npm install --save-dev inference-engine@alpha
npx inference-engine --help
For a global installation:
npm install --global inference-engine@alpha
Use the same install command to upgrade. The package carries native modules; installation scripts do not fetch or compile a replacement engine.
Supported platforms
| System | CPU | Standalone archive target | Requirement |
|---|---|---|---|
| Linux | x64 | x86_64-unknown-linux-gnu | glibc 2.28 or newer |
| Linux | ARM64 | aarch64-unknown-linux-gnu | glibc 2.28 or newer |
| macOS | Apple silicon | aarch64-apple-darwin | macOS 11 or newer |
| Windows | x64 | x86_64-pc-windows-msvc | Native Windows executable |
Python wheels use the same matrix and require Python 3.11 or newer. npm requires Node.js 22 or newer; its Linux native modules currently require glibc 2.39 or newer. Use the standalone executable or Python wheel on older supported glibc systems. Windows ARM64, Intel Macs, musl Linux and 32-bit systems have no prebuilt package. Unsupported systems and missing native modules fail.
Check the installation
inference-engine --version
inference-engine --help
For a project-local npm installation, use npx inference-engine. For repeatable
builds, select an exact version from
GitHub Releases and pin
it using the installer's version option or package specifier. Rust/npm spell the
version 0.1.0-alpha.N; Python spells it 0.1.0aN.
See Command line to infer facts from RDF files and Alpha capabilities for the available reasoning profiles.