Install Overview
Use the installer unless you have a reason not to. It sets up the CLI and runs onboarding.Quick install (recommended)
System requirements
- Node >=22
- macOS, Linux, or Windows via WSL2
pnpmonly if you build from source
Choose your install path
1) Installer script (recommended)
Installsgensparx globally via npm and runs onboarding.
2) Global install (manual)
If you already have Node:sharp fails to install, force prebuilt binaries:
sharp: Please add node-gyp to your dependencies, either install build tooling (macOS: Xcode CLT + npm install -g node-gyp) or use the SHARP_IGNORE_GLOBAL_LIBVIPS=1 workaround above to skip the native build.
Or with pnpm:
pnpm approve-builds -g and select the listed packages.
Then:
3) From source (contributors/dev)
pnpm gensparx ....
For deeper development workflows, see Setup.
4) Other install options
After install
- Run onboarding:
gensparx onboard --install-daemon - Quick check:
gensparx doctor - Check gateway health:
gensparx status+gensparx health - Open the dashboard:
gensparx dashboard
Install method: npm vs git (installer)
The installer supports two methods:npm(default):npm install -g gensparx@latestgit: clone/build from GitHub and run from a source checkout
CLI flags
--install-method npm|git--git-dir <path>(default:~/GenSparx)--no-git-update(skipgit pullwhen using an existing checkout)--no-prompt(disable prompts; required in CI/automation)--dry-run(print what would happen; make no changes)--no-onboard(skip onboarding)
Environment variables
Equivalent env vars (useful for automation):OPENCLAW_INSTALL_METHOD=git|npmOPENCLAW_GIT_DIR=...OPENCLAW_GIT_UPDATE=0|1OPENCLAW_NO_PROMPT=1OPENCLAW_DRY_RUN=1OPENCLAW_NO_ONBOARD=1SHARP_IGNORE_GLOBAL_LIBVIPS=0|1(default:1; avoidssharpbuilding against system libvips)
Troubleshooting: gensparx not found (PATH)
Quick diagnosis:
$(npm prefix -g)/bin (macOS/Linux) or $(npm prefix -g) (Windows) is not present inside echo "$PATH", your shell can’t find global npm binaries (including gensparx).
Fix: add it to your shell startup file (zsh: ~/.zshrc, bash: ~/.bashrc):
npm prefix -g to your PATH.
Then open a new terminal (or rehash in zsh / hash -r in bash).