.dino.yml
Dino is configured through a.dino.yml file in your project root. Run dino init to generate one interactively, or create it manually.
Minimal Config
Full Reference
| Field | Type | Default | Description |
|---|---|---|---|
endpoint | URL | — | Your API endpoint. Required for scans. |
protocol | "graphql" | "graphql" | API protocol. Only GraphQL is supported currently. |
format | "json" | "markdown" | "json" | Output format for scan results. |
tenant | string | — | Tenant ID. Loads config from tenants/<id>.yml. Optional for ad-hoc scans. |
environment | string | — | Target environment (e.g., staging, production). |
snapshotDir | string | ".dino/snapshots" | Directory for schema snapshots used by diff, lint, changelog. |
aiKey | string | — | Anthropic API key for AI reasoning. Prefer the DINO_AI_KEY env var instead. |
auth.enabled | boolean | false | Enable authenticated scans. Required for RBAC matrix agent. |
auth.role | string | — | Default auth role for scans (e.g., USER, ADMIN). |
autonomy.level | "observe" | "enforce" | "observe" | Shadow Mode level for dino watch. |
rateLimit.burst | integer (1–500) | Tier default | Burst size for rate limit testing. |
JSON Schema
The# yaml-language-server comment at the top of your config file enables IDE autocomplete if you use the YAML extension in VS Code.
dino init adds this comment automatically.
Config File Search Order
Dino uses cosmiconfig to find your config. It searches in this order:.dino.ymlor.dino.yaml.dinorc(JSON or YAML).dinorc.json,.dinorc.yaml,.dinorc.ymlpackage.json→"dino"key
Precedence
When the same setting is defined in multiple places:--format markdown overrides format: json in your config file.
Smart Defaults
If you omit fields, Dino applies sensible defaults:- All 6 agents enabled (RBAC matrix auto-skips if
auth.enabledis false) - Pipeline timeout: 300 seconds
- Per-request timeout: 30 seconds
- Snapshot dir:
.dino/snapshots - Watch interval: 60 seconds
- Watch autonomy:
observe(safe default — never blocks CI unless you opt in)
Examples
Ad-hoc scan (no tenant)
Authenticated scan with RBAC testing
CI/CD with enforce mode
See Environment Variables for setting
DINO_AI_KEY and DINO_API_TOKEN without putting secrets in your config file.