Skip to main content
MotherDuck uses DuckDB’s built-in md: connection support. No extra installation needed beyond the core DuckDB dependency.

Connection config

Authentication

MotherDuck requires an access token. Generate one from the MotherDuck UI and pass it via the connection config or an environment variable:

Per-target connections

Use targets to separate production and development databases on MotherDuck:

Local development with DuckDB

Use sqlbuild_local.toml to override the adapter for local development against a plain DuckDB file:
This lets you develop and test locally with zero MotherDuck compute cost, then deploy to MotherDuck in production. SQLBuild’s scenario replay also runs locally in DuckDB regardless of the production adapter.