From 57943b17f3a796dd24e87414eaaf07dff5ad98e5 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Fri, 10 Apr 2026 02:25:47 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20reframe=20Windows=20setup=20=E2=80=94?= =?UTF-8?q?=20PowerShell=20is=20supported,=20Git=20Bash/WSL=20optional?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previous wording said 'recommended shell is Git Bash or WSL (not PowerShell, not cmd)' which was incorrect — claw builds and runs fine in PowerShell. New framing: - PowerShell: supported primary Windows path with PowerShell-style commands - Git Bash / WSL: optional alternatives, not requirements - MINGW64 note moved to Git Bash callout (no longer implies it is required) Source: gaebal-gajae correction 2026-04-10. --- README.md | 31 +++++++++++++------------------ 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index ea20951..ae613f0 100644 --- a/README.md +++ b/README.md @@ -72,34 +72,29 @@ export ANTHROPIC_API_KEY="sk-ant-..." > [!NOTE] > **Windows (PowerShell):** the binary is `claw.exe`, not `claw`. Use `.\target\debug\claw.exe` or run `cargo run -- prompt "say hello"` to skip the path lookup. -### Windows setup (Git Bash / WSL) +### Windows setup -If you are on Windows, the recommended shell is **Git Bash** (ships with Git for Windows) or **WSL**. Full sequence: +**PowerShell is a supported Windows path.** Use whichever shell works for you. The common onboarding issues on Windows are: -1. **Install Rust** — download from and run the installer. Close and reopen the terminal when it finishes. -2. **Open Git Bash** — search for "Git Bash" in the Start menu (not PowerShell, not cmd). The prompt shows `MINGW64` — this is normal and expected, not a broken install. -3. **Verify Rust is on PATH:** - ```bash +1. **Install Rust first** — download from and run the installer. Close and reopen your terminal when it finishes. +2. **Verify Rust is on PATH:** + ```powershell cargo --version ``` - If you see `bash: cargo: command not found`, run `. ~/.cargo/env` or restart Git Bash, then retry. -4. **Use bash-style paths** — in Git Bash, `C:\Users\you` becomes `/c/Users/you`: - ```bash - cd /c/Users/you/projects - ``` -5. **Clone and build:** - ```bash + If this fails, reopen your terminal or run the PATH setup from the Rust installer output, then retry. +3. **Clone and build** (works in PowerShell, Git Bash, or WSL): + ```powershell git clone https://github.com/ultraworkers/claw-code cd claw-code/rust cargo build --workspace ``` -6. **Run:** - ```bash - export ANTHROPIC_API_KEY="sk-ant-..." - ./target/debug/claw prompt "say hello" +4. **Run** (PowerShell — note `.exe` and backslash): + ```powershell + $env:ANTHROPIC_API_KEY = "sk-ant-..." + .\target\debug\claw.exe prompt "say hello" ``` -> **WSL tip:** WSL2 (`wsl --install` from an admin PowerShell) is the most friction-free Windows path — follow the Linux quick-start steps inside the WSL terminal. +**Git Bash / WSL** are optional alternatives, not requirements. If you prefer bash-style paths (`/c/Users/you/...` instead of `C:\Users\you\...`), Git Bash (ships with Git for Windows) works well. In Git Bash, the `MINGW64` prompt is expected and normal — not a broken install. > [!NOTE] > **Auth:** claw requires an **API key** (`ANTHROPIC_API_KEY`, `OPENAI_API_KEY`, etc.) — Claude subscription login is not a supported auth path.