# Windows
<!--
ref: @protocol/windows
type: protocol
tags: [windows, powershell, wsl, install, onboarding, portability]
aliases: [windows-bootstrap, powershell, wsl, windows-install]
triggers: [I'm on Windows, install protocol on Windows, PowerShell, convert this .sh script, bash script won't run on Windows, curly on Windows]
trigger_prompt: You are running on Windows — PowerShell, cmd, or Git Bash — and a protocol hands you bash or a .sh asset, or you are installing protocol.supply on a Windows machine.
category: core
last_reviewed: 2026-10-12
complements: [@protocol/install, @protocol/onboarding, @protocol/agent-config-integration]
audience: [claude-code-user, codex-user, cursor-user, terminal-only]
version: 1
updated_at: 2026-10-12T22:57:03.135Z
-->

How to use protocol.supply on Windows: run in WSL2 if you can, and otherwise convert the bash in our protocols to PowerShell yourself, by the rules below. We ship no Windows scripts.

Every protocol here is written for bash on macOS or Linux. That is deliberate: one version of each asset, readable by every agent, instead of two that drift. On Windows your agent does the translation, at the moment it needs it, with the rules on this page.

## Pick your path

| Path | Status | What it means |
|---|---|---|
| **WSL2** | **supported** | Run your agent (Claude Code or Codex) inside WSL2. It's Linux: follow `@protocol/install` exactly as written and ignore the rest of this page. |
| **Git Bash** | best effort | bash, curl and coreutils come with Git for Windows; add `jq` and `yq` and curly runs as-is. Claude Code on native Windows runs its Bash tool through Git Bash whenever Git for Windows is installed — install it first. |
| **PowerShell only** | best effort | No bash at all — Codex on native Windows, or Claude Code without Git for Windows (it falls back to its PowerShell tool). Anonymous reads work with `curl.exe`; anything authenticated needs curly, so either use Git Bash for curly or have your agent convert it (§Converting). |

Not sure which you're in? `$PSVersionTable` answers in PowerShell; `uname -a` answers in bash (WSL prints `microsoft` in the kernel name).

**Codex on Windows:** the default `workspace-write` sandbox blocks network for commands on every OS. Allow it in `%USERPROFILE%\.codex\config.toml` (or `~/.codex/config.toml` in WSL):

```toml
[sandbox_workspace_write]
network_access = true
```

## Anonymous reads — no install

Everything public works with the `curl.exe` that ships with Windows 10 and 11. Type `curl.exe`, not `curl`: in Windows PowerShell 5.1, `curl` is an alias for `Invoke-WebRequest` and returns an object, not the text.

```powershell
curl.exe -sL https://api.protocol.supply/bootstrap
curl.exe -sL "https://api.protocol.supply/search?q=deploy"
curl.exe -sL https://api.protocol.supply/@protocol/onboarding
```

## curly on Git Bash

```bash
winget install jqlang.jq MikeFarah.yq     # in PowerShell; reopen Git Bash after
mkdir -p ~/.local/bin
curl -fsSL https://raw.githubusercontent.com/wildeagency/curly/main/curly -o ~/.local/bin/curly
chmod +x ~/.local/bin/curly
export PATH="$HOME/.local/bin:$PATH"      # add to ~/.bashrc
```

Read the script before you run it — that's the rule everywhere, not just here. Then the token step, as on every platform: **the operator** runs `curly init protocol` in their own Git Bash window, and the token goes into the hidden prompt. In Git Bash `~` is `%USERPROFILE%`, so the config lands at `%USERPROFILE%\.curly.yaml`.

## Converting — rules for the agent

When a protocol gives you bash and you have only PowerShell, translate it yourself. Convert what you are about to run, not whole repos. Show the operator the converted version before you run anything that writes outside the project.

| bash | PowerShell |
|---|---|
| `#!/usr/bin/env bash` and the `.sh` name | drop the shebang; save as `.ps1` |
| `$HOME`, `~` | `$env:USERPROFILE` |
| `~/.local/bin` on `PATH` | `$env:USERPROFILE\.local\bin`; persist with `[Environment]::SetEnvironmentVariable('Path', "$env:Path;<dir>", 'User')` |
| `/` in paths | `Join-Path`, or `\` (PowerShell accepts `/` in most cmdlets — not in every native exe) |
| `export VAR=x` | `$env:VAR = 'x'` |
| `mkdir -p d` | `New-Item -ItemType Directory -Force d \| Out-Null` |
| `cat > f <<'EOF' … EOF` | `@' … '@ \| Set-Content -Encoding utf8 f` — the closing `'@` must start at column 0 |
| `chmod +x f` | nothing; if scripts are blocked, `Set-ExecutionPolicy -Scope CurrentUser RemoteSigned` (operator's call) or `Unblock-File f` |
| `chmod 600 f` | `icacls f /inheritance:r /grant:r "$($env:USERNAME):(R,W)"` |
| `curl` | `curl.exe` |
| `jq` | `ConvertFrom-Json` / `ConvertTo-Json -Depth 10`, or `winget install jqlang.jq` |
| `yq` | `winget install MikeFarah.yq` |
| `grep pat f` | `Select-String -Pattern pat -Path f` |
| `wc -l f` | `(Get-Content f).Count` |
| `cmd 2>/dev/null` | `cmd 2>$null` |
| `command -v x` | `Get-Command x -ErrorAction SilentlyContinue` |
| `a && b` | works in PowerShell 7; in Windows PowerShell 5.1 use `a; if ($?) { b }` |
| `read -s` / `stty -echo` (hidden input) | `Read-Host -AsSecureString` — and only ever in the operator's own window |

**The token rule does not convert away.** A converted curly must still take the token through a hidden prompt the operator types into, store it in a file only their account can read (`icacls`, above), and never pass it as an argument or an environment one-liner. If a conversion can't keep that, use Git Bash instead.

## Where the files live

| Thing | macOS / Linux / WSL | Native Windows |
|---|---|---|
| curly config | `~/.curly.yaml` | `%USERPROFILE%\.curly.yaml` |
| Claude Code user instructions | `~/.claude/CLAUDE.md` | `%USERPROFILE%\.claude\CLAUDE.md` |
| Codex user instructions | `~/.codex/AGENTS.md` | `%USERPROFILE%\.codex\AGENTS.md` |
| Codex config | `~/.codex/config.toml` | `%USERPROFILE%\.codex\config.toml` |
| Codex user skills | `~/.agents/skills/` | `%USERPROFILE%\.agents\skills\` |

WSL and native Windows keep **separate** homes. An agent in WSL reads the Linux `~`, not `%USERPROFILE%`. Pick one and keep curly, its config and the instructions file on the same side.

## Onboarding

Windows changes how you run the steps, not what the steps are. Walk `@protocol/onboarding` as written, and record `"os": "windows-wsl"` or `"os": "windows"` in the onboarding impulse so the next session knows which rules apply.

---

*Related: `@content/youtube/hormozi/we-made-a-big-decision` · `@content/youtube/starter-story/the-onboarding-behind-my-40k-month-app-full-breakdown` · `@content/youtube/aie/unlock-agent-autonomy-the-runtime-for-ai-native-systems-tushar-jain-docker` · `@content/youtube/saas-academy/stop-churn-before-it-starts-w-johnny-page` · `@content/youtube/hormozi/how-to-get-your-customers-to-stay-forever`*

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*