Menu

Loading the search index…

Last updated

On this page

What you actually need

#
RequirementWhyAuto-installed?
macOS, Linux, or Windows 10+Supported platformsn/a
Bun ≥ 1.3.14Installs omp (bun install -g); the hnl binary itself needs nothingyes (bun.sh)
A harness to code inHarnessLink runs no model itself; model credentials stay with each harnessomp is installed for you (--no-omp skips it); it signs in on first run

No GitHub account, token, git or compiler is needed: the installer downloads one signed hnl executable for your platform (~80–100 MB), checks its signature, and puts it in ~/.hnl/bin.

Alpine (musl). The installer adds bun's libstdc++ and libgcc via apk. The npm omp package ships only glibc natives, so on musl omp comes from the upstream omp-linux-musl-<arch> release binary instead, checked against the release's SHA256SUMS.txt. omp update keeps using the musl asset.

The installer also installs omp (@oh-my-pi/pi-coding-agent, upstream oh-my-pi), a harness to code in, and links it beside hnl. Pass --no-omp to skip that; Claude Code, Codex and pi work just as well.

Windows

#
powershell
irm https://harnesslink.sh/install.ps1 | iex

The PowerShell one-liner downloads and runs install.ps1 from harnesslink.sh. Open PowerShell and paste it.

Prerequisites

RequirementWhyAuto-installed?
Windows 10+Supportedn/a
Bun ≥ 1.3.14Installs omp; the hnl binary itself needs nothingyes (irm bun.sh/install.ps1 | iex)
A harness to code inHarnessLink runs no model itselfomp is installed for you (-NoOmp skips it)

The installer downloads the signed release manifest and the hnl executable for your platform from https://harnesslink.sh, checks the manifest's Ed25519 signature and the binary's hash against it, and refuses anything it cannot verify. No git, GitHub, tarball or compiler involved.

Installer parameters. irm … | iex cannot pass parameters. To pass them, download the script and run it as a file:

powershell
irm https://harnesslink.sh/install.ps1 -OutFile install.ps1
powershell -NoProfile -ExecutionPolicy Bypass -File .\install.ps1 -Yes
ParameterEffect
-DryRunPrint what it would do; change nothing; exit 0
-NoOmpSkip installing omp
-YesUnattended: skip the onboarding and print Finish setup: hnl cloud setup instead

There is no --with or --cloud equivalent on Windows. Install other harnesses afterwards with hnl harness install <id>, and run hnl cloud setup yourself after a -Yes install.

Troubleshooting on Windows

irm blocked by execution policy The default Windows policy may block running scripts downloaded from the internet. Bypass it for the current shell only (it is not a system-wide change):

powershell
Set-ExecutionPolicy -Scope Process Bypass
irm https://harnesslink.sh/install.ps1 | iex

hnl: command not found / hnl.cmd not recognised Bun's bin directory (%USERPROFILE%\.bun\bin) is not on PATH. Add it permanently in System Settings → Environment Variables, or for the current session:

powershell
$env:PATH = "$env:USERPROFILE\.bun\bin;$env:PATH"

Bun install fails behind a proxy Set HTTPS_PROXY before running the installer:

powershell
$env:HTTPS_PROXY = 'http://proxy.corp.example.com:8080'
irm https://harnesslink.sh/install.ps1 | iex

Environment variables for custom installs

powershell
$env:HNL_DIR  = 'D:\dev\hnl-src'   # an earlier source install to remove (default: ~/.hnl-src)
$env:HNL_SITE = 'https://harnesslink.sh'  # release + installer base URL
irm https://harnesslink.sh/install.ps1 | iex

Install

#
bash
curl -fsSL https://harnesslink.sh/install.sh | bash

harnesslink.sh serves the repository's install.sh verbatim; it is the only source and needs no authentication.

