Skip to content

Connect a machine with minion

Updated Nov 20, 2026
On this page

minion is a small program that you install on your own machine. It lets a Build conversation in Raven run tools on that machine: shell commands, file edits, searches and more. Each machine with minion appears in Raven as a device.

Install

On Linux or macOS, run:

sh
curl -fsSL https://api.cch137.com/v1/devices/minion/install.sh | sh

On Windows, run in PowerShell:

powershell
irm https://api.cch137.com/v1/devices/minion/install.ps1 | iex

The installer does these steps:

  1. It downloads the minion binary for your system and architecture. See Servers for where it downloads from.
  2. In a terminal, it asks for a display name for the machine. Press Enter to keep the host name. Without a terminal, it keeps the host name.
  3. It runs minion login (see Sign in).
  4. The login starts a background service. The service starts when the machine starts and restarts after a crash.

When the machine is already signed in, the installer only replaces the binary and reports the new version to Raven.

On Windows, Microsoft Defender or Smart App Control can block minion.exe. See Windows Defender and Smart App Control.

Setting Effect
MINION_NAME The display name. The installer does not ask for a name. An empty value keeps the host name.
MINION_BIN_DIR The install directory on Linux and macOS.
MINION_SKIP_BROWSER=1 Do not download the browser automation component.

The install directory:

System Directory
Linux, macOS ~/.local/bin, or /usr/local/bin when you install as root
Windows %LOCALAPPDATA%\Programs\raven-minion. The installer adds it to your PATH. Open a new terminal before you run minion.
  • On Windows, the installer adds the directory to the user Path and keeps the other entries as they are, %VAR% entries included. When this Path has the type REG_SZ and holds no %, minion sets its type back to REG_EXPAND_SZ, the Windows default. The entries do not change.
  • On Linux and macOS, when the directory is not on your PATH, the installer adds it in the startup file of your shell. Open a new terminal before you run minion.
Shell Startup file
zsh ~/.zshrc
bash on Linux ~/.bashrc
bash on macOS The first of ~/.bash_profile, ~/.bash_login and ~/.profile that exists, else ~/.bash_profile
fish ~/.config/fish/config.fish
Other ~/.profile
  • After the service starts, minion downloads the browser automation component (about 1.2 GB) in the background. minion browser status shows its state.

When you install as root, minion runs each tool as the owner of the directory where the work happens. Other accounts on the machine run the commands as sudo minion <command>.

Servers

minion reaches Raven at api.cch137.com. When it cannot reach that host name, it uses api.pionest.com. It keeps the host name that works until it fails, and starts at api.cch137.com each time the service starts.

  • The installer downloads from the same host names in the same order, then from the published release on GitHub.
  • When no host name answers, minion update and the automatic updates download from the published release on GitHub. minion checks its signature as for any update.
  • When api.cch137.com does not answer, replace it in the install command with api.pionest.com.
  • MINION_SERVER at minion login or at install points minion at one other server. minion then signs in, updates and downloads its own binary only from that server, never from GitHub.
  • The search tools and the browser automation component always come from their own sources. These are GitHub for rg and fd, nodejs.org for Node.js, the npm registry for playwright-cli, and the Playwright download servers for Chromium.

Connection

When the connection to Raven drops, the machine stays online in Raven for 1 minute. The calls of the agent in that minute wait for minion to connect again.

  • When minion does not connect again in that minute, the machine goes offline in Raven. The calls that waited then fail without running.
  • When Raven restarts, each machine that was online gets the same minute.

Sign in

