MotherDuck uses DuckDB’s built-inDocumentation Index
Fetch the complete documentation index at: https://docs.sqlbuild.com/llms.txt
Use this file to discover all available pages before exploring further.
md: connection support. No extra installation needed beyond the core DuckDB dependency.
Connection config
| Field | Description |
|---|---|
database | MotherDuck database name. Automatically prefixed with md: if not already present. Defaults to md: (your default MotherDuck database). |
token | MotherDuck access token. Can also be set via environment variable. |
Authentication
MotherDuck requires an access token. Generate one from the MotherDuck UI and pass it via the connection config or an environment variable:Per-environment connections
Use environments to separate production and development databases on MotherDuck:Local development with DuckDB
Usesqlbuild_local.toml to override the adapter for local development against a plain DuckDB file:

