Windows Setup
Questi contenuti non sono ancora disponibili nella tua lingua.
Soleri runs natively on Windows. Hook scripts execute via Git Bash, which ships with Git for Windows — already required by Claude Code.
Prerequisites
Section titled “Prerequisites”- Node.js 18+ — nodejs.org
- Git for Windows — git-scm.com (provides Git Bash)
Installing Build Tools (if needed)
Section titled “Installing Build Tools (if needed)”If the knowledge engine reports that better-sqlite3 is missing, install a C++ toolchain:
Option A — Visual Studio Build Tools (recommended):
- Download Visual Studio Build Tools
- In the installer, select “Desktop development with C++”
- Install and restart your terminal
Option B — via npm:
npm config set msvs_version 2022If you already have Visual Studio 2019 or 2022 installed with the C++ workload, no extra steps are needed.
Installation
Section titled “Installation”npm create soleri my-braincd my-brainnpx @soleri/cli install --target claudenpx @soleri/cli devThese commands work identically on Windows, macOS, and Linux.
Hook Packs
Section titled “Hook Packs”Soleri hook packs use bash scripts (.sh files). On Windows, Claude Code runs hooks through Git Bash by default — no extra configuration needed.
npx @soleri/cli hooks add-pack flock-guardLock files and temp directories use ${TMPDIR:-${TEMP:-/tmp}}, which resolves correctly on Windows via the TEMP environment variable.
Known Limitations
Section titled “Known Limitations”- PowerShell hooks — Soleri hook scripts are bash-only. Claude Code supports
"shell": "powershell"per-hook, but Soleri packs don’t ship PowerShell variants yet. - Launcher scripts —
soleri installcreates launcher scripts in/usr/local/binon Unix. On Windows this step is skipped. Usenpx @soleri/cli devto start your agent instead. - File permissions —
chmodcalls are skipped on Windows. Scripts are executable by default.
Troubleshooting
Section titled “Troubleshooting”node-gyp build failures
Section titled “node-gyp build failures”If better-sqlite3 fails to compile:
# Verify build tools are installednpm config get msvs_version
# Force a specific versionnpm config set msvs_version 2022
# Rebuildnpm rebuild better-sqlite3Git Bash not found
Section titled “Git Bash not found”Claude Code expects Git for Windows on PATH. Verify:
where git# Should show: C:\Program Files\Git\cmd\git.exeIf hooks fail with “bash not found”, ensure Git for Windows is installed and its bin directory is on your system PATH.
Path separator issues
Section titled “Path separator issues”Soleri uses path.join() internally, so paths are cross-platform. If you see path errors in custom scripts, use forward slashes (/) or the path module — avoid hardcoded backslashes.