Skip to content

Windows

On Windows, benches run inside WSL 2, never on Windows itself. Two small programs bring them to the Windows side:

  • benchbar.exe, the shim: every command forwards to benchbar inside the distro, so benchbar.exe status, up, down and doctor work from PowerShell.
  • BenchBar Tray, a notification area app: the runner shows the state of your benches, and a click opens them.

BenchBar for Windows is in beta. It works, and you may find rough edges. The tray and the window say so: a Beta pill, the window title “BenchBar (Beta)” and a banner that you can dismiss. Both programs are unsigned until the signing application is approved, so Smart App Control in enforce mode blocks them and SmartScreen warns on first start (see Code signing policy).

What you need

  • Windows 11, or Windows 10 version 2004 (build 19041) or later, with virtualization on in the firmware.
  • For the tray: the .NET 10 Desktop Runtime (winget install Microsoft.DotNet.DesktopRuntime.10).

Everything else the first run wizard sets up for you (see First run): WSL 2, Ubuntu 24.04 with systemd, your Linux user, benchbar inside the distro, linger, the keepalive task and benchbar.exe on your PATH. To do it by hand instead, see Set up from PowerShell.

First run

When BenchBar Tray starts and finds no bench, it opens the BenchBar window at Welcome: Set Up a New Bench, I Already Have a Bench or Just the Command Line Tool. + > New Bench opens it again later. The command line tool step runs the Linux installer of the same release as benchbar.exe inside the distro (install.sh from the v<version> tag, with --version v<version>); a development build uses main. To do it by hand, run in Ubuntu: curl -fsSL https://raw.githubusercontent.com/askysh/benchbar/main/install.sh | bash.

The first run wizard at Welcome

  1. Check Your PC lists every step with its state and a button to fix it: Windows version, virtualization, WSL, a pending restart, WSL version, the distro, the Linux user, systemd, the command line tool, linger, keepalive, the WSL idle settings and PATH. Set Up Everything runs the missing steps in order.
  2. Turning on WSL is the only step that needs administrator rights. It has a shield on its button, and Windows asks for permission once. If you say no, nothing changes and you can try again.
  3. When Windows needs a restart, Restart Now asks first, restarts in 15 seconds (shutdown /a cancels it) and opens the wizard where it was when you sign in again.
  4. Linux User: the name and password of your user in Ubuntu. The password is used to create the user and later for the sudo steps of the install, and is never stored.
  5. New Bench: the folder (default ~/frappe-bench), the site and the Administrator password; Review shows the plan of benchbar install --dry-run, with the steps that use sudo marked.
  6. Install streams every step. Stop, Retry and Open Log are there; when MariaDB already has a root password BenchBar does not know, a field asks for it.
  7. Done: Open Site, notifications, open at logon, and the claude mcp add benchbar -- benchbar.exe mcp line to copy.

Some rows in Check Your PC are advice: linger, keepalive, the WSL idle settings and PATH. They never block Continue. The other rows must be ok first.

Check Your PC with every step ok

For a distro whose user the wizard did not create, BenchBar asks for your Linux password right before the steps that use sudo.

The New Bench page

Review, the plan before Install

Every wizard page has a Report a Bug button in its footer, and a failed step has Report This Problem next to it. See Report a bug.

Set up from PowerShell

The wizard runs these, and you can too:

benchbar.exe setup check --json # every step, read only
benchbar.exe setup check --json --probe # also starts a stopped distro to check inside it
benchbar.exe setup run distro_install --jsonl

setup run takes one action at a time: wsl_enable (asks Windows for permission), wsl_update, distro_install, distro_user (the password in BENCHBAR_SETUP_PASSWORD), systemd, cli_install, linger, keepalive, wslconfig and path. With --jsonl it prints only JSON lines, and ends with one done line (exit, changed, reboot_required, cancelled, warnings, next_actions). setup never runs wsl --shutdown or --unregister; systemd and distro_user stop only that one distro.

