Skip to main content
An opfor config is a flat JSON object. target.kind selects the pipeline; the rest configure selection, models, run shape, and telemetry. Generate one with opfor setup or hand-write it.

Common fields

apiKeyEnv is the env var name holding the key, never the key itself. Don’t put raw keys in a config file.

Agent target (target.kind: "agent")

Stateful vs stateless

MCP target (target.kind: "mcp")

Local script contract

A local-script target receives one attack per process over stdin/stdout: The interpreter is picked from the file extension: .py/.pywpython3, .js/.mjs/.cjsnode.