Skip to Content
Platforms
Self-Hosted Runners / Minion

Self-Hosted Runners / Minion

Minion connects your own Windows machine or connected Android devices to nunu.ai. Install the app on the host PC, connect it to your organization or project, and select it for your test runs.

This feature is not enabled by default. Contact us if you’re interested in using it.

Set up Minion

Open your project in Nexus , expand Infra in the project sidebar, and select Minions. Access requires the project:manage-minions permission.

Minion runs on a host PC and runs tests on a phone connected to it via USB.

Only Android is supported for now.

  1. Download and install

    On the Minions page, choose your host PC’s operating system under add runner and install the downloaded app.

  2. On your phone: enable developer options and connect via USB

    Enable developer options and USB debugging  on the phone. For an example, see this video for the Galaxy S25 .

    Plug the phone into the host PC with a USB cable. When the phone asks to allow USB debugging, authorize the connection.

  3. Connect your account

    Open Minion and set platform to Android in its settings. Click Start, choose your organization and all projects or one project in the browser, then authorize the connection. After authorizing the connection in your browser, the minion starts running and is ready to receive runs.

    Screenshot placeholder: Connect Minion to an organization or project

  4. Run a test

    Create a deployment configuration, open the Mobile tab under Where to run, and select Local Android. Start a test with this configuration.

    Select Local Android in the deployment config editor

Choose a specific minion

When starting a test, select your Minion deployment configuration, turn on Advanced settings, and choose the device by name under Select claims.

If no claim is selected, the test uses any of the runners the deployment configuration allows.

Select a minion under Select claims in the start-test dialog

Tags

You can create and assign tags yourself to group minions however you need, for example by capabilities, teams, or device models. Minions with the same tag form a group, and a minion can have multiple tags.

  1. Stop the minion and open Settings. Enter tags under Minion tags, pressing Enter after each. Click Save settings, then start the minion again.
  2. In your Minion deployment configuration, set Required runner tags. Eligible minions must have all these tags. Leave claims empty for automatic selection.

Example groups:

  • Capability: Add payment to minions connected to phones you’ve set up for payments.
  • Team: Add qa to your QA team’s minions.
  • Device model: Add pixel_9 to minions connected to Pixel 9 phones.

Example: a payment test plan. Your project has ten phones, and you’ve set up payments on three. Add the payment tag to those three minions, then run your payment test plan with a deployment configuration that requires payment. The plan’s tests use whichever of those three phones is available, so all three can run tests in parallel. Tags make the whole group available to tests; a specific claim targets one device.

Configuration

Stop the minion and open its Settings panel to edit its display name, tags, platform, and startup behavior. Click Save settings, then start the minion again.

Minion settings panel

SettingPurpose
Minion nameDisplay name in Nexus and the claim selector
PlatformRun tests on the Windows PC or a connected Android phone
Minion tagsTags for selecting groups of runners
AuthenticationManage OAuth or API key authentication
Launch app on loginStart the app when the user logs in to the host PC
Launch in tray on loginLaunch the app in the tray at login
Start minion on app launchStart listening for runs when the app launches

Use an organization or project API key with the project:manage-minions permission. Organization keys cover the organization’s projects; project keys cover one project. See API key setup and permissions .

Download through the API

Request the latest stable installer with your API key in the X-Api-Key header:

curl -sSL https://nunu.ai/api/v1/minions/download?platform=windows-x86_64 \ -H X-Api-Key: YOUR_API_KEY

Other download targets are linux-x86_64 and darwin-aarch64. See Download Minion in the API docs .

Install and configure

On Windows, install silently:

Start-Process .\minion-installer.exe -ArgumentList '/S' -Wait

Run the unattended setup command as the desktop user who will run Minion, with environment variable NUNU_API_KEY supplied.

& "$env:LOCALAPPDATA\nunu.ai-minion\minion-app.exe" setup ` --name=my-runner ` --tags=my-tag,tag-2 ` --platform=windows ` --autostart=true ` --launch-in-tray-on-boot=true ` --run-minion-on-launch=true

Setup saves the configuration and stores the API key in the OS keyring, then launches the app. If NUNU_API_KEY is unset, it prompts for a key on stdin. --run-minion-on-launch=false launches the app without starting Minion.

OptionPurposeDefault on a new installation
--nameRunner nameHostname
--tagsComma-separated runner tags; an empty value clears themNone
--platformwindows or androidwindows on Windows hosts; android on other hosts
--data-dirDirectory for Minion dataOS application data directory, under ai.nunu.minion
--autostartLaunch the app at logintrue
--launch-in-tray-on-bootHide the window when launched at loginfalse
--run-minion-on-launchStart Minion when the app launchestrue

Omitted options preserve existing settings. Run minion-app.exe --help to list commands or minion-app.exe setup --help to see options and defaults for the current host.

Last updated on