Skip to content
Docs
qmpass.ai Become a design partner
Validation Evidence

Agents

Add a test agent, connect it with its token, check it and keep it up to date, so runbooks run on machines you control.

RoleJira Admin or Project Admin

A test agent is a small program that runs this project’s runbooks on a machine you choose: a laptop, a server, a virtual machine or a container. It connects out to Qmpass.ai, picks up runs, and sends results and evidence back. Because it runs inside your network, it can reach apps behind your firewall, like staging or internal tools.

Checks by hand don’t need an agent. You need one to run runbooks, dry runs and recorded journeys.

  • You’re a Jira Admin or an admin of this Jira project. Agents are managed in Project settings, which only they can open.
  • For the command line: Python 3.10 or newer, Node.js 18 or newer, and pipx. For Docker: only Docker; the browser is built in.
  1. Project settingsQmpass.aiAgents

    Select Add agent. Give it an Agent name, like “QA laptop” or “CI runner”, and an optional Agent description, then select Create agent.

    The agent’s row opens with its token: Copy this token now — it’s shown once. Select Copy token. If you lose it, use Rotate token to get a new one.

  2. Your machine

    The How to connect an agent card on the Agents page shows the same commands, ready to copy.

    Terminal window
    pipx install qmpass-test-agent
    qmpass-agent setup # one time: installs the browser runbooks use
    export QMPASS_TOKEN="qmp_agent_…"
    qmpass-agent doctor # checks everything, with a fix for each problem
    qmpass-agent run

    No pipx yet? On macOS, brew install pipx; on Linux, python3 -m pip install --user pipx. Then pipx ensurepath.

    doctor checks what the agent needs, your token, and that Qmpass.ai can be reached and accepts the token. It’s safe to run while an agent is already running.

  3. Project settingsQmpass.aiAgents

    Once the agent connects, its row says Online and it starts picking up runs. Select Check now to refresh its status.

Install an add-on only if your runbooks use it:

Add-on Install For runbooks that
postgres pipx install "qmpass-test-agent[postgres]" query a PostgreSQL database
mysql pipx install "qmpass-test-agent[mysql]" query a MySQL or MariaDB database
rpa pipx install "qmpass-test-agent[rpa]" work with Salesforce, Excel, PDF or email (a large install)

By default an agent runs one job at a time. qmpass-agent run --worker 3 runs up to 3 in parallel (5 at most). Add more agents to spread runs across machines.

To keep an agent running after you log out, run it as a service with your operating system’s service manager, or use Docker with -d --restart unless-stopped instead of --rm.

Status Means
Online Connected and picking up runs.
Waiting to connect / Never connected Added, but it hasn’t connected with its token yet. Runs wait until an agent connects.
Delayed It connected, but its last heartbeat is late.
Offline No heartbeat for a while. Check that it’s still running.
Token expired Its token no longer works. Use Rotate token and start the agent with the new one.
Disabled Turned off. It doesn’t pick up runs and doesn’t count toward your plan.

Agents at a glance shows how many active agents are ready to run, and how much room your plan has.

Open an agent’s row to see its system and runtime, its token’s expiry, and its actions:

  • Edit agent changes its name and description.
  • Rotate token issues a new token, shown once. Start the agent with it, for example when the old one is lost or about to expire.
  • Disable stops it picking up runs and frees its place in your plan. Enable turns it back on.
  • Delete removes it for good.

Your plan sets how many active agents each project can have, for example “Your plan allows 2 active agents per project”. Disabled agents don’t count. When you reach the limit, disable an agent you no longer use, or ask your Jira admin to upgrade the plan. See Plans and limits.

Terminal window
pipx upgrade qmpass-test-agent

When a newer version is out, qmpass-agent run says so in one line when it starts, and doctor shows it too. The agent never updates itself. With Docker, pull a newer image tag instead.

See Agent commands for every command, option and exit code.