Execution Modes
An organization runs tests in External CI, Agnox Hosted, or both. The mode decides which parts of the dashboard you see and which API endpoints accept new runs.
| Mode | How runs reach Agnox | Quota it uses |
|---|---|---|
| External CI | Your own pipeline (GitHub Actions, GitLab CI, Jenkins and others) runs Playwright, and @agnox/playwright-reporter streams the results. | External CI Runs |
| Agnox Hosted | Agnox runs your Docker image on its own workers: Run Test, schedules, the CI trigger API, Smart PR Routing and automated Test Cycle items. | Agnox Hosted Runs |
| Both (Hybrid) | Both of the above, for example External CI for pull request pipelines and Agnox Hosted for scheduled and on-demand suites. | Both |
Not sure which to pick? External CI vs. Agnox Hosted →
Choosing a Mode During Onboarding
The first time an Org Admin opens a new organization, Agnox asks "How will your team run tests?" with three choices: External CI, Agnox Hosted and Both (Hybrid).
- Only admins see the question, and they answer it once. Other roles never see it.
- To change the mode later, contact the Agnox team (see Changing a Mode).
- Organizations created before execution modes existed keep both modes and are never asked.
What a Disabled Mode Changes
A clean workspace
A disabled mode is removed from the dashboard rather than shown greyed out.
Agnox Hosted off:
- The Run Test button and modal are hidden.
- The Schedules and Env Variables settings tabs are hidden. Opening them by URL falls back to another tab.
- In Run Settings, the Docker image, target URL and test folder fields are hidden, as is Smart PR Routing. Saving no longer sends them.
- The automated-items section of Test Cycles is hidden.
- The hosted run quota meters, cards, alerts and concurrency limit are hidden.
- The Agnox Hosted option disappears from the execution Source filter.
External CI off:
- The reporter quickstart path is hidden, as is the External CI Runs quota.
- The External CI and Local options disappear from the Source filter, because local runs come in through the same reporter.
If the Source filter was set to a source that is no longer available, it resets to All.
Enforced by the API
The backend refuses new work in a disabled mode, whatever the client:
| Mode off | Refused with 403 | Code |
|---|---|---|
| Agnox Hosted | Every way to start a hosted run: Run Test, POST /api/ci/trigger, the v1 Trigger API, Smart PR Routing, schedule Run Now and automated cycle items. Also creating or editing schedules, and saving the Docker image, target URLs or default test folder. | HOSTED_EXECUTION_DISABLED |
| External CI | Starting a reporter session (POST /api/ingest/setup). @agnox/playwright-reporter 2.5.1+ prints the reason in your CI log. | EXTERNAL_CI_DISABLED |
A disabled mode takes precedence over a quota limit, so a run in that mode always gets this 403, never a quota error.
Some things deliberately keep working:
- History stays readable. Runs, results, artifacts and analytics from a disabled mode remain visible.
- In-flight runs finish. A reporter run that already started can still send events, artifacts and its teardown.
- Schedules pause. While Agnox Hosted is off, scheduled fires are skipped without recording an error, and they resume when the mode is turned back on. Listing and deleting schedules still works. Hosted runs that were already queued end as ERROR with the reason.
Changing a Mode
Agnox Super-Admins can switch each mode per organization in the Super-Admin console. They cannot turn both modes off at once, and every change is recorded in the audit log. A change made there also counts as the organization's onboarding choice, so its admins aren't asked again.