Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
e7f62ed
ci: run turno-browser and turno-core tests on windows-latest
william-monroy Nov 22, 2026
3c335ea
ci: run the browser tests on windows even when core tests fail
william-monroy Nov 22, 2026
ec3275d
feat(core): Windows paths, PATHEXT lookup, process table and tree kill
william-monroy Nov 22, 2026
6d6f368
feat(browser): run on Windows with named pipes, taskkill and the Wind…
william-monroy Nov 22, 2026
ccb7782
fix(browser): Windows session owners, doctor hints and docs for Windows
william-monroy Nov 22, 2026
d4f86b1
fix: pack on Windows, and let the test guard allow PowerShell's caches
william-monroy Nov 22, 2026
6099ad6
fix: read pnpm-lock.yaml with CRLF line endings when packing on Windows
william-monroy Nov 22, 2026
1666b52
fix(browser): Chrome on Windows gets the account's USERPROFILE, and f…
william-monroy Nov 22, 2026
2893c4d
fix(core): give Windows PowerShell its modules folder, and run the re…
william-monroy Nov 22, 2026
b4ddaa0
fix(browser): keep the standalone executable's agent command next to …
william-monroy Nov 22, 2026
1ad098a
fix(browser): record Chrome's pid on Windows, and run the secret stor…
william-monroy Nov 22, 2026
5d4bb81
ci: time Windows PowerShell under a trimmed environment (temporary)
william-monroy Nov 22, 2026
c8a347a
fix(core): call WMI and DPAPI through .NET in Windows PowerShell, wit…
william-monroy Nov 22, 2026
73dfe4d
test(browser): Windows paths and the DPAPI test store in the remove, …
william-monroy Nov 22, 2026
8e96903
test(browser): let the guard ignore what Windows and Playwright cache…
william-monroy Nov 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/feat-browser-windows.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"turno-browser": minor
"turno-core": minor
---

turno-browser runs on Windows 10 and 11 (x64): `npm install --global turno-browser`, no admin rights. It finds Google Chrome, Microsoft Edge and Brave in `Program Files`, `Program Files (x86)` and `%LOCALAPPDATA%`, and `install-browser` puts Chrome for Testing in `%LOCALAPPDATA%\ms-playwright`. Identities live in `%LOCALAPPDATA%\turno\data`, settings in `%APPDATA%\turno` and runtime state in `%LOCALAPPDATA%\turno\state`; the `TURNO_*_DIR` and `XDG_*` variables still move them. The background server and the live view listen on named pipes (`\\.\pipe\turno-browser-<id>-<hash>`) instead of socket files. A Chrome left running is found through its profile's lock and the process table, and ended with its helpers by `taskkill /T`; messages say `taskkill /PID <pid> /T /F` where they said `kill <pid>`. `setup` and `init` register the server as `cmd /c turno-browser-mcp --identity <id>`, and `init --yes` runs an agent's `.cmd` command through `cmd.exe` with each argument quoted. The vault and `keychain:` secrets use turno-core's Windows secret store (DPAPI files). Lightpanda has no Windows build.

turno-core: the turno folders follow Windows' conventions (`%APPDATA%`, `%LOCALAPPDATA%`), `findOnPath` reads `PATHEXT`, a file replaced while another process reads it is retried instead of failing, and `killTree` ends a process tree on every platform. The Windows process table and the DPAPI store call WMI and DPAPI through .NET only, with no cmdlet, so Windows PowerShell answers in a fraction of a second even in the few variables an agent passes its servers (a cmdlet there took 20 seconds).
95 changes: 76 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,82 @@ jobs:
TURNO_SKIP_E2E: "1"
- run: node scripts/pack-check.mjs

