Connecting machines to the Console
Set up, test, upgrade and troubleshoot the Interlock Console add-on.
Connect a laptop, end to end
You need macOS or Linux (on Windows, use WSL2), Python 3.12 or later, and an org admin to create the key.
- Install Interlock 0.1.5 or later and protect your agents. Interlock starts in shadow mode: it records decisions and blocks nothing.
brew install pipx && pipx ensurepath # then open a new terminal pipx install --python python3.12 interlockd interlock init # shows every change and asks first interlock doctor && interlock selftest
- In your organization, open API keys and create a Daemons key. It is shown once; copy it.
- Install the Console add-on and connect:
export INTERLOCK_CONSOLE_KEY=<the key> # keeps the key out of your shell history pipx inject --pip-args=--no-deps interlockd interlockd-console --index-url "https://__token__:$INTERLOCK_CONSOLE_KEY@api.interlockd.dev/simple/" interlock plugins # "plugin API 1" and "console <version>" interlock console connect --name "$(hostname -s)" interlock restart sleep 15 && interlock console status # "last heartbeat: ok at ..."
- Open the Fleet tab: your machine is listed as online with its version, mode, agents and decision counts. With interlockd 0.2 or later it also shows the machine's protection state; a machine whose hooks, policy or token changed outside
interlockshows as compromised, with the reason.
Test an org policy safely
- In the Policy tab, write a small policy (for example
mode: enforce). It is checked as you type: errors, warnings, and anything a machine would ignore. Then Save it. - Publish it as a canary to your own machine only. It arrives at the next check-in (within 5 minutes;
interlock restartmakes one happen after 10 seconds):interlock console status # the org policy version applied cat ~/.interlock/managed-policy.yaml # what was written interlock policy lint # the managed layer and anything it ignores
- Roll back or Unpublish when you're done; the machine removes the policy at its next check-in.
Upgrade a machine
Machines don't update by themselves. On each one:
pipx upgrade interlockd pipx inject --force --pip-args=--no-deps interlockd interlockd-console --index-url "https://__token__:$INTERLOCK_CONSOLE_KEY@api.interlockd.dev/simple/" interlock restart
My machine doesn't show up in Fleet
interlock pluginsmust list the console plugin without FAILED. "needs plugin API N" means Interlock is too old:pipx upgrade interlockd.interlock console status: "not connected" means runconnectagain. Error 401: the key is wrong or revoked. Error 403: the key can't register machines; create a Daemons key.- The daemon must be running (
interlock status). It checks in 10 seconds after it starts, then every 5 minutes, and backs off up to an hour after failures. Messages starting "console:" are in~/.interlock/interlockd.log. interlock pluginslists no console plugin although you installed it:which -a interlock. With two installs (say Homebrew and pipx), keep the pipx one, which has the add-on:brew uninstall interlock, thenhash -r.- Installing the add-on says
interlockd was not found in the package registry: include--pip-args=--no-depsas shown above (Interlock itself comes from PyPI). - Online means a check-in within 15 minutes; stale, within a day; offline, longer ago.
Check which add-on versions are available
curl -s -u "__token__:$INTERLOCK_CONSOLE_KEY" https://api.interlockd.dev/simple/interlockd-console/
On macOS, pip may not be on the PATH: use python3 -m pip. Installing with pipx doesn't need it.
What does a machine send?
Counts and identifiers only: Interlock version, platform, mode, agents with intact hooks, the policy hash, component health, uptime, decision counts and the most frequent rule ids. Never commands, arguments, file paths, transcripts, environment or user names. The link is stored in ~/.interlock/console.json (readable only by you).
Disconnect or remove the add-on
interlock console disconnect # stops check-ins rm -f ~/.interlock/managed-policy.yaml # removes the last org policy too pipx runpip interlockd uninstall -y interlockd-console interlock restart
Removing a machine in the Fleet tab only hides it until its next check-in, so disconnect it first.
Windows, and different policies for different machines
The add-on is supported on macOS and Linux; on Windows, run Interlock inside WSL2. For stricter rules on some machines, add a group policy in the Policy tab and tag those machines in the Fleet tab (or give their Daemons key default tags). A machine applies the baseline and then each of its groups' policies; every layer can only tighten. "Effective policy" on a machine in the Fleet tab shows what it gets.