Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Armur-Ai/Pentest-Swarm-AI/llms.txt
Use this file to discover all available pages before exploring further.
pentestswarm campaign is a family of subcommands for managing the lifecycle of campaigns that were started with pentestswarm scan. A campaign is the central unit of work in Pentest Swarm AI — it tracks the target, scope, phase progression, agent events, and discovered findings. You can have multiple campaigns running simultaneously (each in their own process), and inspect any of them by ID.
Synopsis
Subcommands
campaign list
Print a table of all campaigns known to the API server, including their status and finding count.
campaign status <id>
Show a detailed snapshot of a single campaign by its UUID.
The
status command reads from the in-memory API server. Run pentestswarm serve (or use the embedded server started by scan) to ensure campaign state is accessible.campaign watch <id>
Open a full-screen interactive TUI (terminal user interface) dashboard powered by Bubbletea. The dashboard shows all agents working simultaneously, live findings as they are discovered, attack paths being constructed, and agent reasoning steps — all in a multi-panel layout with AltScreen mode so it does not interfere with your scrollback buffer.
| Panel | Content |
|---|---|
| Agent activity | Per-agent thought stream and tool calls |
| Findings | Findings as they are discovered, color-coded by severity |
| Attack paths | Chains of exploitation steps being attempted |
| Event log | Raw timestamped event feed |
/api/v1/campaigns/:id/ws) in a production setup, receiving events in real time. Press q or Ctrl-C to exit the dashboard without stopping the campaign.
Demo events rendered in the TUI:
campaign stop <id>
Send an emergency stop signal to a running campaign. The swarm’s goroutines receive a context cancellation, cleanup actions are executed, and the campaign status transitions to aborted.
campaign explore <id>
Launch an interactive Bubbletea attack-surface explorer that lets you browse discovered subdomains, resolved hostnames, open ports, detected services, and findings from a completed or running campaign.
The
explore TUI requires at least the recon phase to have completed. Run it after campaign watch shows the reconnaissance phase finishing.Examples
Campaign lifecycle
pentestswarm scan (or POST /api/v1/campaigns via the REST API) and transition through phases driven by the engine runner. The campaign watch TUI reflects each state transition as a [*] event.
scan
Launch a new campaign with the AI swarm
serve
Start the API server that backs campaign state and the WebSocket feed
report
Polish and quality-gate finished campaign reports
playbook
Run structured attack playbooks as an alternative to freestyle campaigns