minion login opens an authorization page in your browser and prints its URL. Open the URL on any device and approve the machine.

  • After the approval, the machine appears in Raven under Settings → Devices, and the background service starts.
  • During the authorization, minion downloads the search tools rg and fd from their releases on GitHub. It checks each file against a pinned SHA-256.
  • When the download is not complete after the approval, minion shows its progress and waits. When it fails or makes no progress for 30 seconds, the sign-in continues, and the service tries again later.
  • When the service or another minion login is already downloading a tool, minion waits for that download and says so.
  • minion update on a machine that is not signed in starts the sign-in and prepares the search tools in the same way.
  • minion login --name NAME sets the display name without a question.
  • When the authorization expires or you deny it, run minion login again.
  • When the log says that the sign-in was refused, minion keeps its configuration and tries again every minute. Run minion login if you removed the machine in Raven or revoked its sign-in.

Commands

Command Effect
minion status Show the connection, the version, available updates, the running tasks and background processes, and the browser component.
minion logs Show the log with a panel of the active tasks. See Logs.
minion kill ID [REASON] Stop one active task or background process. See Stop a task.
minion rename NAME Change the display name of the machine.
minion restart Let the work in progress finish, then restart. See Restart.
minion restart --force Cancel the work in progress and restart at once.
minion update Download, verify and install the newest release, then restart the running service. --force installs it again when it is current.
minion boot on|off Turn the start at boot on or off. Without an argument, show the setting.
minion down Stop the background service. minion up starts it again.
minion access Share the machine with another account. See Share a machine.
minion logout Revoke the authorization of the machine and clear the local configuration.
minion uninstall Remove minion. See Remove minion.
minion --help List all commands and options.

Logs

On a terminal, minion logs fills the screen until you press q or Ctrl-C.

  • A panel at the bottom lists each running and queued task and each background process. It shows the tool, the conversation, the elapsed time and the command. Running tasks come first, then queued tasks, then background processes, each group oldest first.
  • The mouse wheel, the arrow keys, PgUp, PgDn and Home scroll back. Scrolling back stops the follow. End starts it again.
  • minion does not capture the mouse, so you can select and copy text as usual.
Option Effect
-n N Load the last N lines first. The default is 200.
--no-panel Hide the panel.
--no-alt Stream the log in the terminal, with the panel below, and do not fill the screen.
--no-follow Print the lines and exit.
-f, --follow Keep streaming when the output goes to a pipe. Without it, piped output prints once.

The log records:

  • one line when a task starts and one when it ends, with the tool, the task id, the conversation, the duration and the result
  • the start and the end of background processes, lost connections, and the steps of updates and restarts

Ids show as their first eight characters in the panel, in the log and in the conversation. minion kill accepts these short ids.

Stop a task

minion kill takes an id that the panel shows: a running task, a queued task or a background process. A full id or a prefix that matches one id works.

  • minion cancels the work and lets it report. The conversation gets a failed call that ends in [killed on device: REASON], or in [killed on device] without a reason.
  • A tool that does not check for a cancel finishes its work and reports the result.

Open a file from an answer

An answer in a conversation with a machine can link to a file on that machine. Select the link to open the file in the viewer.

  • Raven copies the file to the cloud first. The copy is deleted after 1 hour. Until then, the same unchanged file opens without a new copy.
  • The machine must be online.
  • A relative path opens in the working directory that the conversation had when the answer was written.
  • In a shared conversation, a file link shows as text.
  • An image in an answer, such as ![chart](out/chart.png), shows the picture from the machine when it comes into view. Select it to open it in the viewer. This works for PNG, JPEG, GIF, WebP, AVIF and BMP files.
  • When the machine cannot send the image, the answer shows a file link in its place. In a shared conversation, it shows the alt text or the file name.
File Largest size
Image, PDF, audio, video 20 MB
Text and other files 1 MB

A larger file is not copied. Raven shows its size and the limit.

Restart

minion restart stops taking new work. Then it waits up to 90 seconds for running tools and reports to finish.

On Linux and macOS, the service then restarts in its own process, and the background processes keep running. Their results arrive as before the restart. This needs a minion that the service started, with the service definition that minion up writes.

Otherwise, the restart stops the background processes. minion then does not restart while a background process runs. It lists the processes and the commands that continue.

