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.
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.
Before you start
Section titled “Before you start”- 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.
Add and connect an agent
Section titled “Add and connect an agent”- Project settings›Qmpass.ai›Agents
Add the agent
Section titled “Add the agent”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.
- Your machine
Install and start it
Section titled “Install and start it”The How to connect an agent card on the Agents page shows the same commands, ready to copy.
Terminal window pipx install qmpass-test-agentqmpass-agent setup # one time: installs the browser runbooks useexport QMPASS_TOKEN="qmp_agent_…"qmpass-agent doctor # checks everything, with a fix for each problemqmpass-agent runNo pipx yet? On macOS,
brew install pipx; on Linux,python3 -m pip install --user pipx. Thenpipx ensurepath.Terminal window pipx install qmpass-test-agentqmpass-agent setup$env:QMPASS_TOKEN = "qmp_agent_…"qmpass-agent doctorqmpass-agent runNo pipx yet?
python -m pip install --user pipx, thenpipx ensurepath.Terminal window docker run --rm \-e QMPASS_TOKEN="qmp_agent_…" \public.ecr.aws/qmpass/test-agent:1.0No Python or Node needed: the browser is built in. Browsers run headless in a container.
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.
- Project settings›Qmpass.ai›Agents
Check it’s online
Section titled “Check it’s online”Once the agent connects, its row says Online and it starts picking up runs. Select Check now to refresh its status.
Optional add-ons
Section titled “Optional add-ons”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) |
Run more at once
Section titled “Run more at once”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.
Agent status
Section titled “Agent status”| 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.
Manage an agent
Section titled “Manage an agent”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’s agent limit
Section titled “Your plan’s agent limit”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.
Keep it up to date
Section titled “Keep it up to date”pipx upgrade qmpass-test-agentWhen 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.