.drako.yaml governance policy in real time — without modifying agent source code.
The proxy requires the
proxy extra: pip install 'drako[proxy]'Subcommands
| Command | Description |
|---|---|
drako proxy start | Start the proxy server |
drako proxy stop | Stop the background daemon |
drako proxy status | Check whether the proxy is running |
drako proxy start
Start the enforcement proxy server.
Port to listen on.
Host address to bind to.
Path to the Drako configuration file. Run
drako init first if this file does not exist.Fork the proxy to the background as a daemon process. The PID is saved to
.drako/.proxy.pid. Use drako proxy stop to terminate it.drako proxy stop
Send SIGTERM to the background proxy daemon and remove the PID file.
.drako/.proxy.pid.
drako proxy status
Check whether the proxy is running by calling its /health endpoint.
Port to query. Must match the port the proxy was started on.
Environment variable configuration
Route your agents through the proxy by overriding the base URL for each provider:| Variable | Default | Description |
|---|---|---|
OPENAI_BASE_URL | https://api.openai.com/v1 | OpenAI-compatible endpoint |
ANTHROPIC_BASE_URL | https://api.anthropic.com | Anthropic endpoint |
DRAKO_API_KEY | — | API key read by the proxy from the config or environment |
DRAKO_ENDPOINT | https://api.getdrako.com | Drako backend for policy sync |