The installer (and hnl update) links one command, hnl (hnl.cmd on Windows). Earlier releases also linked superpi, harnesslink and hlk; hnl migrate, which runs automatically on install, on hnl update and when the service starts, removes those links (only the ones that point at HarnessLink) and moves an existing ~/.superpi to ~/.hnl. An installer-made source install (~/.hnl-src, ~/.superpi-src) is removed once the binary replaces it; a git checkout is never touched.

Options

#
bash
bash install.sh --help

  --dir <path>     Earlier source install to replace (default: ~/.hnl-src)
  --no-omp         Skip installing omp (a harness to code in)
  --with=<ids>     Also install the listed harnesses after omp (comma-separated)
                     Valid ids: omp claude-code codex gemini pi dsh
                     Example: --with=claude-code,codex
  --cloud          Run the onboarding even with --yes (it still needs a
                     terminal: sign-in happens in your browser)
  --yes            Assume yes for anything that modifies the system

The installer is re-runnable: every step checks before acting, so running it again updates rather than reinstalls.

Manual install

#

If you would rather see each step, do what install.sh does: fetch the signed manifest, check it, fetch your platform's binary, check it against the manifest, and link it. The installer is the reference (its hnl_verify_* functions hold the release keys); the short form below skips the signature check, so prefer the installer:

bash
mkdir -p ~/.hnl/bin
curl -fsSL https://harnesslink.sh/hnl/manifest.json -o /tmp/hnl-manifest.json
version=$(grep -o '"version":"[0-9.]*"' /tmp/hnl-manifest.json | head -1 | cut -d'"' -f4)
curl -fsSL "https://harnesslink.sh/hnl/$version/hnl-$(uname -s | tr '[:upper:]' '[:lower:]')-$(uname -m | sed 's/x86_64/x64/;s/aarch64/arm64/')" -o ~/.hnl/bin/hnl
chmod 755 ~/.hnl/bin/hnl
~/.hnl/bin/hnl --version && ~/.hnl/bin/hnl --smoke-test
ln -sfn ~/.hnl/bin/hnl ~/.bun/bin/hnl
bun install -g @oh-my-pi/pi-coding-agent   # omp, a harness to code in

Verify

#
bash
hnl --version
hnl --smoke-test
hnl                           # the home screen: service, sign-in, sync, each harness's wiring

--smoke-test loads every command and exercises the gateway and the MCP relay end to end in a throwaway directory, so a broken install fails here rather than on first use.

First run: the onboarding

#

An interactive install ends by opening hnl cloud setup directly (no extra question: its first screen is the confirmation). --yes, CI and other headless runs skip it and print Finish setup: hnl cloud setup instead. Run it any time:

