Requirements
- Python 3.10 or later
- pip or pipx
Basic installation
Verify the installation
drako, version 2.4.0.
Optional extras
Install extras to enable framework-specific rules and integrations.| Extra | Install command | What it adds |
|---|---|---|
crewai | pip install drako[crewai] | CrewAI integration and FW-001–FW-003 rules |
langgraph | pip install drako[langgraph] | LangGraph integration and FW-004–FW-005 rules |
autogen | pip install drako[autogen] | AutoGen integration and FW-006–FW-007 rules |
proxy | pip install drako[proxy] | Out-of-process proxy mode (FastAPI + uvicorn) |
typescript | pip install drako[typescript] | TypeScript/JS scanning via tree-sitter (17 additional rules) |
all | pip install drako[all] | All framework integrations (CrewAI, LangGraph, AutoGen) |
The
all extra installs CrewAI, LangGraph, and AutoGen integrations. Install drako[typescript] separately if you also need TypeScript/JavaScript scanning.Pre-commit hook
To scan your project automatically before every commit, add Drako to your.pre-commit-config.yaml:
drako scan . on every commit and blocks the commit if any findings at or above the configured severity are detected.
For CI/CD integration — including the GitHub Action, SARIF upload, and PR inline comments — see CI/CD integrations.