When the wait ends with work still in progress, minion keeps the running service and does not restart. These options change that:

Option Effect
--timeout=N Wait up to N seconds. When the restart stops background processes, wait for them too.
--no-timeout Wait until all work finishes, background processes included.
--force-after-timeout At the end of the wait, cancel the work and restart.
--force Cancel the work at once and restart. Background processes that cannot be kept stop.
  • A restart ends each TaskOutput wait. The call returns the output so far, and the agent can wait again.
  • A restart that a task of minion starts, such as minion update from an agent, happens after that task ends. When that restart would stop background processes, minion refuses it and shows a command that runs it outside minion.
  • Automatic updates restart the same way. Background processes that minion can keep do not delay them.

Process limit of a command

On Linux, the systemd service of minion has a process limit (TasksMax). Each command gets a share of that limit for itself and the processes it starts. A command that starts processes without end thus stops at its own limit. minion and the other commands keep working.

Holder Share of the service limit
minion itself 10%, at least 512 processes
All commands together The rest
One command A quarter of the rest
  • Threads count as processes.
  • When forks of a command fail at a limit, its output ends with [process limit: ...].
  • The service definition delegates the process controller to minion (Delegate=pids). At its start, minion writes a definition of an earlier release again. It needs no restart for that.
  • Without the delegation, all commands share the service limit.

Remove minion

Run minion uninstall. It asks for a confirmation. --yes skips the question. Without a terminal, such as in a script, minion uninstall stops with exit code 2 unless you give --yes.

minion then removes the machine from your devices in Raven and stops and removes the background service. It also removes the browser component, the local configuration and the minion binary.

minion also takes its directory off your PATH:

  • On Windows, it removes the entry from the user Path.
  • On Linux and macOS, it removes the two lines that the installer added to a startup file. When the directory still holds other files or cannot be read, the lines stay and minion prints a note. Other programs in the directory can need them.

Windows Defender

Microsoft Defender can report minion.exe as a trojan, such as Trojan:Win32/Bearfoos.A!ml. minion.exe has no code signature, and each release is a new file. The machine-learning models of Defender can judge such a file as malware.

When Defender blocks minion.exe:

  • Transfer fails with an error that says antivirus software blocked and gives os error 225.
  • When the service cannot start minion, the minion log shows the same error.
  • Defender can then remove minion.exe and stop the service. The machine then goes offline in Raven.

To restore minion:

  1. Open Windows Security → Virus & threat protection → Protection history.
  2. Open the entry for minion.exe. Under Actions, select Restore.
  3. When Defender reports the file again, select Allow on device in the new entry.
  4. When the machine stays offline in Raven, run minion up.

When the entry has no Restore action, select Allow in it. Then run the install command again (see Install).

Allow on device applies to the detection name on the whole computer. Defender then also allows other files with the same detection, not only minion.exe.

To remove the allow, open Windows Security → Virus & threat protection → Allowed threats. Select the detection, then select Don't allow. If Defender still detects minion.exe, it blocks the file again.

Smart App Control

Smart App Control in Windows 11 blocks apps that have no code signature and that Microsoft does not know. minion.exe is such an app. Smart App Control has no allow for one file.

When Smart App Control blocks minion.exe, the install command stops with this error:

text
Program 'minion.exe' failed to run: An Application Control policy has blocked this file

Protection history shows no entry for this block, so the steps in Windows Defender do not apply.

To run minion:

  1. Open Windows Security → App & browser control → Smart App Control settings.
  2. Select Off.
  3. Run the install command again (see Install).

Smart App Control checks each start of a file. When you turn it on again, it blocks minion again.

On Windows 11 without the updates of April 2026, only a reset or a new install of Windows turns Smart App Control on again.

When Smart App Control is already off, an App Control policy of your organization blocks the file. Ask your administrator to allow minion.exe.