bash
hnl cloud setup           # the onboarding: plan → sign in → everything else automatic
hnl cloud status          # sync health afterwards
hnl gateway status        # gateway + cloud sync health
  1. Plan. One screen lists everything that turns on, all of it on by

    default: sign in, cloud sync, the HarnessLink service, then each harness found on this machine with the features it supports here, then restoring from the cloud (sessions, history, memories, harness setup) and importing old memories. Per-harness features and where each applies:

    FeatureWhat it doesHarnesses
    Gateway routingmodel calls go through the local gatewayClaude Code, Codex, omp, pi
    Transcript syncsession transcripts, prompt history and the harness's own memory files uploadevery harness with an adapter: Claude Code, Codex, omp, pi, Cursor, Antigravity (see MULTI_HARNESS.md for what each one actually yields)
    Autobankevery finished turn becomes a memory bank entry, starting with the last 30 days; todo and plan snapshots too (see MEMORY_BANKING.md)omp, pi, Claude Code, Codex, Antigravity; not Cursor
    Context hooksproject brief, matching memories and your org's policy instructions injected before the model answers; org tool and command rules checked before every tool callClaude Code, Codex, omp
    Memory tools (MCP)HarnessLink's MCP server registered so the model can call memory tools (the entry it adds to the harness's config runs hnl mcp)omp, Claude Code, Codex

    A feature only appears when the harness is detected (its binary on PATH, or its data directory present). A What syncs block lists every sync category (prompt history from every harness, session transcripts, memories, usage from HarnessLink's old built-in agent, gateway usage, device profile), all ✓. Enter sets it all up, c customizes (toggle any sync category, harness or feature, including restore), q quits.

  2. Sign in. A HarnessLink Cloud account is required. The device code is shown

    large, the browser opens on the approval page (o reopens it, c copies the code), and a spinner waits for your approval. Already signed in? It shows the account and moves on. Cancelling (Esc) or failing stops with "Setup is not complete: a HarnessLink Cloud account is required", tells you to run hnl cloud setup again, and exits with code 1.

  3. Everything else runs by itself on a live checklist (spinner → ✓ or ✗

    with a one-line detail): cloud sync on, with your sync category choices → the HarnessLink service (launchd on macOS, a systemd --user unit on Linux, a logon task on Windows) → per harness: gateway routing, transcript sync, autobank, context hooks (see USAGE.md), memory tools → restore (additive: never overwrites a local file): sessions, prompt history, memories, harness setup (agents, commands, skills, rules), old memories (MemPalace, Hermes) → verify (the gateway answers and is signed in, one prompt-history pass over every harness, the memory bank from every harness, a real sync round trip, sync health). A failed step does not stop the ones after it. The HarnessLink service notices harnesses turned on after it started; it does not need a restart.

  4. Summary. ✓/✗ per step with the retry command for each failure, what

    is on now, and the standalone command for every piece.

Every piece stays a command of its own for manual setups:

PieceCommandUndo
Sign in (required)hnl cloud loginhnl cloud logout
Cloud sync (on whenever signed in)hnl cloud synccloud.sync: false in config.yml, or HNL_CLOUD_SYNC=0
What syncs (every category on by default)hnl cloud sync --enable <category>hnl cloud sync --disable <category>
HarnessLink servicehnl gateway starthnl gateway service uninstall
Gateway routinghnl gateway connect [id]hnl gateway disconnect [id]
Transcript synchnl cloud harnesses enable <id>hnl cloud harnesses disable <id>
Autobankhnl cloud autobank enable <id>hnl cloud autobank disable <id>
Context hookshnl harness context [id]hnl harness context [id] --remove
Memory tools (MCP)hnl mcp register --harness=<id> --yes
Restorehnl cloud pull-sessions --all · hnl cloud pull-history · hnl cloud pull-memories --all · hnl cloud restore --apply
Import old memorieshnl cloud import-memories --apply
Check it allhnl gateway status · hnl cloud status · hnl cloud autobank status

Without a terminal, hnl cloud setup prints this list and exits 1.

The dashboard's setup checklist

#

The dashboard's Setup page shows an eight-step checklist and ticks each step off from your real cloud data; the public copy lives at harnesslink.sh/docs#connect-the-cloud. On the Setup page, step 8's <device-id> is filled in with your real device id.

#StepWhat it meansCommandOptional
1Install and sign inThe installer puts HarnessLink and omp on the machine, then opens hnl cloud setup. Sign in once and it turns on cloud sync, the HarnessLink service and, for each harness it finds, gateway routing, transcript sync, autobank, context hooks and memory tools.curl -fsSL https://harnesslink.sh/install.sh | bash
2Cloud sync onSigning in turns sync on. Plain hnl shows sync health on its home screen; this shows what has uploaded and what is waiting.hnl cloud status
3First sync completedPrompt something in any connected harness (omp, Claude Code, Codex, pi, Antigravity). It shows here after the next sync; this command syncs now.hnl cloud sync
4Profile pushedThe HarnessLink service uploads this machine's profile by itself and again whenever it changes: HarnessLink's config and MCP server names, plus each harness's agents, commands, rules and skills. Never secret values. Push to refresh it now.hnl cloud push-profile
5Code intelligence wiredgortex is a separate code search tool. Once it is installed, HarnessLink wires it in as an MCP server, so your harnesses can search code across your repositories.curl -fsSL https://get.gortex.dev | sh✓
6HarnessLink skills folder in the profileSkills and agents in HarnessLink's own folder (~/.hnl/agent) travel inside the profile, so a new machine can restore them. Skills hnl add installs live in the harnesses' own skill folders instead; the Claude Code, omp and pi copies travel with that harness's setup. Ticks once a profile carries at least one. The dry run lists every file the profile would carry.hnl cloud push-profile --dry-run✓
7Memories in the cloudSetup turns this on: each harness's own memory files and its memory bank upload by themselves. Memories from MemPalace or ~/.hermes, if this machine has them, are imported once. Run the import again any time.hnl cloud import-memories --apply✓
8Adopt on another machineOn a fresh machine, restore this device's config, skills, tools and harness files. config.yml is backed up before it is replaced, harness files are only created (never overwritten), and MCP servers arrive disabled until you approve them.hnl cloud restore --device <device-id> --apply --install-tools✓

Updating

#
bash
hnl update

A picker over every harness on the machine (omp first, then HarnessLink itself, then Claude Code, Codex and others that are installed) runs each one's own updater. HarnessLink updates itself directly: it downloads the signed release manifest, verifies it, downloads the binary for this machine, verifies it against the manifest, smoke-tests it and swaps it in (hnl update --force reinstalls the running version). Non-interactive runs update HarnessLink directly.

Old-agent leftovers. HarnessLink's old built-in agent left git worktrees in ~/.hnl/wt (they can reach many GB) and the output of its background jobs in ~/.hnl/run/daemons (logs only, often hundreds of MB). hnl update and the hnl home screen offer to remove them, showing their combined size; hnl cleanup does it on demand. Nothing is deleted without your yes, and worktrees with uncommitted changes are listed and never deleted without saying so.

One machine, one platform. bun install -g unpacks every operating system and CPU a package ships, so a harness install drops Windows DLLs and Linux shared objects on a Mac (on one machine: 265 MB across five packages). HarnessLink removes them from what it installed — after each harness install or update, and shortly after the service starts. hnl prune lists them by package with sizes and removes them on demand, hnl prune --dry-run only lists, and hnl prune off stops the automatic pass. Nothing outside what HarnessLink installed is touched, a package that ships no build for this machine is reported rather than emptied, and reinstalling a package (bun install -g <package>) restores its files. The same pass keeps ~/.hnl/bin to this machine's binary plus the one hnl.previous rollback copy, clearing the hnl.old-<id>.exe copies a Windows install parks there.

An update tidies after itself. Re-running the installer over a binary install keeps the previous binary as ~/.hnl/bin/hnl.previous (one deep) for a manual rollback, and removes an installer-made source install (~/.hnl-src, ~/.superpi-src) now that the binary replaced it. A git checkout is never removed, and a release whose signature or binary does not verify is refused before anything is replaced.

Troubleshooting

#

hnl: command not found ~/.bun/bin is not on your PATH. Add it and open a new shell:

bash
export PATH="$HOME/.bun/bin:$PATH"

hnl says you are not signed in, or shows an empty setup Check which config directory is in use: a stray HNL_CONFIG_DIR in your environment will point the CLI at an empty profile:

bash
echo "$HNL_CONFIG_DIR"    # expect empty

HNL_CONFIG_DIR accepts either a relative name (resolved under $HOME, default .hnl) or an absolute path (used as-is as the full config root). A relative name such as cfg resolves to $HOME/cfg; an absolute path such as HNL_CONFIG_DIR=/tmp/cfg uses /tmp/cfg directly. To run against a different profile, set HNL_CONFIG_DIR to an absolute path, or set HOME to redirect all relative resolution. The pre-rename SUPERPI_* and HARNESSLINK_* variables are no longer read.

What an install puts on your machine

#

Everything, per operating system. Nothing is written outside this list: no PATH line in your shell config (the installer prints the line and lets you add it), no system-wide files except the admin-owned managed settings below, and every scratch directory a download uses is removed when the installer exits, however it exits.

WhatmacOS / LinuxWindows
The command~/.hnl/bin/hnl (+ hnl.previous rollback copy, release-manifest.json, .sig)%USERPROFILE%\.hnl\bin\hnl.exe (+ hnl.previous.exe, manifest)
On PATH~/.bun/bin/hnl → the binary%USERPROFILE%\.bun\bin\hnl.cmd
Your data~/.hnl/agent (sessions, memories, settings, sign-in, caches), ~/.hnl/logs%USERPROFILE%\.hnl\agent, ...\logs
Background service~/Library/LaunchAgents/sh.hnl.daemon.plist (macOS), ~/.config/systemd/user/hnl.service (Linux)the hnl logon task
Claude Codehooks (and the gateway base URL while connected) in ~/.claude/settings.json; mcpServers.hnl in ~/.claude.jsonsame under %USERPROFILE%
Codex~/.codex/hooks.json; [mcp_servers.hnl] in ~/.codex/config.tomlsame
omp~/.omp/agent/extensions/hnl-context.ts; mcpServers.hnl in ~/.omp/agent/mcp.jsonsame
pi~/.pi/agent/extensions/hnl-policy.tssame
Cursor~/.cursor/hooks.json; mcpServers.hnl in ~/.cursor/mcp.jsonsame
Managed settings (Team/Enterprise only, written with an administrator password)/Library/Application Support/ClaudeCode/managed-settings.d/ and /Library/Application Support/{Cursor,HarnessLink}/ (macOS), /etc/claude-code/, /etc/codex/, /etc/cursor/, /etc/harnesslink/ (Linux)C:\Program Files\ClaudeCode\managed-settings.d\, C:\ProgramData\{OpenAI\Codex,Cursor,HarnessLink}\

hnl doctor lists what exists on this machine; hnl uninstall --dry-run lists what would go.

Uninstalling

#

One command undoes exactly what installing did:

bash
hnl uninstall             # prints the plan, asks, then removes it
hnl uninstall --dry-run   # just the plan
hnl uninstall --purge     # also delete ~/.hnl: sessions, memories, sign-in
hnl uninstall --yes       # no prompts (scripts)

It stops and removes the background service, puts every harness config back the way it was (hooks, MCP entries, gateway base URLs — your own entries in those files are untouched), removes the system-level managed settings if your organisation had any (one administrator prompt), and deletes the hnl command and its link on PATH. Run it again any time: it only ever removes what is still there.

It never touches your harnesses (omp, pi, Claude Code, Codex, Cursor stay installed), Bun, or your own files. ~/.bun/bin/pi is the pi harness, not part of HarnessLink; remove a harness with its own uninstaller.

If the hnl command is already gone, the same cleanup by hand:

bash
rm -f ~/.bun/bin/hnl && rm -rf ~/.hnl/bin        # the command (your data sits beside it, in ~/.hnl)
rm -f ~/Library/LaunchAgents/sh.hnl.daemon.plist # macOS service (Linux: ~/.config/systemd/user/hnl.service)
rm -f ~/.codex/hooks.json ~/.cursor/hooks.json ~/.omp/agent/extensions/hnl-context.ts ~/.pi/agent/extensions/hnl-policy.ts

…then delete the hnl entries from ~/.claude/settings.json, ~/.claude.json, ~/.codex/config.toml, ~/.omp/agent/mcp.json and ~/.cursor/mcp.json. On Windows the same paths live under %USERPROFILE%, with hnl.cmd in .bun\bin and schtasks /Delete /TN hnl /F for the task.

Flag notifications