Skip to content

Node.js bootstrap

The recommended CLI tools (Codex / Claude Code / Gemini CLI / OpenCode / Hermes) need Node.js v22+. Skip this page if you already have a current LTS.

One-line installer

Detects your current Node version and walks you through installing the latest LTS only when needed (Homebrew on macOS, NodeSource on Linux, winget / Chocolatey on Windows). It does not touch any PrimeRouter configuration.

powershell
irm https://primerouter.ai/install/nodejs.ps1 | iex
bash
curl -fsSL https://primerouter.ai/install/nodejs.sh | bash

You'll be asked before anything is installed

The script asks y/N before running any package manager. It exits early when Node v22+ is already detected.

Fallback: manual install

Install Node.js LTS by hand

Verify:

bash
node -v   # expect v22.x.x or higher
npm -v

Built for transparent, auditable, crypto-native AI inference. About · Terms · Privacy