This page is the command reference for the current Basilisk CLI surface.
Current commands:
scanreconreplaymodulesprobesinteractivesessionsdiffpostureversionhelpeval
Run a full scan against a target.
basilisk scan [OPTIONS]Important options:
| Option | Description |
|---|---|
-t, --target |
Target URL or API endpoint |
-p, --provider |
Target provider |
-m, --model |
Target model override |
-k, --api-key |
API key file reference such as @/path/to/key |
--auth |
Authorization header value |
--mode |
quick, standard, deep, stealth, chaos |
--evolve / --no-evolve |
Enable or disable the evolution engine |
--generations |
Evolution generations |
--module |
Repeatable module selector |
--skip-recon |
Skip reconnaissance |
--recon-module |
Repeatable recon module selector |
--attacker-provider |
Provider for mutation generation |
--attacker-model |
Model for mutation generation |
--attacker-api-key |
Attacker-model key file reference |
--exit-on-first / --no-exit-on-first |
Stop evolution after first breakthrough |
--diversity-mode |
off, novelty, niche |
--intent-weight |
Intent preservation weight |
--cache / --no-cache |
Enable or disable response caching |
--include-research-modules / --no-include-research-modules |
Opt into research-tier modules |
--execution-mode |
recon, validate, exploit_chain, research |
--campaign-name |
Campaign name |
--operator |
Operator name |
--ticket |
Authorization or tracking ticket |
--approval-required / --no-approval-required |
Require explicit approval |
--approve / --no-approve |
Mark approval confirmed |
--dry-run |
Plan only |
-o, --output |
html, json, sarif, markdown, pdf |
--output-dir |
Report output directory |
--no-dashboard |
Disable the dashboard path |
--fail-on |
Threshold for non-zero exit |
-v, --verbose |
Verbose output |
--debug |
Debug mode |
-c, --config |
YAML config file |
Run reconnaissance only.
basilisk recon \
--target https://example.test/v1/chat/completions \
--provider openaiOptions:
--target--provider--api-key--auth--recon-module--verbose
Run the posture workflow.
basilisk posture \
--provider openai \
--model gpt-4oOptions:
--target--provider--model--api-key--auth--output-dir--json--verbose
Compare multiple targets side by side.
basilisk diff \
-t openai:gpt-4o \
-t anthropic:claude-3-5-sonnet-20241022Options:
--targetrepeatableprovider:model--api-key--category--output-dir--verbose
Run an assertion-based eval suite from YAML.
basilisk eval evals/guardrails.yamlOptions:
--formatwithconsole,json,junit,markdown--output--fail-onwithanyorall--parallel / --no-parallel--diff--tag--verbose
Inspect the attack catalog.
basilisk modulesOptions:
--category--include-research / --no-include-research--json
Browse the YAML probe corpus.
basilisk probes --statsOptions:
--category--tag--severity--query--count--json--stats
Start the assisted REPL:
basilisk interactive \
--target https://example.test/v1/chat/completions \
--provider openaiList stored sessions:
basilisk sessionsOption:
--db
Replay one stored session:
basilisk replay BSLK-2026-ABC123Option:
--db
Extended help topics:
basilisk help overview
basilisk help scan
basilisk help modules
basilisk help evolution
basilisk help diff
basilisk help examplesShow Basilisk version and local runtime information.
Common provider variables:
OPENAI_API_KEYANTHROPIC_API_KEYGOOGLE_API_KEYAZURE_API_KEYGH_MODELS_TOKENGROQ_API_KEYXAI_API_KEYBASILISK_API_KEY
For scan:
- non-zero exit depends on
--fail-on
For eval:
--fail-on anyreturns non-zero if any test fails--fail-on allreturns non-zero only if all tests fail
Use the advanced guides for workflow advice and the architecture pages for internals.