windows:
# turno-browser and the turno-core parts it uses on Windows. turno-cli (mcpd, launchd) is
# not supported there, so only these two packages build and test here.
name: browser on windows (node ${{ matrix.node }})
strategy:
fail-fast: false
matrix:
node: [22, 24]
runs-on: windows-latest
permissions:
contents: read # check out the code
env:
# The package scripts (rm -rf, chmod) are POSIX; pnpm runs them with Git Bash here.
npm_config_script_shell: C:\Program Files\Git\bin\bash.exe
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ${{ matrix.node }}
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm --filter turno-core --filter turno-browser run build
- run: pnpm --filter turno-core --filter turno-browser run typecheck
# The core suite, the Windows secret store's DPAPI round trip included.
- run: pnpm --filter turno-core run test
- run: pnpm --filter turno-browser run test
if: ${{ !cancelled() }}
# What a person gets from npm: the packed packages installed with npm (its .cmd shims),
# then install-browser and a smoke launch of Chrome through doctor, in a scratch turno folder.
- name: Install the packed packages with npm and run them
if: ${{ !cancelled() }}
shell: pwsh
run: |
$ErrorActionPreference = "Stop"
$pack = Join-Path $env:RUNNER_TEMP "pack"
$app = Join-Path $env:RUNNER_TEMP "app"
New-Item -ItemType Directory -Force $pack, $app | Out-Null
foreach ($pkg in "core", "browser") {
Push-Location "packages/$pkg"; pnpm pack --pack-destination $pack; Pop-Location
if ($LASTEXITCODE) { exit 1 }
}
$core = (Get-ChildItem $pack -Filter "turno-core-*.tgz").FullName
$browser = (Get-ChildItem $pack -Filter "turno-browser-*.tgz").FullName
@{ private = $true; dependencies = @{ "turno-browser" = "file:$browser" }; overrides = @{ "turno-core" = "file:$core" } } |
ConvertTo-Json | Set-Content (Join-Path $app "package.json")
Set-Location $app
npm install --no-audit --no-fund
if ($LASTEXITCODE) { exit 1 }
$env:TURNO_CONFIG_DIR = Join-Path $env:RUNNER_TEMP "turno\config"
$env:TURNO_STATE_DIR = Join-Path $env:RUNNER_TEMP "turno\state"
$env:TURNO_DATA_DIR = Join-Path $env:RUNNER_TEMP "turno\data"
$env:Path = "$app\node_modules\.bin;$env:Path"
cmd /c "turno-browser --version"
if ($LASTEXITCODE) { exit 1 }
cmd /c "turno-browser add smoke"
if ($LASTEXITCODE) { exit 1 }
cmd /c "turno-browser setup claude-code --identity smoke"
# Chrome for Testing goes to %LOCALAPPDATA%\ms-playwright: no admin rights needed.
cmd /c "turno-browser install-browser"
if ($LASTEXITCODE) { exit 1 }
$doctor = cmd /c "turno-browser doctor --json" | Out-String
Write-Output $doctor
$checks = $doctor | ConvertFrom-Json
$checks = $checks.checks
if (-not ($checks | Where-Object { $_.status -eq "ok" -and $_.text -like "smoke launch:*" })) {
Write-Error "doctor did not start and close Chrome"
}
if (-not ($checks | Where-Object { $_.status -eq "ok" -and $_.text -like "Chrome for Testing *" })) {
Write-Error "doctor did not find the Chrome for Testing install-browser downloaded"
}
cmd /c "turno-browser remove smoke --yes"
if ($LASTEXITCODE) { exit 1 }

pull-request:
name: pull request rules
if: github.event_name == 'pull_request'
Expand Down Expand Up @@ -77,22 +153,3 @@ jobs:
with:
fail-on-severity: moderate
deny-licenses: GPL-2.0-only, GPL-2.0-or-later, GPL-3.0-only, GPL-3.0-or-later, AGPL-3.0-only, AGPL-3.0-or-later, SSPL-1.0

windows-secrets:
# The Windows secret store (DPAPI through Windows PowerShell) with a real round trip in a
# temporary folder. Only these tests run here; the rest of the suite is not ported to Windows.
name: secret store on windows
runs-on: windows-latest
permissions:
contents: read # check out the code
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 24
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm --filter turno-core exec vitest run test/secrets.test.ts --reporter verbose
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,9 @@ way. Only MCP tool calls go through `mcpd`, on `127.0.0.1`, with a bearer token
and requests with an `Origin` header are rejected so web pages cannot reach it.

