Install on Windows
This guide covers installing Astromesh Node as a Windows Service on Windows 10/11 and Windows Server 2019/2022.
Prerequisites
Section titled “Prerequisites”| Requirement | Version | Check |
|---|---|---|
| Windows | 10 21H2+ / 11 / Server 2019+ | winver |
| PowerShell | 5.1+ (included in Windows) | $PSVersionTable.PSVersion |
| Architecture | x64 or arm64 | echo %PROCESSOR_ARCHITECTURE% |
| Python | 3.12+ (bundled by the installer) | — |
| Network | Outbound to LLM provider or local Ollama | — |
Administrator privileges are required for installation.
Download
Section titled “Download”Download the latest .zip package from GitHub Releases.
PowerShell:
Invoke-WebRequest ` -Uri https://github.com/monaccode/astromesh/releases/latest/download/astromesh_latest_windows_amd64.zip ` -OutFile astromesh.zipOr download via browser: visit the GitHub Releases page and download astromesh_latest_windows_amd64.zip.
Install
Section titled “Install”Extract the archive and run the installer script as Administrator:
# ExtractExpand-Archive -Path astromesh.zip -DestinationPath .\astromesh
# Open an Administrator PowerShell and run the installercd .\astromesh.\install.ps1If PowerShell script execution is blocked, run:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass.\install.ps1The installer:
- Copies
astromeshd.exeandastromeshctl.exetoC:\Program Files\Astromesh\bin\ - Creates configuration and data directories
- Registers the
AstromeshDaemonWindows Service - Adds
C:\Program Files\Astromesh\bin\to the systemPATH
Expected output:
Installing Astromesh Node v0.18.0...Creating directories... C:\ProgramData\Astromesh\config\ C:\ProgramData\Astromesh\data\ C:\ProgramData\Astromesh\logs\Installing binaries...Installing Python environment...Registering Windows Service 'AstromeshDaemon'...astromesh installed successfully.
Run 'astromeshctl init' to configure.Open a new terminal (to pick up the PATH update) and verify:
astromeshctl versionExpected output:
Astromesh Node v0.18.0Daemon: C:\Program Files\Astromesh\bin\astromeshd.exeCLI: C:\Program Files\Astromesh\bin\astromeshctl.exePython: 3.12.xPlatform: windows/amd64Configure
Section titled “Configure”Run the interactive wizard (from an Administrator terminal):
astromeshctl initFor a non-interactive setup:
astromeshctl init --profile full --provider ollama --model llama3.1:8b --non-interactiveThis creates:
C:\ProgramData\Astromesh\config\runtime.yamlC:\ProgramData\Astromesh\config\providers.yamlC:\ProgramData\Astromesh\config\agents\default.agent.yaml
See Configuration for the full schema.
Start the Service
Section titled “Start the Service”# Start the serviceStart-Service AstromeshDaemon
# Set to start automatically on bootSet-Service AstromeshDaemon -StartupType AutomaticOr use the Services console (services.msc) — find Astromesh Daemon and start it.
To stop:
Stop-Service AstromeshDaemonVerify
Section titled “Verify”astromeshctl statusInvoke-RestMethod http://localhost:8000/v1/healthWindows Firewall
Section titled “Windows Firewall”To allow external access to the API (optional, only needed if accessing from other machines):
New-NetFirewallRule ` -DisplayName "Astromesh API" ` -Direction Inbound ` -Protocol TCP ` -LocalPort 8000 ` -Action AllowLog Access
Section titled “Log Access”Logs are written to C:\ProgramData\Astromesh\logs\:
# Follow live logsGet-Content "C:\ProgramData\Astromesh\logs\astromeshd.log" -Wait -Tail 50
# View errorsSelect-String -Path "C:\ProgramData\Astromesh\logs\astromeshd.log" -Pattern "ERROR"
# Windows Event LogGet-EventLog -LogName Application -Source AstromeshDaemon -Newest 50Filesystem Paths
Section titled “Filesystem Paths”| Path | Purpose |
|---|---|
C:\ProgramData\Astromesh\config\ | Configuration files |
C:\ProgramData\Astromesh\data\ | Persistent state (memory, models) |
C:\ProgramData\Astromesh\logs\ | Log files |
C:\Program Files\Astromesh\bin\ | astromeshd.exe and astromeshctl.exe |
Upgrade
Section titled “Upgrade”# Download new versionInvoke-WebRequest ` -Uri https://github.com/monaccode/astromesh/releases/latest/download/astromesh_latest_windows_amd64.zip ` -OutFile astromesh.zip
Expand-Archive -Path astromesh.zip -DestinationPath .\astromesh -Forcecd .\astromesh.\install.ps1The installer stops the service, upgrades binaries, and restarts the service.
Uninstall
Section titled “Uninstall”# Stop and remove the serviceStop-Service AstromeshDaemonsc.exe delete AstromeshDaemon
# Remove binariesRemove-Item "C:\Program Files\Astromesh" -Recurse -ForceTo remove all configuration and data:
Remove-Item "C:\ProgramData\Astromesh" -Recurse -ForceNext Steps
Section titled “Next Steps”- Configuration — Customize runtime.yaml and profiles
- CLI Reference — Full astromeshctl reference
- Troubleshooting — Common Windows issues