MotherDuck
Connect to MotherDuck, a DuckDB cloud data warehouse.
Prerequisites
Generate a MotherDuck API key
- Open the MotherDuck UI
- Click on your organization's name in the top left
- Navigate to Settings > Access Tokens
- Click + Create Token
- Give your token a descriptive name like
ascend_default_data_plane - Ensure the token type is set to
Read/Write Token - (Optional) Set an expiration date for your token if desired
- Click Create token
- Copy your token immediately to use in the next step
Store your MotherDuck API key
Store your MotherDuck API key as an Environment Vault secret to securely configure your MotherDuck Data Plane:
- In your Ascend Instance, click on your profile picture in the top-right corner and select Settings
- Navigate to the Secrets & Vaults section
- Select the Default Environment Vault if you're using a trial Instance or another Environment if desired
- Click Add secret
- Name your secret
MOTHERDUCK_API_KEYand paste the API key in the Value field - Click Create to store your secret
Create a DuckDB Connection
From your Workspace Super Graph view, follow these steps:
- Form
- Files panel
- Create a Connection by either:
- Clicking the + button next to Connections in the left Build panel
- Right-clicking in the Super Graph and selecting Create Connection


- Select DuckDB from the available options
- Enter a descriptive name like
data_plane_motherduck - Fill in the required fields (and any optional fields as needed)
- Click Save at the bottom to create your Connection

- Open the Files panel in the top left
- Right-click the
connectionsdirectory and select New File

- Give your file a descriptive name like
data_plane_motherduck.yaml
For complete configuration options, see our Connection reference guide.
note
If you're using the UI form, make sure to manually add the MotherDuck API key to your Data Plane Connection configuration as shown below.
Example
Use the following YAML template for your MotherDuck Connection. Customize the highlighted values with your specific Connection details:
/my_project/connections/connection-motherduck.yaml
connection:
duckdb:
max_concurrent_queries: ${parameters.duckdb.max_concurrent_queries:-32}
motherduck:
api_key: ${vaults.environment.MOTHERDUCK_API_KEY}
🎉 Congratulations, you just set up a MotherDuck Connection in Ascend!