Configuration reference
Every key of den.yaml, generated from the config structs den itself reads, so it
cannot drift from what den accepts. A key that is not listed here is a mistake: den
reports it as a warning when it loads the file.
den reads -c FILE, then ./den.yaml, then ~/.config/den/den.yaml (the config directory follows XDG_CONFIG_HOME; Files and folders). The repository’s
annotated den.yaml is a working example, den init --profile P writes
one for your account, and the JSON Schema gives your editor
completion and inline errors. Each feature’s page has the keys in context, with
examples; this page is the complete list.
Required says whether den refuses the file when the key is missing from its entry. A key marked no is optional, or comes from somewhere else, such as the named environment (environments) a service picks with env, or is needed only in some setups, which its description names.
Top-level keys
| Key | Type | Required | Description |
|---|---|---|---|
version | string | no | Config format version, “1” |
title | string | no | The dashboard’s header line; “den — Developer Environment Navigator” when unset |
aws | object, keys in aws | no | Where the AWS CLI files are and which SSO sessions to show |
menu_order | list of string, each one of connect, tunnel, runbooks, vpn, aws, secrets, create-env, config, logs, help, updates | no | panels to show, in this order; every panel when empty |
disabled_panes | list of string, each one of connect, tunnel, runbooks, vpn, aws, secrets, create-env, config, logs, help, updates | no | panels to hide |
environments | map of name → object, keys in environments.<name> | no | Named groups of shared bastion and profile settings; a service picks one with env: |
services | list of objects, keys in services[] | no | The data stores and stacks the Connect panel lists |
tunnels | list of objects, keys in tunnels[] | no | SSH and SOCKS tunnels |
vpn | list of objects, keys in vpn[] | no | Openfortivpn connections |
runbooks | object, keys in runbooks | no | Your scripts, run with den’s connection context |
secrets | object, keys in secrets | no | The Secrets panel’s sources |
logs | object, keys in logs | no | The log file and level of den itself |
updates | object, keys in updates | no | Where den looks for new releases |
mcp | object, keys in mcp | no | What AI agents may do through den mcp |
ai | object, keys in ai | no | The model behind den doctor –explain |
aws
This block holds AWS-related configuration paths.
Guide: docs/aws
| Key | Type | Required | Description |
|---|---|---|---|
config_path | string | no | default: ~/.aws/config |
credentials_path | string | no | default: ~/.aws/credentials |
sessions | list of objects, keys in aws.sessions[] | no | sessions curates which discovered SSO sessions den shows, and in what order. Empty means show every session found in the AWS config. |
aws.sessions[]
Each entry curates one [sso-session …] discovered in the AWS config.
Guide: docs/aws
| Key | Type | Required | Description |
|---|---|---|---|
session | string | yes | must match an [sso-session X] section |
name | string | no | display name (default: Session) |
description | string | no | shown as subtitle |
environments.<name>
Each entry holds the shared AWS/bastion fields for a named environment group.
| Key | Type | Required | Description |
|---|---|---|---|
region | string | no | a label you choose, e.g. eu or us; shown to people and runbooks, den does not interpret it |
environment | string | no | a label you choose, e.g. dev, staging or prod; prod and production count as production |
production | boolean | no | an agent connects a production service only if mcp.allow_production is set, and then asks the user; implied by environment: prod |
ec2_instance_id | string | no | the bastion instance the SSM transport forwards through |
aws_profile | string | no | profile the SSM session runs as |
credential_profile | string | no | profile the credential is minted as, and the identity the data store sees; aws_profile when unset |
aws_region_code | string | no | AWS region of the bastion and of the credential calls, e.g. eu-central-1 |
transport | object, keys in environments.<name>.transport | no | how the network is reached; SSM through ec2_instance_id when unset |
environments.<name>.transport
This block says how den reaches the network a service lives in.
Guide: docs/transports
| Key | Type | Required | Description |
|---|---|---|---|
type | string, one of ssm, ssh, eice, kubectl | yes | how the network is reached; a service without a transport block uses ssm |
host | string | no | Required by ssh: the destination (user@host) and extra ssh arguments such as [-i, ~/.ssh/key, -J, jump.example.com]. Key or agent auth only: den cannot answer a password prompt. |
args | list of string | no | ssh: extra arguments, e.g. [-i, ~/.ssh/key] |
endpoint_id | string | no | Required by eice: the EC2 Instance Connect Endpoint ID. The service host is resolved to an IP first, since the endpoint only tunnels to IPs. |
resource | string | no | Required by kubectl: the resource to forward to (svc/x, deploy/x, pod/x), which must itself serve the service’s port — typically a proxy in front of the database — plus an optional context and namespace. |
context | string | no | kubectl: the kubeconfig context; the current one when empty |
namespace | string | no | kubectl: the namespace; the context’s when empty |
services[]
Each entry describes one service entry in the config file.
| Key | Type | Required | Description |
|---|---|---|---|
name | string | yes | shown in the Connect list |
type | string, one of rds, redis, documentdb, redshift, opensearch, neptune, kafka, docker | yes | which section below holds its settings; that section is required |
env | string | no | an entry of environments: its keys fill what the section leaves out |
rds | object, keys in services[].rds | no | type: rds — RDS or Aurora |
kafka | object, keys in services[].kafka | no | type: kafka — Kafka (planned, not implemented) |
redis | object, keys in services[].redis | no | type: redis — ElastiCache or MemoryDB |
documentdb | object, keys in services[].documentdb | no | type: documentdb — DocumentDB |
redshift | object, keys in services[].redshift | no | type: redshift — Redshift |
opensearch | object, keys in services[].opensearch | no | type: opensearch — OpenSearch |
neptune | object, keys in services[].neptune | no | type: neptune — Neptune |
docker | object, keys in services[].docker | no | type: docker — Docker Compose |
services[].rds
This block holds RDS-specific config.
Guide: docs/rds
| Key | Type | Required | Description |
|---|---|---|---|
region | string | no | a label you choose, e.g. eu or us; shown to people and runbooks, den does not interpret it |
environment | string | no | a label you choose, e.g. dev, staging or prod; prod and production count as production |
production | boolean | no | an agent connects a production service only if mcp.allow_production is set, and then asks the user; implied by environment: prod |
local_port | integer | no | local end of the tunnel; each type has its own default (RDS 50432, Redshift 55439, Redis 16379, DocumentDB 27017, OpenSearch 59200, Neptune 58182) |
reconnect | boolean | no | auto-reopen the SSM port-forward if it drops (e.g. SSM idle timeout); the IAM token is renewed while connected either way |
ec2_instance_id | string | no | the bastion instance the SSM transport forwards through; that transport requires it, here or from the service’s env |
aws_profile | string | no | profile the SSM session runs as |
credential_profile | string | no | profile credentials are minted as, and the identity the data store sees; aws_profile when unset |
aws_region_code | string | no | AWS region of the bastion and of the credential calls; required, here or from the service’s env |
transport | object, keys in environments.<name>.transport | no | how the network is reached; SSM when unset |
engine | string, one of postgres, mysql | no | the database engine; postgres when empty |
update_pgpass | boolean | no | postgres only, and not with auth: a stored password is never written to a file |
rds_host | string | yes | endpoint to forward to: instance, cluster or RDS Proxy |
db_name | string | no | optional; the client’s own default (PostgreSQL: the user name) when empty |
db_user | string | no | the database user the IAM token is minted for; required unless auth is set, where it wins over the secret’s username |
auth | object, keys in services[].rds.auth | no | log in with a username and password from a secret instead of an IAM token; db_user is required without it |
services[].rds.auth
This block logs a database service in with a username and password read from an entry of secrets:, instead of an IAM token.
| Key | Type | Required | Description |
|---|---|---|---|
secret | string | yes | name of an entry under secrets: sops, aws_secretsmanager or one vault secret, not a folder |
username_key | string | no | the key holding the username, dotted as in the flat view (db.user); username when empty |
password_key | string | no | the key holding the password, dotted as in the flat view (db.password); password when empty |
services[].kafka
This block holds Kafka-specific config.
| Key | Type | Required | Description |
|---|---|---|---|
region | string | no | a label you choose, e.g. eu or us; shown to people and runbooks, den does not interpret it |
environment | string | no | a label you choose, e.g. dev, staging or prod; prod and production count as production |
production | boolean | no | an agent connects a production service only if mcp.allow_production is set, and then asks the user; implied by environment: prod |
local_port | integer | no | local end of the tunnel; each type has its own default (RDS 50432, Redshift 55439, Redis 16379, DocumentDB 27017, OpenSearch 59200, Neptune 58182) |
reconnect | boolean | no | auto-reopen the SSM port-forward if it drops (e.g. SSM idle timeout); the IAM token is renewed while connected either way |
ec2_instance_id | string | no | the bastion instance the SSM transport forwards through; that transport requires it, here or from the service’s env |
aws_profile | string | no | profile the SSM session runs as |
credential_profile | string | no | profile credentials are minted as, and the identity the data store sees; aws_profile when unset |
aws_region_code | string | no | AWS region of the bastion and of the credential calls; required, here or from the service’s env |
transport | object, keys in environments.<name>.transport | no | how the network is reached; SSM when unset |
kafka_host | string | no | the broker to forward to (connecting reports that Kafka is planned) |
services[].redis
This block holds Redis-specific config.
Guide: docs/elasticache
| Key | Type | Required | Description |
|---|---|---|---|
region | string | no | a label you choose, e.g. eu or us; shown to people and runbooks, den does not interpret it |
environment | string | no | a label you choose, e.g. dev, staging or prod; prod and production count as production |
production | boolean | no | an agent connects a production service only if mcp.allow_production is set, and then asks the user; implied by environment: prod |
local_port | integer | no | local end of the tunnel; each type has its own default (RDS 50432, Redshift 55439, Redis 16379, DocumentDB 27017, OpenSearch 59200, Neptune 58182) |
reconnect | boolean | no | auto-reopen the SSM port-forward if it drops (e.g. SSM idle timeout); the IAM token is renewed while connected either way |
ec2_instance_id | string | no | the bastion instance the SSM transport forwards through; that transport requires it, here or from the service’s env |
aws_profile | string | no | profile the SSM session runs as |
credential_profile | string | no | profile credentials are minted as, and the identity the data store sees; aws_profile when unset |
aws_region_code | string | no | AWS region of the bastion and of the credential calls; required, here or from the service’s env |
transport | object, keys in environments.<name>.transport | no | how the network is reached; SSM when unset |
cache_name | string | no | ElastiCache / MemoryDB IAM auth |
user_id | string | no | ElastiCache / MemoryDB user ID |
serverless | boolean | no | true for ElastiCache Serverless |
memorydb | boolean | no | true for MemoryDB (tokens are signed for memorydb, not elasticache) |
redis_host | string | no | endpoint to forward to |
services[].documentdb
This block holds Amazon DocumentDB-specific config.
Guide: docs/documentdb
| Key | Type | Required | Description |
|---|---|---|---|
region | string | no | a label you choose, e.g. eu or us; shown to people and runbooks, den does not interpret it |
environment | string | no | a label you choose, e.g. dev, staging or prod; prod and production count as production |
production | boolean | no | an agent connects a production service only if mcp.allow_production is set, and then asks the user; implied by environment: prod |
local_port | integer | no | local end of the tunnel; each type has its own default (RDS 50432, Redshift 55439, Redis 16379, DocumentDB 27017, OpenSearch 59200, Neptune 58182) |
reconnect | boolean | no | auto-reopen the SSM port-forward if it drops (e.g. SSM idle timeout); the IAM token is renewed while connected either way |
ec2_instance_id | string | no | the bastion instance the SSM transport forwards through; that transport requires it, here or from the service’s env |
aws_profile | string | no | profile the SSM session runs as |
credential_profile | string | no | profile credentials are minted as, and the identity the data store sees; aws_profile when unset |
aws_region_code | string | no | AWS region of the bastion and of the credential calls; required, here or from the service’s env |
transport | object, keys in environments.<name>.transport | no | how the network is reached; SSM when unset |
documentdb_host | string | yes | cluster endpoint |
db_name | string | no | optional, placed in the URI path |
ca_file | string | no | optional, defaults to ~/.config/den/global-bundle.pem, or global-bundle-cn.pem in cn-* regions |
services[].redshift
This block holds Amazon Redshift config.
Guide: docs/redshift
| Key | Type | Required | Description |
|---|---|---|---|
region | string | no | a label you choose, e.g. eu or us; shown to people and runbooks, den does not interpret it |
environment | string | no | a label you choose, e.g. dev, staging or prod; prod and production count as production |
production | boolean | no | an agent connects a production service only if mcp.allow_production is set, and then asks the user; implied by environment: prod |
local_port | integer | no | local end of the tunnel; each type has its own default (RDS 50432, Redshift 55439, Redis 16379, DocumentDB 27017, OpenSearch 59200, Neptune 58182) |
reconnect | boolean | no | auto-reopen the SSM port-forward if it drops (e.g. SSM idle timeout); the IAM token is renewed while connected either way |
ec2_instance_id | string | no | the bastion instance the SSM transport forwards through; that transport requires it, here or from the service’s env |
aws_profile | string | no | profile the SSM session runs as |
credential_profile | string | no | profile credentials are minted as, and the identity the data store sees; aws_profile when unset |
aws_region_code | string | no | AWS region of the bastion and of the credential calls; required, here or from the service’s env |
transport | object, keys in environments.<name>.transport | no | how the network is reached; SSM when unset |
update_pgpass | boolean | no | keep the pgpass file (~/.pgpass, %APPDATA%\postgresql\pgpass.conf on Windows) in sync with the current credential |
redshift_host | string | yes | cluster or workgroup endpoint |
cluster_identifier | string | no | provisioned: the cluster; set this or workgroup_name |
workgroup_name | string | no | Serverless: the workgroup; set this or cluster_identifier |
db_name | string | no | default “dev” |
db_user | string | no | db_user is provisioned-only: set, den calls GetClusterCredentials for that user; unset, GetClusterCredentialsWithIAM maps the caller’s IAM identity. |
credential_ttl | string | no | Go duration, 15m–1h (default 15m) |
services[].opensearch
This block holds Amazon OpenSearch Service config: a VPC domain, or an OpenSearch Serverless collection reached through its VPC endpoint.
Guide: docs/opensearch
| Key | Type | Required | Description |
|---|---|---|---|
region | string | no | a label you choose, e.g. eu or us; shown to people and runbooks, den does not interpret it |
environment | string | no | a label you choose, e.g. dev, staging or prod; prod and production count as production |
production | boolean | no | an agent connects a production service only if mcp.allow_production is set, and then asks the user; implied by environment: prod |
local_port | integer | no | local end of the tunnel; each type has its own default (RDS 50432, Redshift 55439, Redis 16379, DocumentDB 27017, OpenSearch 59200, Neptune 58182) |
reconnect | boolean | no | auto-reopen the SSM port-forward if it drops (e.g. SSM idle timeout); the IAM token is renewed while connected either way |
ec2_instance_id | string | no | the bastion instance the SSM transport forwards through; that transport requires it, here or from the service’s env |
aws_profile | string | no | profile the SSM session runs as |
credential_profile | string | no | profile credentials are minted as, and the identity the data store sees; aws_profile when unset |
aws_region_code | string | no | AWS region of the bastion and of the credential calls; required, here or from the service’s env |
transport | object, keys in environments.<name>.transport | no | how the network is reached; SSM when unset |
opensearch_host | string | yes | domain or collection endpoint |
serverless | boolean | no | collection: requests are signed for aoss, not es |
services[].neptune
This block holds Amazon Neptune config.
Guide: docs/neptune
| Key | Type | Required | Description |
|---|---|---|---|
region | string | no | a label you choose, e.g. eu or us; shown to people and runbooks, den does not interpret it |
environment | string | no | a label you choose, e.g. dev, staging or prod; prod and production count as production |
production | boolean | no | an agent connects a production service only if mcp.allow_production is set, and then asks the user; implied by environment: prod |
local_port | integer | no | local end of the tunnel; each type has its own default (RDS 50432, Redshift 55439, Redis 16379, DocumentDB 27017, OpenSearch 59200, Neptune 58182) |
reconnect | boolean | no | auto-reopen the SSM port-forward if it drops (e.g. SSM idle timeout); the IAM token is renewed while connected either way |
ec2_instance_id | string | no | the bastion instance the SSM transport forwards through; that transport requires it, here or from the service’s env |
aws_profile | string | no | profile the SSM session runs as |
credential_profile | string | no | profile credentials are minted as, and the identity the data store sees; aws_profile when unset |
aws_region_code | string | no | AWS region of the bastion and of the credential calls; required, here or from the service’s env |
transport | object, keys in environments.<name>.transport | no | how the network is reached; SSM when unset |
neptune_host | string | yes | cluster, reader or instance endpoint |
port | integer | no | cluster port (default 8182) |
services[].docker
This block holds docker-compose-specific config.
Guide: docs/docker
| Key | Type | Required | Description |
|---|---|---|---|
compose_file | string | yes | the Compose file, relative to where den runs or absolute |
services | list of string | no | the Compose services to start; every one when empty |
env_file | string | no | passed to docker compose with –env-file |
tunnels[]
Each entry describes one SSH tunnel entry in the config file.
Guide: docs/tunnel
| Key | Type | Required | Description |
|---|---|---|---|
name | string | yes | shown in the Tunnel list |
description | string | no | shown as subtitle |
command | string | yes | full shell command, e.g. “ssh -D 5555 -L … user@host” |
reconnect | boolean | no | restart the tunnel after it drops, with backoff |
health_check | string | no | host:port dialled through the command’s -D SOCKS proxy to confirm the far side is reachable |
monitor | boolean | no | re-run the connection checks every 15 s while connected; two misses count as a drop |
auto_connect | object, keys in tunnels[].auto_connect | no | auto_connect ties the tunnel to the VPN it runs over: den connects it once that VPN is connected and stops it when the VPN goes down. |
tunnels[].auto_connect
This block names the VPN a tunnel runs over.
Guide: docs/tunnel
| Key | Type | Required | Description |
|---|---|---|---|
vpn | string | yes | name of an entry in the vpn: section |
enabled | boolean | no | enabled switches the behaviour on (the default) or off, keeping the link so den can still warn about a manual connect without the VPN. |
vpn[]
Each entry describes one VPN entry in the config file.
Guide: docs/vpn
| Key | Type | Required | Description |
|---|---|---|---|
name | string | yes | shown in the VPN list |
gateway | string | no | gateway host[:port]; required unless config_file is set |
description | string | no | shown as subtitle |
config_file | string | no | path to openfortivpn INI config file (-c flag); required unless gateway is set |
extra_args | list of string | no | more openfortivpn arguments |
health_check | string | no | host:port reachable ONLY via the VPN; probed to confirm the data path is alive |
reconnect | boolean | no | reconnect re-establishes a tunnel that dropped after being fully connected. Deliberately unlike tunnels: openfortivpn logs in through SAML, which opens a browser tab, so retries are capped (see reconnectDelays) and a login that times out is never retried — repeated half-finished logins burn the account’s FortiGate session slots until the gateway 403s every new login. |
runbooks
This block holds user-defined operational scripts.
Guide: docs/runbooks
| Key | Type | Required | Description |
|---|---|---|---|
dirs | list of string | no | dirs are scanned for runbooks: every folder in them holding a runbook.yaml is one, and so is an executable carrying a “# den:name” header. Relative paths are read against den.yaml’s directory. |
rescan | boolean | no | rescan picks up runbook folders added, changed or removed while den runs. On unless set to false. |
template | string | no | template is a folder copied for a new runbook by den runbook new and the Runbooks pane’s n; empty uses the built-in one. |
agent | string | no | agent is the agent that writes a runbook from a description (den runbook new --agent, the pane’s n): auto (the first agent CLI installed, in the order agents’ kind lists them), a kind such as claude or opencode, or the name of an agents entry. Default auto, or the first entry of agents when there are any. |
agents | list of objects, keys in runbooks.agents[] | no | agents are command lines that write a runbook, for a model other than the CLI’s default or a wrapper such as ollama launch opencode. The Runbooks pane’s n offers them when there are two or more. |
defaults | object, keys in runbooks.defaults | no | defaults apply to every runbook; a runbook.yaml or an items entry overrides them one key at a time. |
items | list of objects, keys in runbooks.items[] | no | items are runbooks declared inline, for the curated team-shared set. |
sequences | list of objects, keys in runbooks.sequences[] | no | runbooks run in order, stopping at the first failure |
sources | list of objects, keys in runbooks.sources[] | no | sources are git repositories of runbook folders that den checks out and lists beside your own, each runbook under its source’s name: platform-ops/rds-status. Nothing updates on its own: den runbook source update moves a source to the newest commit of its ref. |
allow_sources | list of string | no | allow_sources limits the repositories a source may come from, as host/owner/repo patterns with * wildcards: “ghe.acme.com/ops/*”. Empty allows any. |
drafts | object, keys in runbooks.drafts | no | drafts are the requests typed into the Runbooks pane’s n and E forms: how long an unfinished one is kept, and what happens to a request once its runbook is created. |
runbooks.agents[]
Each entry is one named way to start an agent that writes a runbook.
Guide: docs/runbooks/agents/cli
| Key | Type | Required | Description |
|---|---|---|---|
name | string | yes | name is what the pop-up shows and what runbooks.agent and den runbook new --agent refer to. |
command | string | yes | command is the command line, split on whitespace (no shell quoting): claude --model opus, ollama launch claude --model glm-5:cloud. den adds its own arguments after it. |
kind | string, one of claude, codex, opencode, copilot, qwen, droid, pi, kimi | no | kind says which agent CLI the command starts, so den passes the arguments that CLI takes: claude (Claude Code), codex (Codex), opencode (OpenCode), copilot (Copilot CLI), qwen (Qwen Code), droid (Droid), pi (Pi) or kimi (Kimi Code). Empty infers it from a command starting with one of them, or ollama launch <kind> (copilot-cli for copilot); any other wrapper needs it. |
runbooks.defaults
These are how den presents a runbook rather than what it runs.
Guide: docs/runbooks
| Key | Type | Required | Description |
|---|---|---|---|
history | integer | no | history is how many finished runs are kept on disk; 0 keeps only the last run, in memory. Default 20. |
about | boolean | no | about shows the About tab: the folder’s README.md, the environment den sets and the parameters. Default true. |
shell | string | no | shell is the command t opens in the runbook’s folder, e.g. “bash –rcfile .venv/bin/activate”. Default $SHELL. |
editor | string | no | editor is the command e opens the runbook’s script with, and o a run’s log. Default $VISUAL, then $EDITOR, then vi. |
agent | string | no | agent is the agent E changes the runbook with: a command line such as claude --model opus, the name of a runbooks.agents entry, a kind such as claude or opencode, or auto. Default runbooks.agent. |
runbooks.items[]
Each entry describes one runbook.
Guide: docs/runbooks
| Key | Type | Required | Description |
|---|---|---|---|
name | string | yes | what the Runbooks list shows and sequences refer to |
description | string | no | shown as subtitle |
command | string | yes | run with sh -c |
cwd | string | no | working directory; relative to den.yaml’s directory |
env | string | no | key into Config.Environments |
env_vars | map of string → string | no | extra environment variables for the run |
params | list of objects, keys in runbooks.items[].params[] | no | values asked for before the run |
confirm | boolean | no | ask before every run, also when an agent starts it |
timeout | string | no | Go duration, e.g. “5m” |
retry | object, keys in runbooks.items[].retry | no | run again until it exits 0 |
history | integer | no | history is how many finished runs are kept on disk; 0 keeps only the last run, in memory. Default 20. |
about | boolean | no | about shows the About tab: the folder’s README.md, the environment den sets and the parameters. Default true. |
shell | string | no | shell is the command t opens in the runbook’s folder, e.g. “bash –rcfile .venv/bin/activate”. Default $SHELL. |
editor | string | no | editor is the command e opens the runbook’s script with, and o a run’s log. Default $VISUAL, then $EDITOR, then vi. |
agent | string | no | agent is the agent E changes the runbook with: a command line such as claude --model opus, the name of a runbooks.agents entry, a kind such as claude or opencode, or auto. Default runbooks.agent. |
runbooks.items[].params[]
Each entry is one value prompted for before a runbook runs.
| Key | Type | Required | Description |
|---|---|---|---|
name | string | yes | the parameter’s name; DEN_PARAM_ plus this, in capitals |
description | string | no | shown beside the prompt |
default | string | no | pre-filled value |
options | list of string | no | non-empty renders a select |
required | boolean | no | the prompt does not accept an empty value |
secret | boolean | no | masked input, redacted from logs |
runbooks.items[].retry
This block re-runs a runbook until it exits 0.
| Key | Type | Required | Description |
|---|---|---|---|
until_success | boolean | no | run again until the exit code is 0; needs max_attempts or timeout |
interval | string | yes | Go duration between attempts |
max_attempts | integer | no | 0 = unlimited |
timeout | string | no | overall ceiling across attempts |
runbooks.sequences[]
Each entry runs named runbooks in order, stopping at the first failure.
Guide: docs/runbooks
| Key | Type | Required | Description |
|---|---|---|---|
name | string | yes | shown in the Runbooks list |
description | string | no | shown as subtitle |
steps | list of string | yes | runbook names |
confirm | boolean | no | ask before running the sequence |
runbooks.sources[]
Each entry is a git repository of runbook folders.
Guide: docs/runbook-sources
| Key | Type | Required | Description |
|---|---|---|---|
name | string | yes | name prefixes the names of its runbooks: lower case letters, digits and dashes. |
url | string | yes | url is the repository: https://host/owner/repo, git@host:owner/repo.git, host/owner/repo, or owner/repo on GitHub. Credentials come from git (a credential helper or an SSH key), never from the URL. |
ref | string | no | ref is the tag, branch or commit to check out; empty is the repository’s default branch. A tag or a commit stays put; a branch moves on den runbook source update. |
path | string | no | path is the folder of the repository holding the runbook folders; empty is its root. |
include | list of string | no | include lists the runbook folders to show, with * wildcards; empty shows every one. den runbook install and uninstall edit it. |
exclude | list of string | no | exclude hides runbook folders Include would show. |
env_map | map of string → string | no | env_map maps the env names the source’s runbooks use to entries of environments. A runbook whose env is not mapped is not shown: its author’s “prod” is not necessarily yours. |
runbooks.drafts
This block says how long den keeps what was typed for an agent.
| Key | Type | Required | Description |
|---|---|---|---|
keep_request | string, one of until-deleted, until-exit, never | no | keep_request is what happens to a request once its runbook is created: until-deleted keeps it until the runbook is deleted, so restarting the agent can send it again; until-exit removes it when the agent exits cleanly by itself; never removes it as soon as the agent has started. Default until-deleted. |
days | integer | no | days is how many days an untouched draft is kept; 0 keeps drafts until you delete them. Default 30. |
secrets
This block lists the secret sources shown in the Secrets pane, grouped by provider.
Guide: docs/secrets
| Key | Type | Required | Description |
|---|---|---|---|
sops | list of objects, keys in secrets.sops[] | no | SOPS-encrypted files |
aws_secretsmanager | list of objects, keys in secrets.aws_secretsmanager[] | no | AWS Secrets Manager secrets |
keepassxc | list of objects, keys in secrets.keepassxc[] | no | entries of KeePass databases |
vault | list of objects, keys in secrets.vault[] | no | HashiCorp Vault KV secrets |
view | string, one of tree, flat | no | view is how secrets with nested values open, unless one sets its own. |
secrets.sops[]
Each entry is one SOPS-encrypted file.
Guide: docs/secrets
| Key | Type | Required | Description |
|---|---|---|---|
name | string | yes | shown in the Secrets list |
description | string | no | shown as subtitle |
file | string | yes | ~ is expanded |
aws_profile | string | no | exported as AWS_PROFILE for KMS keys |
aws_region | string | no | exported as AWS_REGION |
auto_reveal | boolean | no | show every value in clear when the file opens |
view | string, one of tree, flat | no | how this secret opens when its values are nested; secrets.view when empty |
git | object, keys in secrets.sops[].git | no | git overrides how den follows the file in its git working copy. Not needed otherwise: den finds the repository, the branch and its upstream by itself, and shows whether the file is up to date with it. |
secrets.sops[].git
This block is how den follows a secret’s file in its git working copy.
| Key | Type | Required | Description |
|---|---|---|---|
branch | string | no | branch is the branch whose upstream the file is compared with and updated from, whatever branch is checked out: main to hear of changes on main while working on a feature branch. Empty: the branch checked out. An update only ever fast-forwards that branch while it is checked out. |
check | boolean | no | check shows the file’s git state and offers fetch and update. On unless set to false. |
secrets.aws_secretsmanager[]
Each entry is one AWS Secrets Manager secret, read with the SDK as aws_profile.
Guide: docs/secrets
| Key | Type | Required | Description |
|---|---|---|---|
name | string | yes | shown in the Secrets list |
description | string | no | shown as subtitle |
secret_id | string | yes | name or full ARN |
aws_profile | string | no | default credential chain when empty |
aws_region | string | no | the profile’s region when empty |
version_stage | string | no | AWSCURRENT (default), AWSPREVIOUS, … |
auto_reveal | boolean | no | show every value in clear when opened |
view | string, one of tree, flat | no | how this secret opens when its values are nested; secrets.view when empty |
secrets.keepassxc[]
Each entry is one entry of a KeePass database, read with keepassxc-cli.
Guide: docs/secrets
| Key | Type | Required | Description |
|---|---|---|---|
name | string | yes | shown in the Secrets list |
description | string | no | shown as subtitle |
database | string | yes | .kdbx, ~ is expanded |
entry | string | no | group/entry path, e.g. CI/Jenkins; unset = pick from a list |
group | string | no | with no entry: list only entries under this group |
key_file | string | no | ~ is expanded; required with no_password |
no_password | boolean | no | key file only; never prompts |
attributes | list of string | no | default UserName, Password, URL, Notes |
totp | boolean | no | add the current TOTP code |
remember_password | string | no | Go duration; unset = ask every time |
cli_path | string | no | default: PATH, then the macOS app |
auto_reveal | boolean | no | show every value in clear when opened |
secrets.vault[]
Each entry is one HashiCorp Vault KV secret, or a folder of them when Path ends in “/”, read with the vault CLI and the user’s own token.
Guide: docs/secrets
| Key | Type | Required | Description |
|---|---|---|---|
name | string | yes | shown in the Secrets list |
description | string | no | shown as subtitle |
address | string | no | VAULT_ADDR; your environment’s when empty |
namespace | string | no | VAULT_NAMESPACE (Enterprise / HCP) |
ca_cert | string | no | VAULT_CACERT, ~ is expanded |
mount | string | no | KV mount, default “secret” |
path | string | yes | secret path; a trailing “/” lists a folder |
field | string | no | one key only |
version | integer | no | KV v2 version; latest when 0 |
login | string | no | shell command run by L, e.g. vault login -method=oidc |
cli_path | string | no | default: vault on PATH |
auto_reveal | boolean | no | show every value in clear when opened |
view | string, one of tree, flat | no | how this secret opens when its values are nested; secrets.view when empty |
logs
This block controls file-based logging and log level filtering.
| Key | Type | Required | Description |
|---|---|---|---|
level | string, one of trace, debug, info, warn, error | no | the least severe level written; info when empty |
file_location | string | no | e.g. ./dist/logs/den.log |
updates
This block controls where den checks for and downloads new releases.
Guide: docs/updates
| Key | Type | Required | Description |
|---|---|---|---|
github_api | string | no | releases/latest API URL of a fork or GitHub Enterprise server, e.g. https://api.github.com/repos/you/den/releases/latest; a fork on api.github.com reads its own release feed, and GITHUB_TOKEN, when set, makes den use the API |
s3_bucket | string | no | an S3 mirror of the releases; wins over github_api |
s3_prefix | string | no | e.g. “den/releases/” — no leading slash |
aws_profile | string | no | uses default AWS profile if omitted |
aws_region | string | no | e.g. “eu-west-1” |
channel | string, one of stable, prerelease | no | which releases the check offers and the version picker lists: stable (the default), or prerelease for release candidates too |
pin | string | no | hold den on this version, e.g. v1.7.1: the check offers it, older or newer, and nothing else |
mcp
This block limits what an AI agent may do through den mcp.
Guide: docs/mcp
| Key | Type | Required | Description |
|---|---|---|---|
allow | list of string | no | allow lists the services agents may see, by name, with * and ? wildcards; empty means all of them. |
allow_production | boolean | no | allow_production lets agents connect production services — and even then only after the user confirms each connect in their MCP client. |
allow_runbooks | boolean | no | allow_runbooks lets agents list and run runbooks; a runbook marked confirm: true still asks the user first. |
allow_source_runbooks | boolean | no | allow_source_runbooks also lets agents list and run the runbooks of runbooks.sources, and even then each run asks the user first. |
ai
This block configures den doctor --explain, the only place den calls a language model — and only when asked, after showing what it would send.
| Key | Type | Required | Description |
|---|---|---|---|
model | string | no | model is the Claude model that explains the report (default claude-opus-5). |