**Linux? Windows?** Linux works too: secrets go to the Secret Service (`secret-tool`), mcpd runs
as a `systemd --user` unit, and links open with `xdg-open`. Windows is not supported.
as a `systemd --user` unit, and links open with `xdg-open`. turno itself does not run on Windows,
but turno-browser does, on its own: `npm install --global turno-browser` (see
[Get started](https://turno.wimo.dev/docs/browser/get-started#on-windows)).

**Can scripts and agents run turno?** Yes. turno asks only when a person is at a terminal: with
`--no-input` (or `TURNO_NO_INPUT=1`), when stdin is not a terminal, and inside a Claude Code,
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/docs/(docs)/faq.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ No. It launches the agent and gets out of the way. Only MCP tool calls go throug

## Linux? Windows?

Linux works too: secrets go to the Secret Service (`secret-tool`), mcpd runs as a `systemd --user` unit, and links open with `xdg-open`. Windows is not supported.
Linux works too: secrets go to the Secret Service (`secret-tool`), mcpd runs as a `systemd --user` unit, and links open with `xdg-open`. turno itself does not run on Windows, but turno-browser does, on its own: see [Get started](/docs/browser/get-started#on-windows).

## Can scripts and agents run turno?

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/docs/(docs)/get-started/install.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This page installs the `turno` command and shows how to update and remove it.

## Requirements

- macOS or Linux. Windows is not supported.
- macOS or Linux. turno does not run on Windows; turno-browser does, on its own ([Get started](/docs/browser/get-started#on-windows)).
- Node 22.11 or newer.
- At least one of the agents turno works with: Claude Code, Codex CLI, GitHub Copilot CLI or Cursor CLI.

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/docs/(docs)/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Machine ────────────────────────

turno is for the case where you run many sessions of several agents with more than one account. If you only need one of those pieces, other tools do it well: see the [comparison](/docs/comparison).

It runs on macOS and Linux with Node 22.11 or newer. Windows is not supported. Nothing leaves your machine: no account, no telemetry, no proxy for model traffic.
It runs on macOS and Linux with Node 22.11 or newer. On Windows only turno-browser runs, on its own ([Get started](/docs/browser/get-started#on-windows)). Nothing leaves your machine: no account, no telemetry, no proxy for model traffic.

<Callout title="Several accounts and your plan">
The intended use is separate work and personal accounts. turno runs each vendor's own, unmodified CLI, and each account stays bound by its vendor's terms. Do not use it to get around usage limits or safeguards. See [Vendor terms](/docs/security#vendor-terms).
Expand Down
18 changes: 17 additions & 1 deletion apps/docs/content/docs/browser/get-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,22 @@ npm install --global turno-browser

This installs two commands: `turno-browser`, which manages identities, and `turno-browser-mcp`, the MCP server an agent runs for one identity.

### On Windows

turno-browser runs on Windows 10 and 11 (x64) too. Install it the same way, from PowerShell or the Command Prompt, with no admin rights:

```powershell
npm install --global turno-browser
```

- **Browsers.** It finds Google Chrome, Microsoft Edge and Brave in `Program Files`, `Program Files (x86)` and, for an install for your user alone, `%LOCALAPPDATA%`. With none of them, `turno-browser install-browser` puts Chrome for Testing in `%LOCALAPPDATA%\ms-playwright`, and `winget install --id Google.Chrome.EXE --scope user` installs Chrome for your user alone.
- **Your data.** Identities and their profiles go to `%LOCALAPPDATA%\turno\data\browser`, settings to `%APPDATA%\turno` and runtime state to `%LOCALAPPDATA%\turno\state`. `TURNO_CONFIG_DIR`, `TURNO_STATE_DIR` and `TURNO_DATA_DIR`, or the `XDG_*` variables, move them as on Linux. [Identities](/docs/browser/identities#on-windows) has the details.
- **Agents.** npm installs `turno-browser-mcp` as a `.cmd` file, which a program can start only through `cmd.exe`, so `setup` and `init` register it as `cmd /c turno-browser-mcp --identity <id>`.
- **Secrets.** The [vault](/docs/browser/vault#on-windows) and `keychain:` secrets live in files encrypted with DPAPI for your Windows user.
- **Not on Windows:** Lightpanda, which has no Windows build. Camoufox was not tried there: `TURNO_CAMOUFOX_PATH` can name its `camoufox.exe`. turno itself (`turno-cli`) does not install on Windows: npm refuses it.

What was checked: the test suite, including the tests that start a real Google Chrome, on GitHub's `windows-latest` runner with Node 22 and 24, and an npm install of the packages followed by `install-browser` and `doctor`'s test launch. Edge and Brave are detected there but were not launched, and nobody has tried it by hand on a Windows 10 or 11 desktop or on ARM64 yet.

## Install without Node

On a machine without Node or npm, use the standalone executable: one file that holds turno-browser and the Node.js runtime it needs. It still drives the Chrome, Edge or Brave installed on the machine, or the Chrome for Testing that `turno-browser install-browser` puts in your user cache. The GitHub release of each turno-browser version, tagged `turno-browser@<version>` on the [releases page](https://github.com/wimo-dev/turno/releases), has one archive per platform and a `SHA256SUMS` file:
Expand All @@ -24,7 +40,7 @@ On a machine without Node or npm, use the standalone executable: one file that h
| Linux, x64 | `turno-browser-linux-x64.zip` |
| Windows, x64 (experimental) | `turno-browser-win-x64.zip` |

Windows is experimental: turno-browser does not support Windows yet, so that executable is published for testing and may not work.
The Windows executable is experimental: the npm install is what CI tests on Windows (see [On Windows](#on-windows)), while the release workflow only checks that this executable starts and answers an MCP request.

Each archive holds the executable (`turno-browser`, or `turno-browser.exe`) and its license files. The one executable is both programs: `turno-browser <command>` is the CLI, and `turno-browser mcp` is the MCP server that `turno-browser-mcp` is in the npm package.

Expand Down
23 changes: 19 additions & 4 deletions apps/docs/content/docs/browser/identities.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,19 @@ turno-browser login school
turno-browser list
```

Identities live under `~/.local/share/turno/browser/`. They hold live cookies of the sites you signed into: treat that folder as credentials.
Identities live under `~/.local/share/turno/browser/` (on Windows, `%LOCALAPPDATA%\turno\data\browser\`). They hold live cookies of the sites you signed into: treat that folder as credentials.

### On Windows

| What | Where |
|---|---|
| Identities, profiles, flows, recordings | `%LOCALAPPDATA%\turno\data\browser` |
| Settings | `%APPDATA%\turno` |
| Runtime locks, background server state, logs | `%LOCALAPPDATA%\turno\state` |

`TURNO_DATA_DIR`, `TURNO_CONFIG_DIR` and `TURNO_STATE_DIR` (or `XDG_DATA_HOME`, `XDG_CONFIG_HOME` and `XDG_STATE_HOME`) move them as on macOS and Linux.

The background server listens on a named pipe, `\\.\pipe\turno-browser-<id>-<hash>`, instead of a socket file. By default Windows lets only your user, the administrators and the system account write to a pipe like it, so nobody else can send it a request. The hash comes from the state folder, so two turno folders never share a pipe. When another program already holds that name, the server listens on `127.0.0.1` instead, with a bearer token kept in your state folder. Windows has no signals, so `background stop` asks the server to stop over its own pipe, and a holder that does not answer is ended with `taskkill /PID <pid> /T /F`, which ends its Chrome with it.

## Settings that do not change

Expand Down Expand Up @@ -84,7 +96,10 @@ turno-browser doctor
tools, the [live view](/docs/browser/live-view)'s picture and the [agent cursor](/docs/browser/agent-cursor)
worked, with cookies kept from one start to the next. Arc and Dia are Chromium builds turno has
not tested: give their path if you want to try one. On Linux turno looks in the packages' usual
places (`/opt/google/chrome`, `/opt/microsoft/msedge`, `/opt/brave.com/brave`, `/usr/bin`).
places (`/opt/google/chrome`, `/opt/microsoft/msedge`, `/opt/brave.com/brave`, `/usr/bin`). On
Windows it looks in `Program Files`, `Program Files (x86)` and `%LOCALAPPDATA%` (where a browser
installed for your user alone goes), and reads the version from the folder next to the browser
instead of starting it.

When Google Chrome is not installed, `add` and `init` pick the first browser they find and write
it to `identity.json`, so the profile never changes browser by itself. A server's own `--browser`
Expand All @@ -99,8 +114,8 @@ turno-browser set school --browser chrome-for-testing

`install-browser` downloads Chrome for Testing, the Chrome build Google publishes for automation,
with the installer of the Playwright build turno-browser uses: about 190 MB into your user cache
(`~/Library/Caches/ms-playwright` on macOS, `~/.cache/ms-playwright` on Linux, or
`PLAYWRIGHT_BROWSERS_PATH`). It needs no admin password and changes nothing outside that folder.
(`~/Library/Caches/ms-playwright` on macOS, `~/.cache/ms-playwright` on Linux,
`%LOCALAPPDATA%\ms-playwright` on Windows, or `PLAYWRIGHT_BROWSERS_PATH`). It needs no admin password and changes nothing outside that folder.
Its limits: it does not update itself (run the command again after you update turno-browser), it
can be a version behind Chrome, and Google publishes it for testing, not as an everyday browser.
Google's sign-in page loaded in it as in Chrome and Brave when turno tried it.
Expand Down
2 changes: 2 additions & 0 deletions packages/browser/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ npm install --global turno-browser
turno-browser init
```

It runs on macOS, Linux and Windows 10 and 11 (x64).

`init` asks a name for the identity, opens Chrome so you sign in by hand once, and gives the
identity to your agent. Each step is also a command of its own: `turno-browser add`, `login` and
`setup`.
Expand Down
Loading
Loading