The older commands still work: benchbar.exe path install, benchbar.exe adopt-distro, benchbar.exe keepalive install and benchbar.exe wslconfig --apply --yes.

Install

In PowerShell, as yourself (no administrator rights):

irm https://raw.githubusercontent.com/askysh/benchbar/main/install.ps1 | iex

The installer picks the zip for your CPU (x64 or Arm64) from the latest GitHub release, checks it against the release’s benchbar-windows-<version>-SHA256SUMS.txt, and installs it to %LOCALAPPDATA%\Programs\BenchBar. Then it puts that folder on your user PATH (benchbar.exe path install), checks the .NET 10 Desktop Runtime and prints the winget line when it is missing, offers to open the tray at logon, and ends with benchbar.exe doctor. Running it again updates in place. It writes nothing inside a WSL distro; the final doctor starts the distro if it is stopped.

Run as a file it takes -Version X.Y.Z (a given release), -NoTray (only benchbar.exe), -Yes (no questions) and -Zip PATH (a zip you downloaded). Piped into iex, set BENCHBAR_VERSION, BENCHBAR_NO_TRAY=1, BENCHBAR_YES=1 or BENCHBAR_ZIP=PATH first.

To run it as a file, download install.ps1 and run Unblock-File .\install.ps1 first (a downloaded script is blocked by the default execution policy), or start it with powershell -ExecutionPolicy Bypass -File .\install.ps1 ....

Without the script: download benchbar-windows-<version>-amd64.zip (or -arm64.zip) from the releases, check it with Get-FileHash, unpack it into a folder of your choice and run benchbar.exe path install from there.

A test build you were sent

Every zip carries install.ps1, so a build that is not on a release installs the same way, from its own folder:

  1. Unpack the whole zip (right click, Extract All) into a new folder, for example in Downloads. benchbar-windows-<version>-amd64.zip is for Intel and AMD PCs, -arm64.zip for Arm PCs.

  2. Open PowerShell in that folder and run:

    powershell -ExecutionPolicy Bypass -File .\install.ps1

It checks every file against the SHA256SUMS in the zip, installs to %LOCALAPPDATA%\Programs\BenchBar as above, and ends with benchbar.exe doctor. To keep the zip unpacked, pass it instead: .\install.ps1 -Zip .\benchbar-windows-<version>-amd64.zip. A checksums file next to the zip is checked too when there is one.

Every program in the zip is unsigned until the signing application is approved: SmartScreen shows “Windows protected your PC” on first start (More info, Run anyway), and Smart App Control in enforce mode blocks it. The README.txt in the zip says which programs are signed.

Code signing policy

Pending: this section takes effect when the SignPath Foundation application is approved. Until then the Windows binaries are unsigned.

  • Free code signing for the project’s own binaries (benchbar.exe, BenchBarTray.exe, BenchBarTray.dll, BenchBar.Tray.Core.dll) is provided by SignPath.io, with a certificate by SignPath Foundation. The signature names SignPath Foundation as the publisher.
  • Only binaries built by the release-windows.yml workflow of askysh/benchbar from a release tag are signed. Nothing built on a developer machine is.
  • Committers and reviewers: the members of the askysh/benchbar repository. Approver: Akash Mishra (@askysh), who approves each signing request.
  • Check a signature in PowerShell: Get-AuthenticodeSignature "$env:LOCALAPPDATA\Programs\BenchBar\benchbar.exe" shows Valid and the publisher.
  • Privacy: neither program sends data anywhere except to GitHub’s release list, for the update check described under Settings. Report a Bug writes its zip on your PC, and sends nothing until you post the issue yourself.

The tray

The tray flyout in light mode

The runner in the notification area sleeps when the benches are stopped, runs while one is up, stumbles when a bench crashes and holds a paused pose when the crash guard paused it or its ports are taken. With Windows animation effects off it shows still poses. It is tinted for a light or a dark taskbar.

