Run Qaila every night in CI
A run every night means each morning starts with findings from yesterday's changes. The runner works the same in a pipeline as on your machine. Only how it signs in to Qaila and to Claude is different.
Before you start
- The
qaila/folder committed, with.qaila/cloud.json(Set up Qaila for your app). - An Anthropic API key for the pipeline. Its Claude usage is billed to you by Anthropic, not by Qaila.
- Somewhere the pipeline can reach the app: started in the job, or a staging address.
Make a runner token
Nobody signs in to a pipeline, so it uses a runner token instead. An owner or admin makes one in the project's Settings. Name it after where it's used, and give it an expiry date.

The token is shown once. Copy it straight into your pipeline's secrets.
Add the secrets
In GitHub, under the repository's Settings › Secrets and variables › Actions, add QAILA_TOKEN, ANTHROPIC_API_KEY, and each test-account variable your config names. Add them yourself rather than pasting them into a chat.
Add the workflow
Add a GitHub Actions workflow that runs Qaila every weeknightClaude writes .github/workflows/qaila.yml for your app: how to start it in the job, and the secrets your config needs. It looks like this:
name: Qaila
on:
workflow_dispatch:
schedule:
- cron: "0 2 * * 1-5" # weekday nights
jobs:
explore:
runs-on: ubuntu-latest
timeout-minutes: 120
env:
QAILA_TOKEN: ${{ secrets.QAILA_TOKEN }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
# one line for each test-account variable your config names (env:NAME)
QAILA_CUSTOMER_PASSWORD: ${{ secrets.QAILA_CUSTOMER_PASSWORD }}
defaults:
run:
working-directory: qaila
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
- run: npm install -g @qaila/cli @anthropic-ai/claude-code
- run: qaila install-browser
# Start your app here, or point the config at a staging address.
- run: qaila preflight
- run: qaila map
- run: qaila run --out runs/ci-${{ github.run_id }} --budget 8 --label "CI ${{ github.sha }}"Run it once by hand from the Actions tab and watch the run arrive on Qaila. If the browser won't start for want of system libraries, add npx playwright install-deps chromium before qaila install-browser. Other pipelines work the same way: install the two packages, set the same variables, run the same commands.
What the run tells your pipeline
| Exit code | Meaning |
|---|---|
0 | The run finished. Findings don't fail the job: they wait for your team to triage. |
1 | The run couldn't be done: the environment check failed, there's no map, or the run itself failed. |
2 | Qaila refused it: the plan's runs are used up, the workspace is read-only, or the runner needs updating. |
3 | qaila retest only: a finding marked fixed is still there. |
To hold a release until fixes are confirmed, add qaila retest as its own step: exit code 3 fails the job.
Keep usage in hand
--budget caps the whole run, and the project's budget per mission caps each mission (Set how far each mission goes). --max-missions keeps a run short, and the next run picks up what this one didn't cover. Each run counts towards your plan's runs a month, so a nightly run suits most teams better than one on every push.