CLI Reference
The base command is hawki. Every capability is a subcommand.
Command overview
| Command | What it does |
|---|---|
scan | Primary pipeline: index, static rules, optional AI and sandbox, deps, score, report. |
deep | Autonomous agent that invents and runs novel exploits. |
verify | Compare deployed bytecode against local source. |
deps | Dependency vulnerability scanning. |
upgrade | Proxy storage-collision safety for upgradeable contracts. |
prove | Formal verification via SMTChecker. |
registry | Local record of what you have scanned. |
report | Re-render a report from a saved findings JSON. |
score | Print the security score for a findings file. |
export | Export findings to structured formats. |
monitor | Watch a repo or contract and rescan on change. |
metrics | Show your local scan statistics. |
doctor | Preflight health check. |
hawki scan
Run a security scan on a local directory, a Git URL, or a deployed contract address.
hawki scan <path> [options]hawki scan --address <0x...> --chain <chain> [options]Options:
-v, --verbose- Enable debug logging.-o, --output-dir <dir>- Directory for reports (default:./hawki_reports).--ai- Enable LLM reasoning (requires an API key).--ai-model <model>- LLM model, e.g.gemini/gemini-1.5-flash,openai/gpt-4.--api-key <key>- API key for the chosen LLM (or set the matching env var).--sandbox- Run the Docker exploit sandbox.--address <0x...>- Scan a deployed contract instead of a path.--chain <name>- Target chain for address scans (ethereum, polygon, arbitrum, ...).--rpc-url <url>- Override the default RPC endpoint.--explorer-key <key>- Block-explorer API key for source retrieval.--format {md,json,html,pdf}- Report format (default: md).
hawki deep
Run the autonomous Deep agent against a target. See the Deep agent page for the full model.
hawki deep <path> [--sandbox] [--max-attempts N] [--max-tokens N] [--continuous]hawki report
Re-render an audit-grade report from a saved findings JSON.
hawki report [--input findings.json] [--format md|json|html|pdf] [--style audit|immunefi] [--output report.pdf]hawki score
Compute and print the deterministic security score (0-100) for a findings file.
hawki score findings.jsonExamples
# Basic local scanhawki scan ./my-project # Scan with LLM reasoninghawki scan ./my-project --ai --ai-model openai/gpt-4 # Full audit with sandbox and a PDF reporthawki scan ./my-project --ai --sandbox --format pdf # Scan a deployed contract on Arbitrumhawki scan --address 0xYourContract --chain arbitrum # Hunt for novel exploits autonomouslyhawki deep ./my-project --sandbox --max-attempts 25 # Re-render an Immunefi-style submissionhawki report --input findings.json --style immunefi --format md