Skip to main content

Required settings

  • MotherDuck access token (Read/Write)
  • Database name

Best practices

Create a dedicated MotherDuck account for pipeline writes (either a service account or a regular account like [email protected]).Key Points:
  • Data written by this account will only be accessible to that account owner
  • To share data with your team, create Organization-level shares in MotherDuck
  • Service accounts are recommended for application/scripting use cases
  • Only Admin users can impersonate service accounts to manage shares

Setup guide

Choose one of the following options to create an access token:
MotherDuck documentation
  1. Navigate to Settings → Access Tokens in MotherDuck
  2. Click “Create token”
  3. Fill in the token details
  4. Important: Select “Read/Write Token” as the token type (required for the pipeline to write data)
  5. Click “Create token” MotherDuck create user access token
Copy the token immediately - it’s only shown once!
MotherDuck documentation
  1. Navigate to Organization Settings → Service Accounts in MotherDuck
  2. Click “Create Service Account”
  3. After creating the service account, open it and generate an access token
  4. Important: Select “Read/Write Token” as the token type (required for the pipeline to write data) MotherDuck create service account access token
Copy the token immediately - it’s only shown once!
Once your pipeline is running, log into MotherDuck with the account you used to create the access token. You should see the database created by your pipeline in the databases list.
If using a service account (Option B), you’ll need to impersonate the service account to see the database (Admin only).
Important: Without this step, team members won’t be able to access the data!
  1. Click the trident menu (⋮) next to your pipeline database and select “Share”
  2. Configure the share with:
    • Access: Anyone in my organization
    • Discoverable: Enabled
    • Auto-updating: Enabled
If using a service account (Option B), make sure you’re still impersonating the service account when creating the share.
MotherDuck share database
Team members can now find the shared database in their MotherDuck workspace under “Shared with me”. They simply need to click “Attach” to access the data.MotherDuck attach database