DIRECT INSTALLERS · SOURCE BUILDS · MCP HOST WIRING

Install & Quickstart

Download prebuilt Windows, Linux, and macOS installers, or build nyx yourself from source and connect AI hosts with nyx-connect.

01 · PREBUILT INSTALLERS & ARCHIVES

Download Prebuilt Release (v0.1.0)

All Releases (v0.1.0) → SHA256SUMS.txt

Pick your platform below to download the installer GUI (nyx-setup / .dmg) or portable .zip archive directly. Every bundle includes all six side-by-side executables (nyx, nyx-worker, nyx-script-worker, nyx-mcp, nyx-connect, and nyx-uninstall) with self-contained HDF5 storage — no external C HDF5 library, solver runtime, or Python installation required.

If Windows SmartScreen blocks the installer GUI:

  1. Double-click nyx-setup-0.1.0-x86_64-pc-windows-msvc.exe.
  2. On the "Windows protected your PC" dialog, click More info.
  3. Click Run anyway to launch the installer GUI.
  4. (Optional) Verify GitHub build provenance first in PowerShell: gh attestation verify nyx-setup-0.1.0-x86_64-pc-windows-msvc.exe --repo p-j-r/nyx (or check Get-FileHash against SHA256SUMS.txt).

Or extract the portable .zip without admin rights, or run an unattended PowerShell install:

POWERSHELL · UNATTENDED INSTALL & VERIFY
.\nyx-setup-0.1.0-x86_64-pc-windows-msvc.exe install --user --yes
nyx-setup doctor
nyx --batch examples\15_soi_wire.nyx.json
02 · DIY / BUILD FROM SOURCE

Building Yourself with Cargo (Rust 1.99.1)

The toolchain is pinned via rust-toolchain.toml. Always build in --release mode. Default CPU builds compile zero GPU or C dependencies; pass --features gpu to enable opt-in wgpu / WGSL compute shaders for FDTD and DGTD.

CARGO WORKSPACE · 15 CRATES
git clone https://github.com/p-j-r/nyx.git && cd nyx
cargo build --release -p nyx -p nyx-script -p nyx-mcp -p nyx-connect
cargo run --release -p nyx

# Optional: enable opt-in wgpu/WGSL GPU compute shaders
cargo build --release --features gpu -p nyx

# Full test suite & clippy (optional):
cargo test --release --workspace
cargo clippy --release --workspace --all-targets --no-deps -- -D warnings
03 · AI HOSTS (nyx-mcp & nyx-connect)

AI Host Setup via nyx-connect

nyx-mcp exposes four script-session tools (script_run, script_wait, script_check, and api) over stdio. Register it automatically in Antigravity, Claude Code, Claude Desktop, Cursor, VS Code, or Windsurf using nyx-connect (or the desktop Connect menu):

NYX-CONNECT · ONE-STEP MCP REGISTRATION
nyx-connect list
nyx-connect connect <app|all>
nyx-connect test
nyx-connect snippet
nyx-connect disconnect <app|all>

Managing Installed Bundles (nyx-setup)

On Windows and Linux, the self-extracting nyx-setup installer also acts as a lifecycle manager once installed:

nyx-setup install --user --yes                 # current-user install, PATH & file associations
nyx-setup install --prefix /opt/nyx --cli -y   # custom prefix without GUI wizard
nyx-setup status --json                        # machine-readable install_report.v1 status
nyx-setup doctor                               # verify binary layout, PATH, and MCP links
nyx-setup uninstall --purge-cache              # removes binaries & temp cache; preserves Documents/nyx

Headless Batch & Script CLI

Every installed or source-built nyx executable runs deterministic headless jobs using the same engine as the desktop UI:

nyx --batch model.nyx.json [--physics ems,sms]
nyx check script.nys [--json]
nyx run script.nys [--workspace DIR] [--seconds 120] [--memory 4096] [--calls 500]
nyx api list
nyx api show figure
nyx queue submit WORKSPACE PROJECT.nyx.json ems --priority 1

When running scripts (nyx run FILE.nys), all file I/O is confined strictly to --workspace (or the script’s parent directory if omitted). On Windows, nyx opts out of OS power-throttling efficiency-core demotion (nyx_engine::process::opt_out_of_power_throttling) so background solves retain full performance-core clock speeds.

Latency & Timeout Guidance for MCP Sessions (docs/HOST_SETUP.md)

Experience from instrumented MCP sessions shows that over 90% of wall time in unoptimised sessions goes to model turns and tool timeouts rather than solving. nyx-mcp therefore enforces four protections:

  1. Bounded Blocking (--max-wait): Calls never block longer than 90 s by default (--max-wait SECONDS in 1–900 s inside the host’s args array). If a host imposes a shorter timeout, set "args": ["--max-wait", "60"].
  2. Pre-emptible Waits & Progress Heartbeats: Sending notifications/cancelled, ping, or a follow-up script_wait interrupts a blocked wait cleanly without killing the worker job, and _meta.progressToken requests receive notifications/progress every 5 s.
  3. One script_run per Task: Combine geometry construction, mesh_build, solve_run, reductions (result_info, analyse, confinement, probe), and print into a single script rather than issuing separate round-trips per command.
  4. Inspect cost Before Refining: mesh_build reports predicted time and memory from local solve history, and convergence_check supports dry_run = true, max_cells, and max_seconds to reject unaffordable meshes before solving.