init
Generate a default project configuration file.
Usage
bash
agentprey initFlags
--path <path>(default:.agentprey.toml) - path to write the generated config file.--force- overwrite an existing config file.
Examples
bash
agentprey init --path ./config/.agentprey.tomlbash
agentprey init --forceDefault Template Output
toml
[target]# Required for config-driven scansendpoint = "http://127.0.0.1:8787/chat"# Optional request method# method = "POST"# Optional JSON string with a {{payload}} marker# request_template = '{"input":"{{payload}}"}'# Optional response field path# response_path = "output"# Optional headers to send with every requestheaders = { }[scan]vectors_dir = "vectors"category = "prompt-injection"timeout_seconds = 30retries = 2retry_backoff_ms = 250max_concurrent = 2rate_limit_rps = 10redact_responses = true[output]# Optional default output artifact path# json_out = "./scan.json"# html_out = "./scan.html"