Left click opens the flyout, one row per bench:

  • the state, the name and the default site, with Start or Stop, and Restart in the ⋯ menu;
  • Open site in your default browser (*.localhost answers on Windows, because WSL forwards localhost);
  • Logs: the last lines of the bench log in a read only window, with Clear, Copy and Open in Terminal (Windows Terminal, which follows the log with tail -f);
  • VS Code: the bench folder through the WSL extension (code --remote wsl+DISTRO PATH). Without code on PATH the row says how to get it;
  • Doctor: the checks of benchbar doctor with their fix lines and a Copy button. It changes nothing.

Esc closes the flyout, Enter on a row opens the site.

The tray flyout in dark mode

Right click opens the menu: Open BenchBar, Settings, Open BenchBar at logon (a shortcut in your Startup folder, no admin needed), Notifications, Appearance (System, Light or Dark), Runner (the seven built in runners, as on the Mac, and your own), Check for Updates, Help, Report a Bug and Quit.

The BenchBar window

Open BenchBar (the tray menu, the button at the top of the flyout, or a double click on the tray icon) opens the window. The sidebar lists your benches with their sites, then Find Benches and Team Profiles, a + menu (New Bench, I Already Have a Bench), and Settings and About at the foot. A banner says when a newer release is out, and a beta banner stays until you dismiss it once. Ctrl+N starts a new bench, Ctrl+, opens Settings and F5 checks again.

The BenchBar window with a bench open on Overview

A bench has four tabs:

  • Overview: state, address and uptime, Start or Stop, Restart, Open Site, Logs, Health and Open in , and a line that says why a bench is stopped and what to do next. The Scheduler switch, the lockfile state, Port Settings and Setup, and Console and Database (in Windows Terminal) are here too.
  • Sites: Add Site (the plan first, then the Administrator password goes to the CLI in its environment), Make Default, Back Up (with or without files), Backups…, Restore…, Drop Site… (type the site’s name to confirm) and Open. Windows resolves *.localhost itself, so BenchBar never edits a hosts file.
  • Apps: Add App (from a git URL, with a branch or a commit, and the sites to install it on), Update after the dry run, Install on a site, focus pins and Check Remotes. An app with local changes cannot be updated from the window.
  • Health: the doctor checks with the Windows setup checks, Copy fix, and Repair, which shows the plan first and asks for your Linux password once when a step uses sudo.

A bench on its Sites tab

Start and Restart check the bench’s ports first, from the window and from the flyout. A port another program holds stops the start with the reason and Review Port Conflict; BenchBar never stops that program.

Find Benches scans a folder inside the distro (default your Linux home), adds the benches it finds, sets up their ports and their management. Team Profiles creates a profile from a bench, imports or subscribes to one, exports, updates, checks access and removes. A Windows file path for import or export is converted with wslpath.

The log window filters by process, searches, follows the log (while the window is open), shows the previous log and opens tail -f in Windows Terminal.

Settings: open at logon, notifications, check for updates when the window opens, the distro (switching runs benchbar.exe adopt-distro), the editor (VS Code, Cursor or VS Code Insiders), the command line tool’s path, and the tray’s appearance and runner. About: the versions of the tray, benchbar.exe and the CLI inside the distro, Check for Updates, Report a Bug and the MCP line.

When a bench crashes, is paused by the crash guard or meets a port conflict, the tray shows one Windows notification with the bench and the command that fixes it. It does not repeat it until the state changes again.

When the distro is stopped

The tray asks WSL which distros run (wsl.exe --list --running), which does not start one, and asks benchbar.exe status only while the distro runs. A stopped distro shows the sleeping runner and a Start button in the flyout, which starts benchbar.exe keepalive run. This keeps the tray from waking a distro that WSL shut down after its idle time.

One keepalive runs at a time, for one distro. While it keeps one distro awake, Start cannot start a second distro, and the tray says so. Switch the distro in Settings, or stop the other keepalive first. This is a limit of the beta.

Settings

The tray keeps its settings under a tray key in %LOCALAPPDATA%\BenchBar\config.json, the file benchbar.exe uses for the distro. Custom runners go in %LOCALAPPDATA%\BenchBar\runners\<id>\, in the format of Custom runners; the frames are scaled to the notification area’s square slot.

