Skip to content

MotherDuck connections #2489

Done
Done

Description

@datlechin

Problem

The DuckDB plugin opens a local file or a remote DuckDB server over Quack (databases/duckdb.mdx), but a MotherDuck database cannot be reached at all.

The extension path is no longer the blocker it was. The macOS DuckDB build links core_functions, json, parquet, icu and autocomplete statically and keeps runtime autoloading on (apple/scripts/duckdb-macos-extensions.cmake), and the Remote (Quack) connection already opens an in-memory DuckDB, turns on autoinstall and autoload, runs INSTALL quack and LOAD quack, stores a token as a secret and attaches the remote (apple/Plugins/DuckDBDriverPlugin/DuckDBPlugin.swift:328). The motherduck extension can arrive the same way, from extensions.duckdb.org on first use.

Proposed solution

  • A MotherDuck connection type on the DuckDB form, next to Local File and Remote (Quack), taking a database name (or none for all of them) and a service token in a secure field kept in the Keychain.
  • Connect the way Quack does: an in-memory DuckDB, autoloading on, INSTALL motherduck and LOAD motherduck, the token passed as motherduck_token or a secret, then ATTACH 'md:…'.
  • Hosted databases, schemas and tables in the sidebar, which the Quack path does not list today.
  • Attach a local file alongside a MotherDuck database in one connection, where DuckDB allows it.
  • A clear error for the two likely failures: no route to extensions.duckdb.org on the first connect, and an extension build that does not match the bundled DuckDB version (apple/scripts/build-duckdb.sh:22).

Done means a MotherDuck connection with only a token lists the account's databases and runs a query.

Alternatives considered

The MotherDuck web UI.

Platform

macOS

Related database type

DuckDB

Activity

  1. added
    enhancement
    on Aug 26, 2026
  2. added
    platform-macos
    on Oct 19, 2026
  3. jprando commented on Nov 23, 2026

    @jprando

    in
    linux cachyos kernel 7.3.5-2-cachyos
    tablepro version 0.1.0-beta.5 (flatpack)

    SELECT version()
    --- [{"\"version\"()":"v2.0.0"}]
    
    INSTALL md;
    -- OK
    
    LOAD md;
    Statement Failed
    Query failed (DuckDB Invalid Input error): Initialization function "motherduck_duckdb_cpp_init"
    from file "/home/jeudi/.duckdb/extensions/v2.0.0/linux_amd64/motherduck.duckdb_extension”
    threw an exception: "
    Your DuckDB version (v2.0.0) is not yet supported by MotherDuck. The latest supported version
    is v1.5.6. Please downgrade to use MotherDuck.
    See https://motherduck.com/docs/getting-started/connect-query-from-duckdb-cli for more
    information.”
    

    😢

    sugestion
    update duckdb to version 2.0.1

    DuckDB v2.0.1 (Cyanoptera)
    Enter ".help" for usage hints.
    memory D LOAD md;
    Run Time (s): real 0.606 user 0.295114 sys 0.035367
    changes:   0   total_changes: 0
    memory D

    I dont know, if this is correct local to report it 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementplatform-macos

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions