Skip to main content
Complete configuration reference for beads. Last reviewed: 2026-11-19 Freshness source: cmd/bd/main.go, cmd/bd/config.go, internal/config/, internal/configfile/, and internal/endpointtrust/. beads has two complementary configuration systems:
  1. Tool-level configuration (YAML, managed by Viper) — startup flags and tool behavior, stored in config.yaml files. These are user preferences: output format, auto-commit behavior, CLI ergonomics.
  2. Project-level configuration (managed by bd config) — integration credentials, status maps, and project-specific settings, stored in the Dolt database. Some keys are routed to config.yaml instead (see YAML-only keys below).
The split is deliberate: tool settings are user-specific; project config is team-shared and travels with the database when you run bd dolt push. That is also why secrets are refused in the database — see Security. Dolt is the only storage backend. Embedded mode (the default) stores data at .beads/embeddeddolt/; server mode (bd init --server or BEADS_DOLT_SERVER_MODE=1) uses .beads/dolt/. See Dolt architecture.

Configuration Locations

config.yaml is searched in this order, with later files overriding earlier ones:
  1. ~/.beads/config.yaml (legacy user-level, lowest priority)
  2. $XDG_CONFIG_HOME/bd/config.yaml on Linux and macOS when XDG_CONFIG_HOME is set, %AppData%\bd\config.yaml on Windows (native user-level; with XDG_CONFIG_HOME unset on Linux or macOS this is the next entry)
  3. ~/.config/bd/config.yaml (user-level; this exact path is checked even on platforms whose native user-config directory differs)
  4. <repo>/.beads/config.yaml (project-level, walked up from the current directory)
  5. $BEADS_DIR/config.yaml (highest priority, when BEADS_DIR points at a different workspace)
A config.local.yaml next to the project config.yaml is also merged in last for machine-specific overrides that should not be committed. On macOS, bd no longer reads ~/Library/Application Support/bd/config.yaml or the global ~/Library/Application Support/beads/PRIME.md: probing that folder can raise a macOS privacy prompt (GH#8113). The macOS user config directory is now $XDG_CONFIG_HOME when set, otherwise ~/.config, for both bd/config.yaml and beads/PRIME.md. Move any settings in the old file to bd/config.yaml, and PRIME.md to beads/PRIME.md, in that directory; bd doctor lists the settings that differ and prints the commands. Apart from bd doctor, bd reads the old config only when the new one has no metrics.disabled (normally once, after upgrading). It then carries the metrics settings (metrics.disabled, metrics.endpoint, metrics.notice_shown) into the new config, keeping any value the new config already sets, and in the same write the per-machine settings bd config set writes there: node_id unless the new config sets it or bd config unset removed it, and mail.delegate and dolt.remotesapi-port only when bd creates the new config (bd read those two from ~/.config/bd/config.yaml alone whenever it existed). When bd never reads the old file (BD_DISABLE_METRICS or DO_NOT_TRACK turns metrics off, the new config already has metrics.disabled, or one of the cases below keeps bd out of the old folder), nothing is carried; without node_id, the guard that keeps bd reclaim from reverting leases another replica granted is off. If the old file cannot be read or parsed, nothing is carried and metrics are left off. If the new config cannot be written, bd leaves the old folder alone and metrics stay off on macOS until the user config sets metrics.disabled or BD_DISABLE_METRICS is set (BD_DISABLE_METRICS set to 0, false or empty turns metrics on). Metrics on macOS also stay off, silently, when the user config has a commented-out metrics block, unparseable YAML, a top level that is not a mapping (for example a file holding only ---), a metrics key that is not a section, a dangling symlink or a non-bool metrics.disabled; bd metrics on or bd metrics off settles it (first fix unparseable YAML, a non-mapping top level or a non-section metrics key, and create the target folder of a dangling symlink). On macOS bd leaves a .lock file named after the user config (config.yaml.lock), or after its target when the config is a symlink to an existing file. Paths are unchanged on Linux and Windows.

Missing metadata.json

.beads/metadata.json names the workspace’s Dolt database. Your issues live in that database; .beads/issues.jsonl is only an export of them and never stands in for it. If metadata.json is missing from an embedded workspace, bd does not fall back to a new, empty database beside the ones the workspace already holds:
  • With exactly one database under .beads/embeddeddolt/, bd uses it and names it on stderr.
  • With several, bd refuses to pick one: the command fails before opening any database, lists the candidates, and suggests restoring metadata.json or naming the database for the command with BEADS_DOLT_SERVER_DATABASE=<name> bd ....
  • When the workspace holds databases, BEADS_DOLT_SERVER_DATABASE must name one of them; a name that matches none is refused rather than created.
  • With none, bd opens the default database, beads, or the one BEADS_DOLT_SERVER_DATABASE names.

Precedence

For Viper-managed (YAML) keys, highest to lowest:
  1. Command-line flags (e.g. --json, --db, --actor)
  2. Environment variables (BD_*, plus a small set of legacy BEADS_* names — see below)
  3. config.yaml files (in the order listed above)
  4. Built-in defaults
Project-level keys written via bd config set (Jira, Linear, GitHub, status maps, etc.) live in the Dolt database. They are read at command time and have no env var override. bd pins the AI, tracker (GitHub, GitLab, Azure DevOps, Jira, Linear) and remote Dolt server endpoint each workspace sends credentials to, in ~/.config/beads/trusted-endpoints.json ($XDG_CONFIG_HOME/beads/ when set, %APPDATA%\beads\ on Windows). That location is resolved from your shell environment only — a committed .beads/.env that sets XDG_CONFIG_HOME, APPDATA or HOME cannot relocate the pin store. The vendor default endpoint and bd’s local Dolt server pin on first use; a custom endpoint from shared configuration is refused until a private source confirms it, and the confirmation pins it. The comparison covers scheme, host, port and path. If an endpoint from shared configuration (.beads/config.yaml, .beads/config.local.yaml, .beads/.env, .beads/metadata.json or the synced database) later differs from the pin, bd refuses to send the credential. The Dolt server pin is enforced wherever BEADS_DOLT_PASSWORD would be sent, including the bd dolt status and bd dolt clean-databases diagnostics and the bd doctor checks and repairs. To confirm an intended change, set the endpoint’s environment variable in your shell (not in .beads/.env) or the key in ~/.config/bd/config.yaml; to reset, delete the workspace’s entry from the pin file. Dolt remote credentials (DOLT_REMOTE_USER/DOLT_REMOTE_PASSWORD for sync.remote and federation peers) are not covered by these pins. When a config.yaml value or environment variable shadows a database key, bd config list prints an override warning, and bd config show reports the source of every effective key.

Managing Configuration

bd config set automatically routes the write to the right location: keys in the YAML namespace (see below) are written to the project config.yaml; everything else is written to the Dolt database. beads.role is stored in git config. Unrecognized keys produce a warning with a did-you-mean suggestion; use the custom.* namespace for user-defined keys.

YAML-only Keys (Startup Settings)

These keys must live in config.yaml, not the database, because they are read before the database is opened. Writing them with bd config set automatically updates config.yaml. The bd serve settings surface (PUT /v0/beads/config/{key}, and the dashboard behind it) cannot write your config.yaml, so it refuses every one of these keys with a 400 and stores nothing: the database’s config table is replicated by bd dolt push, and a secret stored there would reach every remote. Set them with bd config set in the workspace instead. DELETE /v0/beads/config/{key} still removes a row an older bd or server stored under one of these keys; rotate any secret that was already pushed. The full namespaces routed to YAML are: routing.*, sync.*, git.*, directory.*, repos.*, external_projects.*, validation.*, lint.*, hierarchy.*, ai.*, backup.*, export.*, dolt.*, federation.*, metrics.*, list.*, audit.*, storage-class.* lint.* holds lint settings: lint.sections.<type> is a comma-separated, additive list of sections that bd lint additionally requires for issues of that type (built-in required sections still apply; unset means no behavior change). Plus these individual keys: json, db, actor, identity, no-push, no-git-ops, agent.profile, create.require-description, import.auto, import.path, prime.max-memories, prime.max-memory-chars, prime.disabled, memories.budget-chars, and the secret keys github.token, gitlab.token, jira.api_token, ado.pat, linear.api_key, linear.oauth_client_id, linear.oauth_client_secret, notion.token. no-db is obsolete: the JSONL-only mode it selected is gone, and issues always live in the Dolt database. bd config set no-db is refused; an old no-db: true in any config.yaml or config.local.yaml (or BD_NO_DB=true) is ignored with a warning on stderr. bd config unset no-db removes it from the workspace’s own config.yaml; delete an entry in a user-level config.yaml or in config.local.yaml (see Configuration Locations) by hand. Any key whose name contains api_key, api-key, secret, token, or password is treated as a secret: it is refused on git-tracked config.yaml files unless you pass --force-git-tracked. Prefer exporting the value as an environment variable instead (e.g. LINEAR_API_KEY). bd config unset on one of these secret keys clears the config.yaml entry and also deletes any copy an older bd stored in the database, reporting which of them it removed. Keys reached YAML routing at different points in bd’s history, so a workspace configured before the move can still hold the value in a table that bd dolt push replicates. The database half is best effort: the command never creates a database to look in, so it is skipped where reaching the row would mean provisioning one — but not for a server-mode or proxied workspace whose database is real and simply not on local disk; a database that refuses the delete is reported as a row that is still stored. Deleting it locally does not unpublish it — rotate a secret that has already been pushed.

Tool-Level Settings (config.yaml)

JSONL export is opt-inexport.auto and export.git-add are disabled unless configured explicitly. .beads/issues.jsonl is an optional export for viewers, interchange, and issue-level migration. It is not the canonical source of truth, not cross-machine sync, and not a full database backup.Workflows that depend on a fresh, git-staged JSONL file should opt in:
Use bd dolt push / bd dolt pull for sync and bd backup for restorable database backups.

Passive Export Timing and Coverage

export.auto refreshes the export after eligible mutating commands, and export.interval (default 60s) is the minimum time between those refreshes. It is not a maximum staleness bound and not a timer: a write inside the window is skipped and exports only when a later mutating command runs. Without such a command — or an explicit export — the file can remain stale indefinitely. The pre-commit hook adds one more refresh opportunity, but only when the commit stages at least one .beads/ path, and never when .beads/issues.jsonl itself is staged for deletion. A commit that stages no beads paths does not refresh the export. Detect and refresh a stale file explicitly:
bd doctor --check=export is the missing-ID staleness detector: it exits 0 with a warning when an in-scope store issue ID is absent from the export file, and names bd export -o <resolved-path> as the refresh action: the path is the file auto-export writes, including a custom export.path, so use it in place of the default path in the example above. It reports ID coverage only — not full record content equality, and not backup validity. Bare bd doctor and bd doctor --check=artifacts do not perform this coverage check. The export file is not a database backup: for recovery, use bd backup and bd dolt push / bd dolt pull (see Dolt History, Backup, and Push). Routing note: output.title-length and agents.file are functionally tool-level settings, but bd config set writes them to the Dolt database. They are typically read from config.yaml when set there directly. bd config show is the source of truth for what’s currently effective on your machine, including provenance.

Dolt History, Backup, and Push

Three post-write behaviors run after each successful write command, in this order: auto-commit, auto-backup, auto-push.

Auto-commit: SQL Commits vs Dolt Commits

There are two different kinds of “commit”:
  • SQL transaction commit — what happens when a bd command updates tables successfully (durable in the Dolt working set).
  • Dolt version-control commit — what records those changes into Dolt history (visible in bd history, and what push/pull/merge workflows operate on).
By default (dolt.auto-commit: on), bd creates a Dolt history commit after each successful write command, so changes are never left only in the working set. The cost is more Dolt commits over time — one per write command — which is intentional; use bd compact to squash old history. Disable for a single command:
Or in config.yaml:
batch and off defer the Dolt history commit instead of skipping the write: the change is still durable in the working set, and bd dolt commit records the accumulated batch as a single Dolt commit. This applies on every storage mode — embedded, direct SQL-server, and proxied-server. In proxied-server mode the deferral covers the writes the CLI makes on that route, including workspace config and version metadata, and bd dolt commit is the only flush point there: the SIGTERM/SIGHUP flush of a live batch-mode process needs an open store, which proxied mode never has (it does run in embedded and direct SQL-server modes). Two kinds of write stay outside the deferral, in every mode:
  • Explicit commit points — bd batch (whose commit message defaults to a synthesized one when -m is absent, so every batch commits), bd mol bond, bd mol pour, bd mol squash, bd mol wisp create, and the wisp half of bd mol burn — commit what they wrote, with the message they were given: the commit is that command’s contract rather than auto-commit policy. Burning a persistent molecule is an ordinary delete, so it honors the policy and defers with everything else.
  • Writes made by a bd serve process, whose HTTP API requests carry their own context instead of the CLI’s, so a daemon keeps committing per write even while the CLI on the same database defers.

Auto-backup

Periodic Dolt-native backup to .beads/backup/ provides a recovery path independent of the live database. Local Dolt commits (via dolt.auto-commit) remain the primary safety net; backup is a secondary layer. Unlike bd export or .beads/issues.jsonl, this is a full database backup: it preserves tables, branches, commit history, and working-set data.
How it works:
  • After each write command, bd compares the Dolt HEAD commit hash against the last backup state.
  • If data changed and the throttle interval has passed, bd checks the destination directory’s on-disk size against backup.size-cap-mb. CALL DOLT_BACKUP('sync', ...) only ever adds new chunks to the destination — it never prunes ones that became unreachable on the source (history rewrites, superseded data), and Dolt exposes no supported way to GC a backup destination in place. Left uncapped, the destination can only grow until disk fills; this was the root cause of a 2026-06-19 outage where a 1.7GB store produced a 43GB backup directory. Once the cap is reached, auto-backup pauses — nothing is deleted, but no further syncs run until you raise backup.size-cap-mb or point backup.git-repo at a different git repository, whose backup/ directory then becomes the destination. bd backup init does not end the pause: it configures the separate destination that manual bd backup sync pushes to. Set size-cap-mb: 0 to disable the cap entirely.
  • If the destination is under its cap, a Dolt-native backup is synced to .beads/backup/ (or to a backup/ directory inside backup.git-repo when configured).
  • State is tracked in backup_state.json inside the backup directory. bd backup status prints PAUSED (cap exceeded) when the destination is over its cap, and its --json output reports the same state as size_cap.exceeded: true — so an agent/CI caller relying on --json or --quiet can see that auto-backup has stopped instead of reading a reassuring “Last backup” line while nothing further syncs.
  • The cap applies only to auto-backup; manual bd backup / bd backup sync are not capped.
Manual commands (see bd backup):

Auto-push

By default, bd does not push automatically after write commands. Auto-push is explicit opt-in because concurrent pushes to git-protocol Dolt remotes can corrupt or strand remote history when multiple writers race. no-git-ops does not disable auto-push — it only covers bd’s own git activity in the bd prime close protocol. To stop Dolt network sync entirely, set dolt.local-only: true.
How it works:
  • After each write command (after auto-commit and auto-backup), bd checks whether a push is due.
  • Pushes are debounced: skipped if the last push was less than dolt.auto-push-interval ago.
  • Change detection: skipped if the Dolt HEAD commit hasn’t changed since the last push.
  • Push failures are warnings only (non-fatal), and failed attempts are throttled too.
  • Last push time and commit are tracked in .beads/push-state.json, a per-machine file (not in the database, to avoid merge conflicts across machines).
Before pushing, bd verifies the local chunk store with dolt fsck --quiet, bounded by a 30-second timeout. For large stores, raise it with the runtime-only BEADS_FSCK_TIMEOUT environment variable (accepts durations like 2m or bare seconds like 90). A timed-out check refuses the push as pre-push integrity check timed out, which does not mean the store is corrupt. A finding fsck reports refuses it as dangling chunk reference. In bd v1.4.0 and later, an fsck that fails without reporting a finding refuses it as pre-push integrity check failed, which does not mean the store is corrupt either; v1.3.4 and earlier refuse that case as dangling chunk reference too. To tell them apart, see Push refused by the pre-push integrity check.

Actor Identity Resolution

The actor name (used for created_by and audit trails) is resolved in this order:
  1. --actor flag (explicit override)
  2. BEADS_ACTOR environment variable
  3. BD_ACTOR environment variable (deprecated alias)
  4. git config user.name
  5. $USER environment variable
  6. "unknown" (final fallback)
For most developers no configuration is needed — issue authorship matches commit authorship automatically. To override, set BEADS_ACTOR in your shell profile:

Project-Level Settings (Database)

These are written to the Dolt database by bd config set and have no env var override, with one exception: versioned-history.enabled also honors BD_VERSIONED_HISTORY_ENABLED (see Versioned Issue History). Common namespaces: Issue prefix (issue_prefix) is not settable via bd config set — use bd init --prefix, bd bootstrap, or bd rename-prefix. To change only the prefix new issues get, run bd rename-prefix <new-prefix> --mint-only: existing IDs stay, and the old prefix is added to allowed_prefixes so they remain valid. A dependency between an old-prefix and a new-prefix issue does not block, though (see Prefix Rename).

Custom Statuses and Types

Custom statuses supplement the built-ins (open, in_progress, blocked, deferred, closed). Each entry is name or name:category:
The category controls how the status behaves: Custom types extend the built-in issue types:
Use bd statuses and bd types to list everything configured.

Sequential Counter IDs

By default, beads generates hash-based IDs (e.g. bd-a3f2). For projects that prefer short sequential IDs (bd-1, bd-2, …), enable counter mode:
Counter mode behavior:
  • Each prefix (bd, plug, …) has its own independent counter, so multi-repo or routed setups don’t interleave.
  • The counter is stored atomically in the database; concurrent creates within a single Dolt session are safe.
  • On first use (including switching an existing repository to counter mode), the counter seeds itself from the highest existing numeric ID for that prefix, so new IDs don’t collide with old ones.
  • An explicit --id flag on bd create bypasses ID generation entirely; the counter is not incremented. Imports and wisps don’t move the counter either.
  • When the counter’s next number is already held, by an explicit --id, an imported issue, a wisp or a deleted ID that is still reserved, counter mode skips to the next free number. It never overwrites that issue or refuses the create. This holds however far the counter lags, for example after a large import: the next ID is the lowest free number above the counter, and a far-ahead ID such as bd-5000 doesn’t make it jump.
  • Counter mode applies only to regular issues, not wisps.
Tradeoff — hash vs. counter:

Adaptive Hash IDs

Hash IDs size themselves to the database: lengths start at min_hash_length and grow toward max_hash_length to keep the collision probability under max_collision_prob.

Claim Pools

A dispatcher can pre-assign issues to a pool alias, a placeholder assignee such as fable-crew, and let any actor take them with bd update <id> --claim. List the aliases in claim.pools:
Claiming reads this key from the database only. A claim.pools value in config.yaml or in an environment variable has no effect, even though bd config show lists a config.yaml value with the source (config.yaml). A value that claiming uses shows the source (database).
  • Exact match. The value is split on commas and each entry is trimmed of surrounding whitespace. An issue counts as pool-assigned only when its assignee equals one of the entries exactly, including case: Crew-A is not the pool crew-a.
  • Claiming. Taking a pool-assigned issue works like taking an unassigned one: the claimer becomes the assignee, the status moves to in_progress, and the claim gets the normal lease.
  • Anti-steal. Issues assigned to a real actor, or to an alias that is not listed, keep their protection: --claim refuses them.
  • Reassigning. bd assign and bd update <id> --assignee can move an in_progress issue that a pool alias holds without --force.
  • bd ready --claim takes only unassigned issues, so it skips pool-assigned ones even though bd ready lists them. Claim those by ID.
  • Lease expiry. If the claimer’s lease expires, bd reclaim sets the issue back to open with no assignee. It does not return the issue to the pool alias, so a dispatcher that wants it back in the pool has to reassign it.

Versioned Issue History

While versioned-history.enabled is on, every accepted change to an issue that participates in history (one created while it is on, or that enters the issues plane while it is on: a wisp promoted or made persistent) stores a snapshot of it as a row of issue_versions, in the same transaction, and bd versions <id> lists them. It is off by default, and it does not backfill: an issue already on the issues plane when it was turned on is legacy, and editing it records nothing (the write fence, design §16.2b). Making an issue a wisp and then persistent again while it is on (bd update --ephemeral, then bd update --persistent or bd promote) does not change that: a legacy issue stays legacy, and one that participates keeps its history. The issue carries its participation only while recording is on, so one made a wisp while recording was off comes back as any wisp does.
  • The switch belongs to the store. It is a row of the database config table, so bd config set writes it there and not to config.yaml. Every store answers for itself: a write routed into another workspace (a prefix-routed bd update or bd close, or bd create --repo) reads the target store’s row, never the row of the workspace you launched bd from.
  • It replicates. The config table travels with bd dolt push and bd dolt pull, so enabling it on one clone turns it on for every clone that pulls.
  • Single writer only. Keep one writer at a time per store, and never two disconnected clones recording. Two writers that each mint the same revision for an issue collide on merge, and the pull fails (VersionedHistoryConfigurer in internal/storage/storage.go, and #6379 item 4). Because the setting replicates, turning it on is a decision for the whole store, not for one clone.
  • Turning it on checks the store first. bd config set versioned-history.enabled true reads every issue the store would version and refuses, writing nothing, while any holds a value a version could not record: a number outside the I-JSON exact-integer range (magnitude above 2^53-1, whatever its spelling, fractions and exponent forms included), in its metadata or in a gate’s timeout. A timeout is held as nanoseconds, so a gate that waits longer than about 104.25 days (9007199254740991 ns) is refused. It prints how many issues, which ones (the first 20), what is wrong with each and which field it is in. With history on, a write that introduces such a value already fails at once and commits nothing, and so does a later write to a row that already holds one if that row participates in history (it was created, or entered the issues plane, while history was on). A legacy row, created while history was off or by a writer that does not record, is skipped by the write fence and stays writable whatever it holds, so the check does not refuse over it, unless it is a template. bd mol pour and bd mol bond copy a proto’s metadata and gate timeouts into every issue they create, and with history on each of those is versioned, so every persistent pour or bond of a proto that holds such a value would fail. A template (bd cook --persist writes every issue of a proto it cooks as one) cannot be changed with bd update, the in-place fix you would reach for, and the pour’s refusal names no fix, so the check refuses over every template that holds one, legacy or not, marks it (template), and names the fixes that work; an issue listed because it participates carries no mark. Any other legacy issue of a proto does not stop the switch: bd update (for a gate’s timeout, bd delete) fixes it in place, with history on or off, because the write fence skips a legacy row. The check prints a warning instead, naming the issue and the root of its proto ((proto <root>)), whether or not it turns history on. An issue is part of a proto when it is a template or is labeled template (a proto’s root), or is under such an issue through the parent it names, a parent-child dependency or a dotted id (as in bd mol pour, a dotted id with a parent-child dependency on another issue is not under its id’s parent). bd mol pour copies the issues under a root labeled template and refuses a root without the label, while bd mol bond treats any template as a proto, labeled or not, and copies the issues under it (in proxied-server mode, a bond copies a template without the label alone). The warning concerns a pour of the proto, and a bond of it only when its root is a template. The label does not tell a proto from a molecule poured from a stored proto, whose root carries the proto’s labels, so a legacy molecule poured before history was turned on, whose gate waits past the limit, is named in the warning too. If you never pour it, nothing needs fixing; bd label remove <root> template stops it counting as a proto (for an epic root, closing its last step then no longer closes the root). A store that has never recorded, where every row is legacy, passes unless one of its templates holds such a value. (A storage backend that cannot report which rows participate refuses over every legacy row that holds such a value, and the refusal says so.) The fix depends on the issue and the field. A template is read-only, so bd update refuses it: fix the value in the formula the proto was cooked from and run bd cook <formula> --persist --force, which replaces the proto (bd cook does not run in proxied-server mode), or remove the template with bd delete <id> --force. A template loaded from a molecules.jsonl catalog (in .beads/, ~/.beads/ or $GT_ROOT/.beads/) is added back by the next command once it is deleted, so fix it in that file first, then delete it. For a number in the metadata of any other issue, one command per issue, and it works with history on or off: bd update <id> --metadata '{"<key>": "<value as a string>"}' to replace the value, or bd update <id> --unset-metadata <key> to remove the key. bd update cannot change a gate’s timeout, so while history is off, remove the gate with bd delete <id> --force (without --force, bd delete only previews, and removing the gate also unblocks anything it was blocking), or set the timeout_ns column of the issues table within the limit with bd sql, which needs a server-backed store and does not run on an embedded one. Then run the command again. There is no override: the check has no flag, and bd config set versioned-history.enabled false never runs it.
  • What that check does not cover. It runs once, at the moment you turn the setting on. A writer that does not record versions (an older bd, bd sql, a pull from a clone that had history off) can add such a row at any time afterwards, including right after the switch is on, and, if that row participates in history, the first write to it then fails with the same refusal, as does the next pour or bond of a proto it is part of, whatever it is; the same fix applies. Checking and writing the setting in one transaction would narrow that window, not close it. A formula file is not in the store, so the check cannot read one: with history on, bd mol pour, bd mol bond or bd cook --persist straight from a formula that holds such a value is refused when it is made, naming the step and the field. Nor does it check an issue on the wisps plane, where a proto created with --ephemeral or --no-history lives: a persistent pour of such a proto is refused the same way. Turning recording on through BD_VERSIONED_HISTORY_ENABLED or config.yaml does not go through the command at all, and nothing is checked when a store is opened either (those planes are read by every bd process on every open), so nothing is checked ahead of time there: a write to such a row is refused when it happens, in its own transaction, naming the issue, the field and the value, and the same fix applies (for a gate’s timeout, with recording off). Duplicate keys in metadata are refused too, but Dolt’s JSON column collapses them when it stores a document, so on a Dolt store neither the check nor a write can see one; that refusal is a defense for another backend that keeps them.
  • The environment can turn it on, never off. BD_VERSIONED_HISTORY_ENABLED=1, or a hand-written enabled: true under versioned-history: in config.yaml, applies to every store the process opens, routed targets included. The environment and the row are OR’d, not ranked, so BD_VERSIONED_HISTORY_ENABLED=0 does not turn off a store whose row says true. Turn it off where it was turned on: bd config set versioned-history.enabled false.
  • Server-backed modes read the same row. Proxied-server mode, and bd serve against a server-mode workspace, write through a unit-of-work provider rather than a store. The provider reads the row from its own database inside its first unit of work, so bd config set versioned-history.enabled true covers those modes too. It does not fall back to the environment alone.
  • The Go SDK is covered only on a proxied-server workspace. OpenBestAvailable and OpenBestAvailableWith open a proxied-server workspace through its bd proxy, as bd does, and apply this switch and the events journal’s. Every other Go SDK open (the beads package: Open, OpenFromConfig, OpenGated, OpenBestAvailable on an embedded or server-mode workspace, and OpenBestAvailable on a proxied-server workspace whose environment forces server mode and names the port in BEADS_DOLT_SERVER_PORT, which dials that port directly) does not apply the switch: a write it makes to a store whose row says true records no version. The bd binary’s store factories apply it, and the events journal’s switch has the same boundary.
  • The value is read by a store’s first write transaction, or, for a proxied-server provider, by its first unit of work, read or write. A store that only reads never reads it, so a command that never writes pays nothing for the setting; bd ready does write, because it first wakes issues whose defer time has passed. If that read fails, the transaction that made it fails with it and changes nothing, and the next one reads the setting again. A long-lived process such as bd serve keeps the value it read until it is restarted, so after changing the setting, restart it.

Sync and Federation

Beads syncs exclusively through Dolt remotes (bd dolt push / bd dolt pull) with cell-level merge. Use bd export for issue portability and bd backup for restorable database backups. Federation settings live in config.yaml:
  • federation.remote: Dolt remote URL (dolthub://org/beads, gs://bucket/beads, s3://bucket/beads, az://account.blob.core.windows.net/container/beads, file://...)
  • federation.sovereignty: data sovereignty tier:
    • T1: Full sovereignty — data never leaves controlled infrastructure
    • T2: Regional sovereignty — data stays within region/jurisdiction
    • T3: Provider sovereignty — data with trusted cloud provider
    • T4: No restrictions — data can be anywhere
bd config validate checks the remote URL format, the sovereignty tier, federation.allowed-remote-patterns, and routing.mode.

Integration Configuration

Tracker settings are project-level config under the tracker’s namespace; secrets (jira.api_token, linear.api_key, github.token, gitlab.token, ado.pat, notion.token) are YAML-routed and better supplied as environment variables. Every tracker records <tracker>.last_sync automatically after a sync, enabling incremental syncs.

Jira

jira.custom_fields.<field> applies to every issue pushed to Jira. jira.custom_fields.<JiraType>.<field> applies only when the mapped Jira issue type matches <JiraType>; per-type fields override global fields with the same field key. Values beginning with { or [ are sent as JSON (useful for select-like fields); other values are sent as strings. jira.url, jira.project/jira.projects, and jira.api_token fall back to the JIRA_URL, JIRA_PROJECT/JIRA_PROJECTS, and JIRA_API_TOKEN environment variables. See bd jira.

Linear

When linear.team_ids is set, bd linear sync fetches issues from all listed teams; push with multiple teams configured requires an explicit --team. The singular linear.team_id remains supported. Mapping namespaces — linear.priority_map.* (Linear 0–4 → beads 0–4), linear.state_map.* (Linear state types and custom state names → beads statuses, e.g. bd config set linear.state_map.in_review in_progress), linear.label_type_map.* (Linear labels → bd issue types), and linear.relation_map.* (Linear relations → bd dependencies; imported only when pulling with --relations) — are documented with defaults in bd linear. Staleness detection: after each successful pull, bd writes a timestamp to .beads/last_pull (a local-only, per-machine file covered by the .beads/.gitignore template). bd linear sync --pull-if-stale pulls only when data is older than the threshold (--threshold, default 20m), and a 5-minute debounce prevents agent loops. bd prime and other core commands never contact Linear — run bd linear sync --pull-if-stale from a session-start hook to keep data fresh in agent sessions.

GitHub

See bd github.

Azure DevOps

Connection keys (ado.pat, ado.org, ado.project, ado.projects, ado.url) each have an AZURE_DEVOPS_* environment variable equivalent; config keys take priority over env vars. When ado.projects is set, bd ado sync fetches work items from all listed projects in a single query. State maps default to the Agile process template (override with ado.state_map.* / ado.type_map.* for Scrum or CMMI), and priority mapping (ADO 1–4 ↔ beads 0–4, with backlog collapsing to low) is automatic and not configurable. Full setup, mapping tables, and sync commands: Azure DevOps integration and bd ado.

Environment Variables

The Viper env prefix is BD_. Config keys map to env vars by upper-casing and replacing . and - with _ (e.g. dolt.auto-commit → BD_DOLT_AUTO_COMMIT, validation.on-create → BD_VALIDATION_ON_CREATE). Selected commonly-used variables: Integration secrets follow tracker-specific conventions: LINEAR_API_KEY, GITHUB_TOKEN, GITLAB_TOKEN, JIRA_API_TOKEN, AZURE_DEVOPS_PAT, ANTHROPIC_API_KEY. These are preferred over storing the value in config.yaml for git-tracked projects. bd config show will display the source of every effective key, making overrides explicit.

Migration Freeze

Maintenance that runs outside bd — moving a database to a new host, rewriting schema by hand — needs a way to stop writes for its duration without uninstalling the tool. Create a file named MIGRATION-FREEZE and every write command refuses to run until you delete it. bd looks for the marker in the workspace directory and in the working directory, plus every ancestor of each, so one file above a tree of repositories freezes all of them at once — and targeting a frozen workspace from elsewhere (BEADS_DIR=…, bd -C …) is refused the same way. Markers found in a world-writable sticky directory such as /tmp are ignored: anyone on a shared machine could plant one there, and the sticky bit would stop you removing it. Put the marker at the root of the tree you are freezing. A freeze marker must be a regular file. A directory or a symlink named MIGRATION-FREEZE that the ancestor walk finds is ignored — the symlink with a one-line warning on stderr, so a stray link never disarms the gate in silence. To drive the freeze through an indirection on purpose, name that link with BD_MIGRATION_FREEZE_FILE (below), which bd follows.
Blocked commands exit 14 — a stable code scripts branch on to tell “someone is migrating this workspace, come back later” from a generic failure worth an immediate retry. That includes the destructive ones: bd init --reinit-local and bd bootstrap are refused too. Reads (bd list, bd show, bd ready, …) keep working during a freeze, and bd’s own background maintenance stands down with them — version-bump migration, JSONL auto-import, Dolt auto-commit, auto-backup, auto-export and auto-push are all skipped, so running a read does not leave a commit in the store you are migrating. In embedded mode (the default) and proxied-server mode, bd ready and bd list --ready are an exception: they still wake deferred issues whose defer date has passed and commit that change to the frozen store (#7634), so do not run either command in those modes until you thaw. In bd v1.4.0 and later, bd ready and bd list --ready in server mode also wake deferred issues whose defer date has passed. During a freeze they skip that write: those issues stay deferred and are left out of the list until the first such read after you thaw.
A bd serve process started before the marker appeared keeps accepting HTTP writes: the freeze is a CLI-invocation gate, and a running server never re-reads it. Stop the server before you freeze.
If bd cannot tell whether a marker is present — a permission error on the marker or on a directory above it — it refuses the write and says so, rather than assuming the workspace is open. BD_MIGRATION_FREEZE_FILE names one explicit path to consult instead of walking ancestors, for markers that live outside the tree. It is authoritative: when it is set, nothing else is checked. Because you name that path deliberately, it may be a symlink — bd follows it and freezes when the link resolves to a regular marker file — so an indirection such as current -> releases/42/MIGRATION-FREEZE works as the authoritative signal.

Security: Where Secrets Live

  • Tokens and API keys are never stored in the Dolt database — database config is pushed to remotes, which would expose secrets and trip GitHub secret scanning. bd config set routes secret keys to the local config.yaml instead.
  • Writing a secret to a git-tracked config.yaml is refused unless you pass --force-git-tracked; environment variables are the safer default.
  • bd init writes a .beads/.gitignore that keeps the database directories (embeddeddolt/, dolt/), runtime files, push state, and the federation credential key out of git.

Example .beads/config.yaml

For machine-specific overrides that should not be committed, drop them in .beads/config.local.yaml; it is merged in last.

Per-Command Override

Use in Scripts

Configuration is designed for scripting; every bd config subcommand takes --json:

Viewing Active Configuration