Requirements
To follow the steps in this guide, you’ll need:- Organization Admin permissions in Omni
- A MotherDuck database using MotherDuck v0.10.2 or higher
Setup
Create a MotherDuck access token
- Sign in to your MotherDuck account.
- In top left corner of the page, click the organization name and then Settings.
- Click Integrations > Access Tokens.
- Click + Create token.
- Enter a Name for the token to make it easy to recognize. For example:
Omni connection - For Token type, select Read/Write token.
- Optional. Define expiration settings for the token.
- Click Create token.
- Copy the token. Note: The token will only display once, so make sure you copy it before closing the dialog.
Set up a table upload schema
This step is optional. However, we recommend completing it as part of the initial set up or you won’t be able to use uploaded files like CSVs in joins.
Create the connection in Omni
- In Omni, click Settings > Connections.
- Click the Motherduck option.
-
On the connection setup page, fill in the connection details:
requiredA user-friendly name for the connection, which will be used throughout Omni.requiredThe database to connect to.requiredThe MotherDuck authentication token you created in step 1.requiredThe timezone used by the database.requiredThe timezone to use for Omni queries. If a timezone is specified, data will be converted from the Database Timezone to the selected timezone.When enabled, users can override the connection timezone with their own when querying.default:"enabled"When enabled, Omni will automatically infer relationships between tables based on column name matching during schema refreshes. Defaults to enabled.requiredSelect the minimum level of access users should have to models in the connection.
- When finished, click Create connection.
What’s next?
Now that your database is set up, you can:- Use the Omni Agent’s quickstart skill to create your first topic from business questions
- Configure user permissions, schema refreshes, environments and timezone settings
- Learn how Omni generates the model associated with the connection

