There are two ways to run HQ on Windows. Pick by what your computer allows.
| Item | Full HQ (WSL2) | HQ Lite (native) |
|---|---|---|
| For | Your own PC, or any PC that can run WSL2 | Work computers that block WSL2, virtualization or installers |
| You get | Everything: coding agents, chat bots, every tool | Web app, tasks, notes, search, VS Code agents over MCP |
| Needs | WSL2 (an administrator turns it on once) | Nothing: one program in your user profile, no administrator |
| Not available | Coding agents, the sandbox, chat bots, anything that sends your notes to another service | |
| Guide | this page | HQ_LITE.md and CORPORATE_WORKSTATION.md |
Full HQ is the default and the better choice wherever it works. Lite exists for the computers where it cannot.
The installer picks with you
In PowerShell (a normal user is fine; it asks before doing anything):
irm https://agent-hq.online/install.ps1 | iex
It first looks, without changing anything, at whether WSL2 works here, whether you are an
administrator and whether virtualization is on. It recommends an edition and says why, and you can
choose the other. -Edition full or -Edition lite skips the question, -DryRun shows what it
would do, and -Yes accepts the defaults:
& ([scriptblock]::Create((irm https://agent-hq.online/install.ps1))) -Edition lite -DryRun
For Full HQ it runs the steps in sections 1 and 2 below for you, each shown first and each
skippable, and stops after the one that needs a restart. For HQ Lite it downloads the zip, checks
the release signature and its SHA-256, unpacks it under %LOCALAPPDATA%\hq-lite and starts it once to see whether your
computer lets it run. If a policy (AppLocker, Windows Defender Application Control, Smart App
Control) refuses, it removes the file and lists what you can do instead. It does not try to get
past the policy. It changes no system setting, never elevates itself, and Lite builds are not
code-signed yet, so the checksum shows the download is intact, not who made it.
The rest of this page is Full HQ by hand.
Full HQ in WSL2
HQ, its coding-agent host and the agents it runs (Claude Code, Codex and the rest) all run inside WSL2, which is a normal Ubuntu on your Windows machine. You use HQ from your Windows browser as usual. Everything below happens once.
Two ways to use a Windows machine:
- HQ runs on this PC. Install HQ inside WSL2, open the web app in your Windows browser. Coding agents run in the same WSL2 install.
- This PC runs coding agents for the HQ on your phone. Install HQ inside WSL2 and pair it with the phone by QR code. No VPN needed.
You can do both on one PC.
1. Set up WSL2 (once)
In PowerShell as a normal user:
wsl --install -d Ubuntu
Restart if Windows asks, then open Ubuntu from the Start menu and create your Linux user. Then make systemd the init system, which lets HQ’s host run as a service. In the Ubuntu shell:
printf '[boot]\nsystemd=true\n' | sudo tee /etc/wsl.conf
and in PowerShell run wsl --shutdown, then open Ubuntu again.
Install what HQ needs, still in Ubuntu:
sudo apt update && sudo apt install -y curl openssh-server bubblewrap
sudo systemctl enable --now ssh
sudo loginctl enable-linger "$USER"
bubblewrapis the sandbox agents run in. Ubuntu 24.04 blocks the user namespaces it needs, so also runsudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0and keep it after reboots withecho 'kernel.apparmor_restrict_unprivileged_userns = 0' | sudo tee /etc/sysctl.d/60-hq.conf.openssh-serveris only needed when another machine’s HQ will drive agents here.enable-lingerkeeps HQ’s host running when no Ubuntu window is open.
Keep your projects in the Linux file system (~/projects), not under /mnt/c: it is much faster
and agents handle permissions correctly there. Open them from Windows with
\\wsl$\Ubuntu\home\<you>\projects if you want to browse them in Explorer.
2. Install HQ (once)
In Ubuntu:
curl -fsSL https://agent-hq.online/install.sh | bash
export PATH="$HOME/.local/bin:$PATH"
hq install
Then follow the normal quick start: add a model key with hq env, start
with hq start all, and open http://localhost:5678 in your Windows browser (WSL2 forwards
localhost for you). To keep HQ running in the background, run hq start all from a systemd user
service as described in deploy/README.md.
3. Coding agents on this PC
Install the agent inside Ubuntu and sign in there, for example Claude Code (see its own install instructions), then run:
hq host install
That starts the built-in host as a service. HQ on this PC uses it with no further setup: start a
session from the web app or hq sessions spawn claude-code --cwd ~/projects/my-app.
Agents started from the Workbench page run in ~/Documents/HQ inside Ubuntu, which hq host install and hq host join create. Open it from Windows Explorer at
\\wsl$\Ubuntu\home\<you>\Documents\HQ (the Workbench page shows the exact path). It stays in the
Linux file system on purpose: agents work much faster there and permissions behave correctly.
4. Pair this PC with your phone
Pair the Ubuntu shell with the phone, the same way as any machine in JOIN_A_MACHINE.md. Run these steps inside Ubuntu.
If hq is not installed in Ubuntu yet, install it first:
curl -fsSL https://agent-hq.online/install.sh | bash
-
Let the host’s gate listen on loopback, where bridge traffic arrives, in
~/.hq/config.yaml:agent_host: gate_listen: 127.0.0.1:7747 gate_allowed_sources: [127.0.0.1]then install the host as a login service with
hq host install. A host already running needs a restart to read the change. -
On the phone, open paired devices and show the pairing code. In Ubuntu run:
hq bridge joinand paste or scan the link. Ubuntu shows six digits; type them on the phone.
-
Keep the bridge up. Run
hq bridge serveas a service (WSL2 has systemd from step 1) or in a terminal.
The phone then lists this PC as a host, and its agents call back to the phone’s HQ. After pairing, hq bridge join offers to add HQ to Claude Code in this Ubuntu (hq claude add does the same later), so Claude Code here reaches the phone’s HQ too. Revoke it on the
phone, or with hq bridge revoke <id> in Ubuntu.
WSL2’s network sits behind Windows. The bridge dials out from this PC, so nothing needs opening.
Older setup: Tailscale
Only needed for an HQ that is not on your phone.
Both machines need Tailscale. WSL2 has its own network, so install it
inside Ubuntu (curl -fsSL https://tailscale.com/install.sh | sh, then
sudo tailscale up --hostname <name>-wsl); that Ubuntu is its own node on your tailnet and its
address is the one the other HQ connects to. Then pair as for any machine:
- In Ubuntu:
hq host joinand copy the join code it prints. - On the HQ:
hq host add <code>(or have its agent call thehost_addtool). It prints one command starting withhq host authorize. - In Ubuntu: run that command.
- On the HQ:
hq host check <name>.
Limits and troubleshooting
- WSL2 stops when its last window closes unless something keeps it alive;
enable-lingerand the host service do that. If a session says the host is unreachable, open Ubuntu once and runhq host status. cannot sandbox the agentwhen starting a session:bubblewrapis missing, or the sysctl in step 1 is not set.bwrap --ro-bind / / trueshould print nothing.- A coding agent sandboxed on Linux reads and writes freely by default (the
openprofile) but cannot reach HQ’s own files or your credential directories. Paths that do not exist yet (a~/.zshrcyou do not have) cannot be protected; see AGENT_HOST.md. - Windows itself is reachable only as far as WSL2 shares it: files on
C:\are under/mnt/c. Underagent_host.sandbox.profile: strictthat is a read-only system area unless you add it toagent_host.sandbox.writable.