# Deployment and models

> The runner image on Cloud Run or Compose, runner sizing, the eight model tasks and their routing, and cost.

Source: https://scansuite.eu/documentation/ai-pentest/deployment-and-models
Last reviewed: 2026-11-26

> **ScanSuite AI:** This page describes ScanSuite AI. ScanSuite Teams has no AI Pentest.

AI Pentest runs in its own image, `ai-worker-pentest`, next to the ScanSuite AI web application (`ai-web`), the worker (`ai-worker`) and the proof-of-concept runner (`ai-poc-runner`). An installation without the pentest image refuses AI Pentest scans with a message saying it is not installed.

## Where a runner runs

One **runner** is one shard of a scan: a lead agent, its sub-agents and their scanners. The scanners run inside the runner as local processes, as an unprivileged user with a process limit and without the platform's secrets; nothing starts containers.

| Deployment | How runners start | Sizing |
|---|---|---|
| Google Cloud Run (Terraform) | Each runner is a task of the pentest Cloud Run job. | pentest_cpu (4 vCPU), pentest_memory (16Gi; scanner output counts against it), pentest_task_timeout_seconds (86400), pentest_max_runners (20 for the whole installation). |
| Docker Compose on a VM | The worker_pentest service takes runners from a queue, one at a time per replica, and starts each as a fresh process. | Scale worker_pentest to the runners you want at once (AI_PENTEST_MAX_RUNNERS). |

A scan uses up to `AI_PENTEST_RUNNERS_PER_SCAN` runners at once (4 by default); scans beyond the installation's limit wait for a free runner, and their scan page says so.

## Models

AI Pentest makes eight kinds of model calls, each a task you can route to its own model in the AI routing card, under *AI Pentest*: System settings → Services for the installation, or the team's AI tab for one team. The lead and the sub-agents call tools, so their model must support tool use.

| Task | What it does | Suggested model |
|---|---|---|
| Lead agent | Maps the application, keeps the task list, tests and delegates (tool loop). | Your strongest model. |
| Sub-agents | Test one area of the application each (tool loop). | A strong model; most of the turns are here. |
| Coverage review | Names untested areas before the run ends; also the cross-target review. | A strong model. |
| Finding verification | Fresh-context check of each finding at or above the verify threshold. | A strong model, ideally not the one that found it. |
| Duplicate merge | Groups findings that are the same weakness. | A mid-size model. |
| Operator rules | Reads your instructions and messages as the rules every agent follows. | A mid-size model. |
| Scope judge | Second opinion on each newly found host before it is tested. | A mid-size model. |
| Log watch | Reviews each running test's recent tool calls for harmful patterns, apart from the runner. | A mid-size model; a different one from the agents is a sounder check. |

Supported providers are the Claude API (Anthropic), Claude on Vertex AI, Claude on Azure AI Foundry, and OpenAI-compatible endpoints, including a gateway or a local model.

## Cost

- The scan page shows tokens, estimated cost and the split between models while the run goes.
- AI usage is recorded per task and model, at the prices you configure, with the rest of the installation's AI cost.
- A team's monthly token limit and the installation's limit cap spending; there is no separate money limit per scan. The budgets in the safeguards (run time, model turns, requests) bound one run.

## Settings in the environment

| Variable | What it sets (default) |
|---|---|
| AI_PENTEST_SAFEGUARD_FLOOR | standard or production: a preset the safeguards cannot go below. Terraform: pentest_safeguard_floor. |
| AI_PENTEST_RUNNERS_PER_SCAN | Runners one scan may use at once (4). |
| AI_PENTEST_SINGLE_SHARD_ORIGINS | Web origins a scan may have and still be one shard (1). |
| AI_PENTEST_SINGLE_SHARD_ADDRESSES | The same for addresses (64). |
| AI_PENTEST_HOSTS_PER_SHARD | Hosts per assessment shard (20). |
| AI_PENTEST_SERVICE_SHARDS | web (a shard per web application found), all (also every other TCP service) or off (assessment shards of the live hosts only). |
| AI_PENTEST_MAX_SERVICE_SHARDS | The most service shards a round plans (12). |

Set the sharding variables to the same value for the web application, the worker and the runners: the first round is planned at dispatch, later rounds by a runner.