Check for updates when the BenchBar window opens is on by default. When the window opens, the tray asks GitHub for the latest release, at most every six hours, and shows a banner when a newer one is out. Turn it off in Settings to stop those checks. Check for Updates in the menu and About always asks GitHub, and asks before it opens the release page.

What it costs

At rest the tray polls benchbar.exe status every 30 seconds while a bench runs and backs off to every 5 minutes when nothing is up. It starts nothing at all while the computer sleeps or is locked.

Measured on a Ryzen 7 6800H laptop: about 17 MB of private memory and under 0.1 percent of one core at rest, 0.6 percent while the runner runs. Once the flyout has been open, WPF keeps its graphics stack loaded and the tray stays at about 43 MB.

Report a bug

Report a Bug is in the tray menu, in About, in the beta banner, in the footer of every wizard page, and next to each failed step (Report This Problem). All of them do the same thing:

  1. They run benchbar.exe report-windows --json. It writes a redacted zip to %LOCALAPPDATA%\BenchBar\reports and keeps the newest 10.
  2. A small window says that the report is ready. It selects the zip in Explorer and opens a GitHub issue with the Windows bug form filled in (versions, Windows edition, distro and what you did). Show Zip and Open Issue do this again, and Copy Path copies the zip path.
  3. Drag the zip from Explorer into the last box of the form, say what happened, and submit.

The zip holds the versions, the Windows edition and build, the WSL status and distro list, the setup check (run without starting a distro) and, when the distro runs, the CLI’s own report. User names and home paths become <user>, and it holds no passwords. The full list is in windows/shim/README.md.

Report a Bug works with no WSL, with a stopped distro (it never starts one) and with no CLI installed. If benchbar.exe cannot start, the tray writes a smaller zip with its own log only.

For a security problem, do not use the form. See SECURITY.md.

Uninstall

Uninstalling BenchBar for Windows removes the two programs. It keeps WSL, the distro and your benches.

  1. Run benchbar.exe keepalive remove while benchbar.exe is still there. It removes the keepalive task.
  2. Quit the tray from its right click menu.
  3. Delete the BenchBar Tray shortcut in your Startup folder (open it with Run, shell:startup). This turns off open at logon.
  4. Remove %LOCALAPPDATA%\Programs\BenchBar from your user PATH: open Environment Variables (search for it in Start), edit the user Path and delete the entry for that folder.
  5. Delete the folder %LOCALAPPDATA%\Programs\BenchBar.

Your settings, runners and reports stay in %LOCALAPPDATA%\BenchBar. Delete that folder too when you no longer want them.

Removing the distro

To remove the Linux distro as well, run this in PowerShell:

wsl --unregister Ubuntu-24.04

Warning: this deletes everything inside the distro, including every bench, site and database in it, and it cannot be undone. Copy what you need out of the distro first. wsl --list --verbose shows the distro names.

What the tray does not do

  • It does not update itself. Check for Updates asks, then opens the release page.
  • It has no benchbar:// links yet, and no CPU source for the runner, so the runner runs at one speed. Team Profiles copies a benchbar://profile/import link for a team chat, but Windows has no handler for that address yet, so the link does not open BenchBar.
  • It never reads files inside the distro: every fact comes from benchbar.exe.
  • It has no Open as menu yet. From PowerShell, benchbar.exe site open-as on NAME turns it on for a site (it asks first), then benchbar.exe open --as USER opens the site signed in as that user in your Windows browser. The site needs a *.localhost name, which the Windows browser reaches without a hosts line. See benchbar open.
  • It cannot join a room. Rooms (benchbar share) are Mac only for now: WSL 2 does not expose a port to the Wi-Fi by default and Windows has no pf.

Labs

Labs work the same on Windows. benchbar.exe labs list shows them, and the ones that are not on Windows yet say so. benchbar.exe labs on NAME asks first in PowerShell. Turning one on is a person’s decision, so an agent with BENCHBAR_NONINTERACTIVE=1 is refused. See labs.