# install.ps1 — one-shot installer for Claude Code + a cmux-style terminal on Windows # # irm https://YOUR-DOMAIN/install.ps1 | iex # # NOTE: cmux is a macOS-only app, so it cannot run on Windows. This installs # Windows Terminal (tabs + split panes + notifications) as the closest native # stand-in for running multiple AI coding agents side by side. # # Installs (only what's missing): # - Git for Windows (required by Claude Code) # - Windows Terminal (cmux stand-in) # - Claude Code (the `claude` CLI) $ErrorActionPreference = 'Stop' function Say ($m) { Write-Host "==> $m" -ForegroundColor Cyan } function Ok ($m) { Write-Host "OK $m" -ForegroundColor Green } function Warn ($m) { Write-Host "! $m" -ForegroundColor Yellow } # ---- preflight ----------------------------------------------------------- $build = [System.Environment]::OSVersion.Version.Build if ($build -lt 17763) { Warn "Claude Code needs Windows 10 version 1809+ (build 17763). You have build $build." } if (-not (Get-Command winget -ErrorAction SilentlyContinue)) { throw "winget is required but not found. Install 'App Installer' from the Microsoft Store, then re-run this command." } function Ensure-Package($id, $name) { Say "Checking $name…" $present = winget list --id $id -e --accept-source-agreements 2>$null | Select-String -SimpleMatch $id if ($present) { Ok "$name already installed" } else { Say "Installing $name…" winget install --id $id -e --silent ` --accept-source-agreements --accept-package-agreements Ok "$name installed" } } # ---- Git for Windows (required by Claude Code) --------------------------- Ensure-Package "Git.Git" "Git for Windows" # ---- Windows Terminal (cmux stand-in) ------------------------------------ Ensure-Package "Microsoft.WindowsTerminal" "Windows Terminal" # ---- Claude Code --------------------------------------------------------- if (Get-Command claude -ErrorAction SilentlyContinue) { Ok "Claude Code already installed" } else { Say "Installing Claude Code…" Invoke-RestMethod https://claude.ai/install.ps1 | Invoke-Expression } # ---- done ---------------------------------------------------------------- Write-Host "" Write-Host "All set!" -ForegroundColor Green Write-Host @" Next steps: 1. Close and reopen Windows Terminal so PATH refreshes. 2. Run: claude 3. The first run opens your browser to sign in. (Claude Code needs a Claude Pro/Max plan or an Anthropic API key.) Tip: Windows Terminal gives you tabs (Ctrl+Shift+T) and split panes (Alt+Shift+D), so you can run several Claude agents side by side — the Windows stand-in for cmux. "@