Specvista Docs

Connect a computer

Pair a Mac or Windows computer with Assent using assent-helper, so Run now restarts an agent there as soon as you answer it.

Pairing a computer lets Run now work: when you answer one of an agent's asks, the Assent helper on that computer restarts the agent with your answer straight away, instead of waiting for its next scheduled run. Agents do not need a paired computer to ask you; they only need an agent key. See Connect an agent.

The commands are the same on macOS and Windows. Use Terminal on a Mac, and PowerShell or Command Prompt on Windows.

What you need

  • An Assent account, signed in on the web or in the iPhone app. Assent is invite only: see Build with AI agents.
  • macOS, or Windows 10 version 1809 or later. Linux can pair and run the helper, but install does not add a background service there.
  • Node.js 20 or later. Check with node --version.
  • Your phone or a browser within reach: you confirm the pairing yourself.

If Node.js is missing or older than 20, install the current LTS release from nodejs.org. On a Mac with Homebrew, brew install node works too, and on Windows, winget install OpenJS.NodeJS.LTS. Open a new terminal afterwards so it finds node and npm.

1. Install the helper

npm install -g assent-helper

Check it worked:

assent-helper --version

It prints the version number. npm view assent-helper version shows the latest release; if yours is older, run the install again.

2. Start pairing

assent-helper pair

Add --name "Work laptop" to choose the name you see in Assent; it defaults to the computer's host name. The helper shows a QR code and a line like this, then waits:

Open Assent on your phone, go to Connect, Pair a computer, and scan this, or type the code K7QM2XWA. Waiting...

The code has 8 letters and numbers and lasts 10 minutes. Leave the command running. The message names Connect, Pair a computer: on the web that is the page below, in the Assent app it is Connect a computer under Connect, and on an iPhone the camera opens the same step.

If an AI agent runs this step for you, it should tell you the code and wait for the command to finish. It cannot confirm the pairing itself.

3. Confirm it in Assent

Do one of these:

  • iPhone: point the Camera at the QR code and tap the banner to open it in Assent. Assent opens its pairing screen and asks "Pair with code K7QM 2XWA?". Choose Pair this computer.
  • Web: sign in and open assent.specvista.com/connect/pair. Type the code under Enter the code and choose Pair this computer.

Only pair a computer you own: it can run your agents with your answers.

Assent shows that the computer is paired, and the helper finishes with one line of JSON:

{"paired":true,"computerUuid":"...","name":"Work laptop"}

4. Check the pairing

assent-helper status

You should see "paired":true and the computer's name. Pairing is needed once on each computer.

5. Let an agent run here

  1. In Assent on the web, open Agents, open the agent and go to its settings.
  2. Under When you answer one of its asks, choose Run now.
  3. Choose this computer as its Linked computer, and enter its Resume command: the command that restarts the agent, for example /Users/you/jobs/scan.sh --resume or C:/jobs/scan.cmd. The command reads your answer from ASSENT_ANSWER_JSON and carries on. On Windows it runs in Git Bash when Git for Windows is installed, otherwise in cmd.exe. Write Windows paths with forward slashes, because Git Bash drops unquoted backslashes; to run a PowerShell script, use powershell -NoProfile -File C:/jobs/scan.ps1.
  4. On the computer, list the agents linked to it and allow the one you set up:
assent-helper agents
assent-helper allow <agent-uuid>

allow shows the exact command and asks "Allow it?". Nothing runs until you say yes. If the command later changes in Assent, it stops running until you allow it again.

  1. Start the background service:
assent-helper install

On macOS it adds the launchd agent com.ordia.helper. On Windows it adds the scheduled task AssentHelper for your user, without needing an administrator; it starts when you sign in and is checked every minute. The output names the log file. On Linux, install exits with code 2: keep assent-helper run going with your own service manager, such as a systemd user service; its log is ~/Library/Logs/ordia/helper.log, the same path as on macOS, even on Linux.

6. Confirm it works

Answer one of the agent's asks. Within about 30 seconds the helper claims the answer and runs the resume command with your answer in ASSENT_ANSWER_JSON (see Helper). assent-helper queue lists answers waiting to run, and the log shows each run:

  • macOS: ~/Library/Logs/ordia/helper.log
  • Windows: %LOCALAPPDATA%\Assent\Logs\helper.log

Common problems

What you seeWhat to do
The pairing code expired. Run assent-helper pair again. (exit code 3)Codes last 10 minutes. Run assent-helper pair again and confirm the new code.
On the web: "This code did not work." In the app: "This code has expired or was already used."The code expired or was used. Run assent-helper pair again.
PowerShell: assent-helper.ps1 cannot be loaded because running scripts is disabled on this systemRun assent-helper.cmd pair instead, use Command Prompt, or allow local scripts for your user with Set-ExecutionPolicy -Scope CurrentUser RemoteSigned.
assent-helper is not recognised, or command not foundOpen a new terminal. If it still fails, check that the folder npm prefix -g prints (on macOS and Linux, its bin folder) is on your PATH.
npm warns EBADENGINE, or the helper fails to startNode.js is older than 20. Install the LTS release and reinstall the helper.
The QR code looks broken in the Windows consoleType the 8 character code on the web instead.
This computer is not paired yet. Run: assent-helper pair (exit code 5)Pair it first, or pair again after unpair.
That agent is not linked to this computer. Link it in Assent first. (exit code 4)Set the agent's Linked computer to this computer in Assent, then run assent-helper agents again.
<agent> has no resume command yet (exit code 2)Add a Resume command in the agent's settings.
install and uninstall work on macOS and Windows (exit code 2)On Linux, keep assent-helper run going with your own service manager, such as a systemd user service.
Cannot tell which Windows user to install the helper for: USERNAME is not setRun install from your own signed-in session, not a service account.
The api url must use httpsLeave out --api-url to use the hosted service.
Exit code 69Assent could not be reached within 15 seconds. Check the network or proxy and try again.

Remove a computer

assent-helper uninstall
assent-helper unpair

uninstall stops the background service (on Linux, stop your own service instead) and unpair removes the computer from Assent and forgets its key. You can also unpair it from Connect in Assent.

Helper lists every command, setting and exit code, and how Run now stays safe.

On this page