Перейти до вмісту
← На сайт
Soleri | Docs

Windows Setup

Цей контент ще не доступний вашою мовою.

Soleri runs natively on Windows. Hook scripts execute via Git Bash, which ships with Git for Windows — already required by Claude Code.

If the knowledge engine reports that better-sqlite3 is missing, install a C++ toolchain:

Option A — Visual Studio Build Tools (recommended):

  1. Download Visual Studio Build Tools
  2. In the installer, select “Desktop development with C++”
  3. Install and restart your terminal

Option B — via npm:

Terminal window
npm config set msvs_version 2022

If you already have Visual Studio 2019 or 2022 installed with the C++ workload, no extra steps are needed.

Terminal window
npm create soleri my-brain
cd my-brain
npx @soleri/cli install --target claude
npx @soleri/cli dev

These commands work identically on Windows, macOS, and Linux.

Soleri hook packs use bash scripts (.sh files). On Windows, Claude Code runs hooks through Git Bash by default — no extra configuration needed.

Terminal window
npx @soleri/cli hooks add-pack flock-guard

Lock files and temp directories use ${TMPDIR:-${TEMP:-/tmp}}, which resolves correctly on Windows via the TEMP environment variable.

  • 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 scriptssoleri install creates launcher scripts in /usr/local/bin on Unix. On Windows this step is skipped. Use npx @soleri/cli dev to start your agent instead.
  • File permissionschmod calls are skipped on Windows. Scripts are executable by default.

If better-sqlite3 fails to compile:

Terminal window
# Verify build tools are installed
npm config get msvs_version
# Force a specific version
npm config set msvs_version 2022
# Rebuild
npm rebuild better-sqlite3

Claude Code expects Git for Windows on PATH. Verify:

Terminal window
where git
# Should show: C:\Program Files\Git\cmd\git.exe

If hooks fail with “bash not found”, ensure Git for Windows is installed and its bin directory is on your system PATH.

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.