# Configuration reference

Every setting Quietdeck reads, in one place. The pages linked from each row explain what the setting is for.

| File | Where | Read by |
|---|---|---|
| `solo.yaml` | `~/.config/quietdeck/solo.yaml` | `quietdeck-solo`. See [solo.yaml and the quietdeck-solo command](https://quietdeck.ai/docs/solo-reference.md) |
| `node.yaml` | `~/.config/quietdeck/node.yaml` on each machine, for each Unix user that runs agents | `quietdeck-node`, when it starts |
| `deck.yaml` | `/data/deck.yaml` on the deck's data volume | `quietdeck-server`, when it starts |
| Environment variables | The deck's container, and a few on each node | `quietdeck-server` and `quietdeck-node` |

None of the files hold a secret. Where a token or password is needed, the file names another file (mode 600) or an
environment variable, and your secrets manager fills it ([Secrets for agents](https://quietdeck.ai/docs/secrets-management.md)).

Both YAML files refuse a key they don't know, so a typo stops the program with an error instead of being ignored. The
`summaries:` and `usage:` sections of `node.yaml` are the exception: they ignore unknown keys. Change a file, then
restart what reads it: `quietdeck-node install` restarts a node, and the deck reads `deck.yaml` again when its
container restarts.

Durations are written `30s`, `2m`, `1h`, or a plain number of seconds.

## node.yaml

`quietdeck node enroll` writes the first version, with the `node:` section filled in
([Enrol a machine](https://quietdeck.ai/docs/getting-started.md#enrol-a-machine)). Everything else is optional. A working example is in
[`deploy/node.example.yaml`](https://github.com/QuietdeckAI/quietdeck/blob/main/deploy/node.example.yaml).

### node: the deck connection

| Key | Type | Default | What it does |
|---|---|---|---|
| `node.name` | string | required | This machine's name on the deck. Sessions show as `<tab>@<name>`. |
| `node.deck` | URL | required | The deck's address, the same as its `QUIETDECK_PUBLIC_URL`. |
| `node.token_file` | path | `~/.config/quietdeck/node-token` | The file holding the node token. The node refuses a file other users can read. |
| `node.token_env` | string | | An environment variable holding the token instead, for a node started under your secrets manager. Set this or `token_file`, not both. See [How the node reads its token](https://quietdeck.ai/docs/secrets-management.md#how-the-node-reads-its-token). |

### sessions

Arguments for the sessions the deck starts or resumes on this machine. Permission flags come only from here, never
from the deck or a card ([Starting, resuming and closing sessions](https://quietdeck.ai/docs/getting-started.md#starting-resuming-and-closing-sessions)).

| Key | Type | Default | What it does |
|---|---|---|---|
| `sessions.claude_args` | list of strings | `[]` | Added to every Claude Code session, such as `--dangerously-skip-permissions`. On a machine with Fleetlayer, sessions start with the flags in Fleetlayer's node.yaml instead (`harnesses.claude.args`), except a start naming a session other than its tab. |
| `sessions.codex_args` | list of strings | `[--no-daemon]` | Added to every Codex session. `--no-daemon` stops a Codex daemon from another pane reporting this session as its own. |

### programs

| Key | Type | Default | What it does |
|---|---|---|---|
| `programs.herdr` | string | `herdr` | The herdr binary, by name on `PATH` or by full path. |
| `programs.claude` | string | `claude` | The Claude Code binary. |
| `programs.codex` | string | `codex` | The Codex binary. |

### summaries

Session summaries, written by headless Claude Code on this machine ([Session
summaries](https://quietdeck.ai/docs/getting-started.md#session-summaries), [the module's interface](https://quietdeck.ai/docs/summaries-interface.md)).

| Key | Type | Default | What it does |
|---|---|---|---|
| `summaries.enabled` | bool | `true` | Summarise this machine's sessions. |
| `summaries.idle_seconds` | number | `60` | How long a session must stay idle before it's summarised. |
| `summaries.min_gap_seconds` | number | `1800` | At most one summary per session in this window. Raise it to spend less. |
| `summaries.max_concurrent` | number | `2` | Summary calls at once on this machine. |
| `summaries.input_cap_chars` | number | `48000` | The most new activity, in characters, one call reads. |
| `summaries.daily_chunk_days` | number | `30` | Older history is summarised by day for this many days, then by week. |
| `summaries.sweep` | bool | `true` | Run a sweep when the node starts and once a day, which catches sessions that crashed. |
| `summaries.model` | string | `sonnet` | The model for summary and catch-up calls. |
| `summaries.user_name` | string | `""` | Your name, as the prompts use it ("since Sam's last message"). Empty means "the user". |

### usage

Legacy: the node no longer reads account usage. The section and its keys (`enabled`, `poll_minutes`, `codex`, `claude`,
`serve_coordinator_api`) are accepted and ignored, so an older node.yaml still loads. Usage readings are Fleetlayer's
(`fleetlayer readings claude.usage`, from its claude-auth-manager plugin).

### runner

The runner, only on the machine where the triage agent runs. It watches mail, wakes the agent, and carries out
approved actions that need no thought ([Executor, and the runner that uses it](https://quietdeck.ai/docs/executor.md), [Read and change Gmail
with gog](https://quietdeck.ai/docs/guides/mail-through-gog.md)). The node checks this section when it starts, but only while `enabled` is true.

| Key | Type | Default | What it does |
|---|---|---|---|
| `runner.enabled` | bool | `false` | Turn the runner on. |
| `runner.agent.tab` | string | required | The triage agent's tab (or its name, when headless). It gets wake-ups, hand-offs and error reports. |
| `runner.agent.headless` | map | | Run the agent as one `claude -p` turn per message instead of in a tab. Keys below. |
| `runner.executor` | map | | Your Executor, for tools given by `path`. Keys below. Required as soon as any tool has a `path`. |
| `runner.mail` | `gog` | | Fill every mail tool you haven't set with the user's own gog CLI, and the mail watch too when there are accounts. A tool you set by hand still wins. |
| `runner.gog.bin` | string | `gog` | Where gog is, for `gog:` tools. |
| `runner.accounts.<id>.address` | string | required per account | The mailbox address. `<id>` is the account ID from `deck.yaml`. |
| `runner.accounts.<id>.label` | string | the ID, capitalised | How wake-ups and reports name the account. |
| `runner.accounts.<id>.vars` | map of strings | `{}` | Anything else the tool inputs need, as `${account.<name>}`: an Executor account ID, a gog account name. |
| `runner.mail_watch` | map | | Watch the accounts for new mail. Keys in the next table. Needs `runner.accounts`. |
| `runner.quiet_hours` | map | | `{from: "23:00", to: "08:00", tz: Pacific/Auckland}`: hours when the agent isn't woken. New mail waits, and the first check after them sends one wake-up with everything (the morning's catch-up round). `to` earlier than `from` runs past midnight; `tz` defaults to the machine's. With `QUIETDECK_FLEETLAYER_PRESENCE` set on the deck, Fleetlayer's presence decides instead (asleep: nothing wakes the agent; waking sends the catch-up at once), and these hours apply only while presence is unknown. |
| `runner.wake_overnight` | list | `[]` | Chat rooms whose new messages wake the agent even while you're asleep or in quiet hours, for those messages alone: `[infrastructure-alerts]`, so the agent that owns a service fixes it without waiting for you. Matched to the room's name ignoring case, `#`, spaces, hyphens and underscores. |
| `runner.intercom_watch` | map | | Watch a support inbox (Intercom) like a mailbox. Keys in [runner.intercom_watch](#runnerintercom_watch). |
| `runner.thread` | tool | | Reads a thread's message IDs, labels and dates (never its content), for the freshness check before an action. |
| `runner.send_as` | tool | | Lists the addresses an account can send as, read hourly. A draft from any other address goes to the agent. |
| `runner.labels` | tool | | Lists an account's labels, so a label that doesn't exist yet goes to the agent, and a gmail-filter lease's filter finds its label. |
| `runner.boards.<name>` | map | | The IDs your story tool needs for each board named in `deck.yaml`, as `${board.<field>}` (a workflow state, a team, a list). |
| `runner.gmail_filters` | map | | The tools behind Fleetlayer's gmail-filter leases ([Fleetlayer's leases plugin](https://fleetlayer.ai/docs/plugins/leases/)). Keys below. The runner makes filters only with `fleetlayer` set. |
| `runner.eligible` | list of action types | every type except `reply` | The action types the runner takes on. A type left out always goes to the agent. `reply` is refused: a reply always goes through the agent. |
| `runner.tools.<name>` | tool | | The tool that carries out each action. Names: `archive`, `mark_read`, `not_spam`, `close_conversation`, `label`, `draft`, `calendar`, `story.create`, `story.comment`, `task.create`, `task.update`, `task.done`. Any other name is refused. Forwards, resumes, new sessions and watches need no tool. An action with no tool goes to the agent. |

The default `eligible` list is `archive`, `mark_read`, `label`, `draft`, `forward`, `watch`, `story`, `task`, `calendar`,
`resume` and `new_session`.

#### A tool

Every key above marked "tool" takes the same shape. Set exactly one of `path`, `command` or `gog`.

| Key | Type | What it does |
|---|---|---|
| `path` | string | An Executor app tool, such as `tools.google.gmail.modify`. Needs `runner.executor`. |
| `command` | list of strings | A program and its arguments. It gets the input as JSON on stdin and prints JSON. |
| `gog` | string | A gog operation: `profile`, `history`, `message`, `message_text`, `recent`, `drafts`, `inbox`, `thread`, `send_as`, `labels`, `archive`, `mark_read`, `label` or `draft`. |
| `input` | any | What the tool gets. In it, `${...}` names a value: `account.address`, `account.<var>`, `action.<field>`, `card.<field>`, `board.<field>`; for the mail watch `history_id`, `page_token` and `message_id`; for `gmail_filters` `lease.*` and `thread_ids`. A string that is only a placeholder keeps the value's type, and a placeholder with no value leaves its key out. The full list is in [Add the runner to node.yaml](https://quietdeck.ai/docs/executor.md#3-add-the-runner-to-nodeyaml). |

#### runner.executor

| Key | Type | Default | What it does |
|---|---|---|---|
| `runner.executor.url` | URL | required | Executor's MCP endpoint, `https://executor.example.com/org/<org>/mcp`. |
| `runner.executor.token_file` | path | | The runner's own Executor token, in a file only you can read. |
| `runner.executor.token_env` | string | | An environment variable holding it instead. Set this or `token_file`, not both. |
| `runner.executor.call_tool` | string | `call` | The MCP tool that runs one app tool by path. |

#### runner.agent.headless

The agent reads untrusted mail, so it gets one command and nothing else ([Give an agent untrusted mail and one
command](https://quietdeck.ai/docs/guides/headless-agent-one-cli.md)).

| Key | Type | Default | What it does |
|---|---|---|---|
| `runner.agent.headless.bin` | string | `claude` | The Claude Code CLI. |
| `runner.agent.headless.cwd` | path | `~/.local/share/quietdeck/agent` | Where each turn runs. Made on first use. |
| `runner.agent.headless.instructions_file` | path | | The triage instructions, added to Claude Code's system prompt. |
| `runner.agent.headless.model` | string | Claude Code's default | Passed as `--model`. |
| `runner.agent.headless.allowed_tools` | list of strings | `quietdeck` with `whoami`, `card`, `cards`, `report`, `round`, `chat`, `decisions`, `action`, `actions`, `history` | Claude Code permission rules, as `Bash(quietdeck card:*)`. `Bash`, `Bash(*)`, `Bash(quietdeck:*)` and `Bash(quietdeck *)` are refused. |
| `runner.agent.headless.turn_timeout` | duration | `15m` | The longest one turn may take before it's stopped. |

#### runner.mail_watch

With `runner.mail: gog`, the whole section is filled in for you. With Executor, you set `profile` and `history` at
least ([Archive in Gmail and the report keeps up](https://quietdeck.ai/docs/guides/archive-in-gmail.md)).

| Key | Type | Default | What it does |
|---|---|---|---|
| `runner.mail_watch.every` | duration | `30s` | How often each account is checked. |
| `runner.mail_watch.profile` | tool | required | Reads the account's current history ID (Gmail's `users.getProfile`). |
| `runner.mail_watch.history` | tool | required | Lists changes since a history ID (Gmail's `users.history.list`): new messages, and labels removed or messages deleted, so mail you archive in Gmail leaves the report. |
| `runner.mail_watch.message` | tool | | Reads one new message's From, To, Subject and snippet, never its body, for [while-you-read](https://quietdeck.ai/docs/guides/while-you-read.md) rules. A message that's already gone then doesn't wake the agent. |
| `runner.mail_watch.drafts` | tool | | Lists the account's drafts every 5 minutes, for the Drafts tab. |
| `runner.mail_watch.inbox` | tool | | Lists every thread ID in the inbox every `inbox_every`, to notice threads that left it, for a history tool that can't say so itself (gog's). |
| `runner.mail_watch.inbox_every` | duration | `5m` | How often `inbox` runs. |
| `runner.mail_watch.message_text` | tool | | Reads one new message's headers and sanitised text, so each wake-up carries the mail itself, for an agent with no mail tools of its own. |
| `runner.mail_watch.recent` | tool | | Lists the inbox's newest messages once, on the first check, so such an agent starts with what's already there. |

#### runner.intercom_watch

Open conversations waiting on a reply wake the agent like new mail: the wake-up counts them and gives their IDs, and
the agent reads each with its own tools (customer text never passes through the runner). A conversation you answered
or closed has no `waiting_since`, so your own work doesn't wake it. The first check only notes the time: what's
already open is the agent's first round. A conversation and its email copies make one card, which closes the
conversation (`close_conversation`) and archives the emails.

| Key | Type | Default | What it does |
|---|---|---|---|
| `runner.intercom_watch.every` | duration | `2m` | How often the conversations are listed (on the mail watch's tick). |
| `runner.intercom_watch.account` | string | required | The deck's account for the support inbox (`deck.yaml`'s `{ id: intercom, label: Intercom }`), which its cards and `close_conversation` actions name. Not one of `runner.accounts`, which are mailboxes. |
| `runner.intercom_watch.conversations` | tool | required | Lists open conversations changed since `${updated_since}` (seconds since the epoch), the next page from `${starting_after}`: `{conversations: [{id, state, updated_at, waiting_since}], next}`. |

#### runner.gmail_filters

Leases are Fleetlayer's ([its leases plugin](https://fleetlayer.ai/docs/plugins/leases/)): a session asks with
`fleetlayer lease acquire gmail-filter --payload '{"account": "work", "query": "from:…"}'`, the person approves the
filter once, and the runner makes the Gmail filters match the held leases. In each input, `${lease.query}`,
`${lease.label}`, `${lease.label_id}`, `${lease.filter_id}` and `${thread_ids}` name the lease's values.

| Key | Type | Default | What it does |
|---|---|---|---|
| `runner.gmail_filters.create` | tool | required | Creates the filter: the query, add the lease's label, take it out of the inbox and mark it read. Returns `{id}`. |
| `runner.gmail_filters.delete` | tool | required | Deletes the filter. |
| `runner.gmail_filters.create_label` | tool | required | Creates the lease's label the first time. Returns `{id}`. |
| `runner.gmail_filters.inbox` | tool | | Finds matching threads already in the inbox. Set it together with `move`. |
| `runner.gmail_filters.move` | tool | | Moves those threads out of the inbox, read, with the lease's label. |
| `runner.gmail_filters.fleetlayer` | map | | Take the filters from Fleetlayer's leases. Every `every` (default `1m`) the runner runs `<command> lease list --json` (default `fleetlayer`) and makes its filters match the held leases of `kind` (default `gmail-filter`), whose payload is `{"account": "<runner account>", "query": "from:…"}`: it creates what's missing, labelled `Quietdeck/Lease/<first holder's tab>`, and removes the filters it made that no held lease covers. It never touches a filter it didn't make. A failure shows on the runner's health. |

### matrix

The Matrix reader, only on the machine that holds the Matrix user's password ([Bring Matrix messages to the triage
agent](https://quietdeck.ai/docs/guides/matrix-source.md)). The node checks this section whenever it's present.

| Key | Type | Default | What it does |
|---|---|---|---|
| `matrix.homeserver` | URL | required | The homeserver, `https://matrix.example.com`. |
| `matrix.user` | string | required | The node's own Matrix user, a full ID such as `'@quietdeck:example.com'`. Quote it. |
| `matrix.password_file` | path | required | A file only you can read, holding the password and nothing else. |
| `matrix.rooms` | list of strings | required | The rooms to read, by ID (`'!abc123:example.com'`), not alias. The user must already be a member. |
| `matrix.store` | path | `~/.local/state/quietdeck/matrix` | The device, its token and its crypto store. Keep it on one node. |
| `matrix.device_name` | string | `Quietdeck (<node name>)` | The device name other members see. |
| `matrix.heartbeats[].room` | string | | A dead man's switch room, by ID. A message there is passed on as a ping and goes nowhere else. It can't also be in `rooms`. |
| `matrix.heartbeats[].ping_url_file` | path | | A file only you can read, holding the ping URL (a Healthchecks.io check, say). At most one ping a minute per room. |

## deck.yaml

The deck reads it when it starts. A missing file means every default. An example is in
[`deploy/deck.example.yaml`](https://github.com/QuietdeckAI/quietdeck/blob/main/deploy/deck.example.yaml).

| Key | Type | Default | What it does |
|---|---|---|---|
| `accounts[].id` | string | | The account's ID on cards, timeline entries and pings. Each ID once. With no accounts listed, any ID is accepted. |
| `accounts[].label` | string | | What the Inbox's tab for it says. |
| `accounts[].address` | string | | The mailbox address, so "View email" can open a card's thread in Gmail. Optional. |
| `boards` | list of strings | `[]` | The board names stories can go to. The runner's `boards` maps each to your tracker's IDs. |
| `tasks.label` | string | | Your own task board's label. |
| `pings.weekly_budget` | number | `10` | How many pings a week before the Rules screen shows you're over. Nothing is ever held back ([Pings on your phone](https://quietdeck.ai/docs/getting-started.md#pings-on-your-phone)). |
| `triage.node` | string | | With `tab`: who gets your comments on the deck's own timeline entries. Usually your triage tab. |
| `triage.tab` | string | | That session's tab. |
| `leases` | map | | Retired: leases moved to Fleetlayer. Still read, with a warning in the log: `leases.fallback` counts as `triage` when that isn't set, and `heavy_build_slots` is ignored. |
| `projects.<name>.dirs` | list of paths | `[]` | The working directories in this project. `~` works. A session belongs to the project with the longest matching directory. |
| `projects.<name>.accounts` | list of strings | `[]` | Accounts in this project, for actions on no session. |
| `session_starts_per_day` | number or `null` | `3` | Automatic resumes and new sessions (`resume`, `new_session` under a rule) allowed in any 24 hours. `null` for no cap, when Fleetlayer decides them (its `session.start` grant and policy limits, [With Fleetlayer](https://quietdeck.ai/docs/guides/with-fleetlayer.md#automatic-starts-by-the-runner)). |
| `projects.<name>.automatic` | list of action types | `[]` | The action types the project's policy lets run automatically, under a rule you granted. Adding `reply` works but logs a warning ([Automatic actions](https://quietdeck.ai/docs/getting-started.md#automatic-actions-rules-and-policies)). |
| `status.checkins` | bool | `false` | Whether the deck checks in with agents whose Status board row is stale: a session that's working, or did real work in the last `every_minutes`, whose row is older than that and that wasn't asked in that time. Never one blocked on a prompt, or while you're away or asleep (Fleetlayer presence). Turn it on once every node's CLI has `quietdeck status`. |
| `status.every_minutes` | number | `30` | How old a row may get, and how recent a session's last real work must be, before a check-in. Answering a check-in doesn't count as work. |
| `status.skip_tabs` | list of strings | `[]` | Tabs never checked in with (one-off jobs). |
| `status.shortcut_workspace` | string | | Your Shortcut workspace's slug (`app.shortcut.com/<slug>/…`), so `--story sc-123` links to the story. |

Action types are `archive`, `mark_read`, `not_spam`, `close_conversation`, `label`, `forward`, `draft`, `reply`,
`story`, `task`, `calendar`, `resume`, `new_session`, `watch` and `session`. (`lease` is retired: a card carrying
one is refused.)

## Environment variables

### The deck

Set on the deck's container. [`deploy/README.md`](https://github.com/QuietdeckAI/quietdeck/blob/main/deploy/README.md)
has the ports, volume and ingress around them.

| Variable | Required | Default | What it does |
|---|---|---|---|
| `QUIETDECK_PUBLIC_URL` | yes | | The deck's one stable HTTPS origin, a host name rather than an IP address: the passkey relying party, the origin push links open, and the address nodes connect to. Changing it means registering passkeys again. `http://localhost:<port>` works for a deck on your own machine. |
| `QUIETDECK_HOOKS_PUBLIC_URL` | for webhooks | | The public origin of the hooks port, such as `https://hooks.example.com`, for printing endpoint URLs ([Send alerts to the agent that owns them](https://quietdeck.ai/docs/guides/alerts-to-owners.md)). |
| `QUIETDECK_FLEETLAYER_URL` | no | | Fleetlayer's control plane. With the token, the deck pulls the summaries Fleetlayer's summaries plugin writes. |
| `QUIETDECK_FLEETLAYER_TOKEN` | with the URL | | A read-scoped Fleetlayer token. A secret. Set both or neither. |
| `QUIETDECK_FLEETLAYER_DELEGATE_TOKEN` | no | | A delegate-scoped Fleetlayer token. With the URL and Fleetlayer sign-in, the person's answer on the Work tab to a question about a session is typed into that session as their own words (`From the Work tab: …`), so the session acts on it as theirs; otherwise the deck sends it as its own message. A secret. |
| `QUIETDECK_FLEETLAYER_PRESENCE` | no | | `<person>@<node>` (`nathan@agents-presence`): whose presence the runners follow, and the node of Fleetlayer's presence authority. Read every minute with the read token. While the person is asleep the triage agent isn't woken, in place of `runner.quiet_hours`; a reading from any other node, or older than 15 minutes, counts as unknown. A watch failing for 15 minutes shows on `/healthz/runners`. |
| `QUIETDECK_FLEETLAYER_SEND_TOKEN` | no | | A send-scoped Fleetlayer token. With the URL, the deck's own words to sessions (the chat, report answers, handoffs) go through Fleetlayer as `service:quietdeck`. A secret. |
| `QUIETDECK_FLEETLAYER_APPROVE_TOKEN` | no | | An approve-scoped Fleetlayer token (`fleetlayer-control token add quietdeck-approve --scope approve --owner <you>`). With the URL, Fleetlayer's access requests and open admin windows show on the Work tab, decided there as you. It can't do anything else, but whoever reads it can approve any request except a window, so keep it with the deck only, never where an agent can read it. A secret. |
| `QUIETDECK_FLEETLAYER_SIGNIN_URL` | no | | Fleetlayer's sign-in service. Opening an admin window from the deck sends you to its `/stepup` page to confirm with your passkey, and back; list the deck's address in its `stepup_return_origins`. Without it, windows can't be opened from the deck. |
| `QUIETDECK_FLEETLAYER_ROOM_CHANNELS` | no | | Matrix rooms read through Fleetlayer's Matrix plugin: their channel names, comma-separated (`infrastructure-alerts,family`). The deck reads their messages from the control plane's event log with `QUIETDECK_FLEETLAYER_TOKEN` and stores them as the node's `matrix:` reader does ([Read Matrix rooms through Fleetlayer](https://quietdeck.ai/docs/guides/with-fleetlayer.md#read-matrix-rooms-through-fleetlayer)). |
| `QUIETDECK_ALERT_HEARTBEAT_CHANNEL` | no | | A Fleetlayer channel carrying Alertmanager's Watchdog (`alert-heartbeat`). Read with the rooms, never stored or handed to an agent; each message pushes the alert-path heartbeat with `/healthz/runners`' verdict. |
| `QUIETDECK_ALERT_HEARTBEAT_URL` | no | | Gatus's external endpoint for that heartbeat (`https://<gatus>/api/v1/endpoints/<key>/external`). |
| `QUIETDECK_ALERT_HEARTBEAT_TOKEN` | no | | The endpoint's bearer token. |
| `QUIETDECK_FLEETLAYER_TENANT` | no | `default` | Fleetlayer's place slug, for the passkey page. |
| `QUIETDECK_FLEETLAYER_SIGNIN_SECRET_FILE` | no | | The deck's client secret at Fleetlayer's sign-in service (a file, mode 600). With `QUIETDECK_FLEETLAYER_SIGNIN_URL` and `QUIETDECK_FLEETLAYER_SIGNIN_OWNER`, the deck signs in only through Fleetlayer and turns its own passkeys off ([Sign in through Fleetlayer](https://quietdeck.ai/docs/guides/with-fleetlayer.md#sign-in-through-fleetlayer)). Set all three or none. |
| `QUIETDECK_FLEETLAYER_SIGNIN_OWNER` | no | | Who may sign in that way: the person's ID at the sign-in service (`p_…`, which is never reused), or their handle (`sam`), which could later be given to someone else. Anyone else is refused, since a deck has one owner. |
| `QUIETDECK_FLEETLAYER_SIGNIN_CLIENT` | no | `quietdeck` | The deck's client ID at the sign-in service. |
| `QUIETDECK_VAPID_PUBLIC_KEY` | for push | | Web Push public key, base64url. `quietdeck-server vapid-keys` makes a pair. |
| `QUIETDECK_VAPID_PRIVATE_KEY` | for push | | The matching private key. A secret. Changing the pair drops every device's push subscription. |
| `QUIETDECK_VAPID_SUBJECT` | no | `QUIETDECK_PUBLIC_URL` | A contact for push services: `mailto:you@example.com` or an `https://` URL. Needed when the public URL isn't HTTPS. |
| `QUIETDECK_DATA_DIR` | no | `/data` | Where the database lives. |
| `QUIETDECK_CONFIG` | no | `$QUIETDECK_DATA_DIR/deck.yaml` | Where `deck.yaml` is. |
| `QUIETDECK_LISTEN` | no | `0.0.0.0:8080` | The app's address: web app, API, node WebSocket and MCP. Private network only. |
| `QUIETDECK_HOOKS_LISTEN` | no | `0.0.0.0:8081` | The webhook receiver's address. |
| `RUST_LOG` | no | `info` | Log level. |
| `QUIETDECK_DEV_TRUST_LOCAL` | no | off | Development only: every browser request counts as the signed-in owner. Never on a deck anyone else can reach. |
| `QUIETDECK_LOCAL_ONLY` | no | off | Quietdeck solo's mode: loopback only, no passkeys, no webhook receiver. `quietdeck-solo` turns it on itself; don't set it on a deck. |

`QUIETDECK_COMMIT` and `QUIETDECK_BUILT_AT` are read when the image is built, not when it runs: they're what Settings'
Release panel shows.

### A node and the CLI

All optional. The defaults suit almost every machine.

| Variable | Default | What it does |
|---|---|---|
| `QUIETDECK_CONFIG_DIR` | `~/.config/quietdeck` | Where `node.yaml` and the node token are. |
| `QUIETDECK_STATE_DIR` | `~/.local/state/quietdeck` | The node's state: offsets, the runner's history IDs, summaries state, the Matrix store. |
| `QUIETDECK_NODE_SOCKET` | `$XDG_RUNTIME_DIR/quietdeck/node.sock` on Linux, `~/Library/Application Support/quietdeck/node.sock` on macOS | The local socket the CLI and the menu bar app use. |
| `QUIETDECK_FLEETLAYER_SOCKET` | `fleetlayer-plugin.sock` beside the node socket | The socket of the node's Fleetlayer plugin, for messages sent through Fleetlayer. |
| `QUIETDECK_SESSION_ADDRESS` | herdr's `HERDR_PANE_ID` | Says which session a CLI call comes from, for an orchestrator other than herdr ([Orchestrators](https://quietdeck.ai/docs/orchestrators.md)). |
| `CLAUDE_ACCOUNT_ROTATOR_DIR` | `~/.claude/account-rotator` | Where summaries look for the Claude account rotator's `coordinator.sock`, to pick the account for their calls. |

`QUIETDECK_SOLO_CONFIG` and `QUIETDECK_SOLO_DATA` belong to Quietdeck solo ([solo.yaml and the quietdeck-solo
command](https://quietdeck.ai/docs/solo-reference.md)).

## Minimal examples

### node.yaml, any machine

```yaml
node:
  name: laptop
  deck: https://deck.example.com
  token_file: ~/.config/quietdeck/node-token
```

### node.yaml, the triage agent's machine, mail through gog

```yaml
node:
  name: server
  deck: https://deck.example.com
  token_file: ~/.config/quietdeck/node-token

sessions:
  claude_args: [--dangerously-skip-permissions]

runner:
  enabled: true
  agent: { tab: email triage }
  mail: gog
  accounts:
    personal: { address: you@example.com, label: Personal }
```

For the same runner through Executor, with stories and Gmail filters for Fleetlayer's leases, copy the `runner:` section of
[`deploy/node.example.yaml`](https://github.com/QuietdeckAI/quietdeck/blob/main/deploy/node.example.yaml).

### deck.yaml

```yaml
accounts:
  - { id: personal, label: Personal, address: you@example.com }
boards: [engineering]
pings: { weekly_budget: 10 }
triage: { node: server, tab: email triage }
projects:
  app:      { dirs: [~/code/app], automatic: [forward, archive, story, task] }
  personal: { accounts: [personal], automatic: [forward, archive] }
```

### The deck's environment

```sh
QUIETDECK_PUBLIC_URL=https://deck.example.com
QUIETDECK_HOOKS_PUBLIC_URL=https://hooks.example.com
QUIETDECK_VAPID_PUBLIC_KEY=<from quietdeck-server vapid-keys>
QUIETDECK_VAPID_PRIVATE_KEY=<from your secrets manager>
QUIETDECK_VAPID_SUBJECT=mailto:you@example.com
```
