Skip to main content
Integrations · dbt
A Guild agent can set up and maintain dbt platform accounts: create projects and environments, wire up connections and repositories, and manage users, groups, and tokens. Guild stores your dbt token server-side and injects it at request time, so agent code never sees the secret. Credential policies let you restrict which operations each agent may call, and every request is logged for audit.

Book a demo

See how teams govern agents that use dbt.

Talk to sales

Get access to Guild, then connect dbt to your first agent.

What the dbt integration exposes

The integration package guildai~dbt wraps the dbt platform Admin API (v3). Its tools cover accounts, projects, environments and environment variables, connections and credentials, repositories, users, groups and permissions, service tokens, personal access tokens, webhooks, IP restrictions, SCIM, and audit logs. Tools follow the dbt_ naming prefix. The integration manages account configuration. It doesn’t trigger jobs or read run results, because those endpoints are in the v2 API, which this integration doesn’t include.

How it works

1

Create a dbt token

In dbt, open Account settings and create a service token with the permissions your agents need. A personal access token also works, and acts as you.
2

Connect the credential in Guild

In Guild, go to Access & setup > Credentials, click Connect, select dbt, and paste the token into API Key.
3

Add DbtTools to your agent

Import DbtTools from @guildai-services/guildai~dbt and spread it into your agent’s tools object. Most tools take your dbt account ID, which dbt_list_accounts returns.

Why dbt access needs governing

A dbt token with admin permissions can delete projects and environments, rotate or destroy service tokens, change warehouse credentials, and change group permissions across the account. Guild stores the token server-side and injects it through its credential proxy, so the token never appears in agent code or logs. Credential policies let you write ALLOW and DENY rules that the proxy enforces before any request leaves Guild. You can restrict an agent to read-only calls with a GET-only methods rule, or block destructive tools such as dbt_destroy_project and dbt_destroy_service_token by name or pattern. Credentials can be scoped to an account, a single workspace, a specific member, or one agent. The permission set on the dbt token is a second limit: a token with read-only permissions can’t make changes whatever the policy allows.

About the dbt integration

Agents can list and configure dbt projects, environments, connections, and repositories, and manage the users, groups, and tokens that reach them. They can also manage webhook subscriptions, IP restrictions, and SCIM, and export audit logs. The integration is guildai~dbt. The integration calls cloud.getdbt.com. Accounts that use a different access URL, such as a regional or single-tenant host, aren’t supported yet.

Authentication

  • Type: API key
  • Header: Guild sends the token as a bearer token in the Authorization header

Setup

1

Get a token

Create a service token (Account settings > Service tokens) or a personal access token in dbt.
2

Connect dbt

In Guild, go to Access & setup > Credentials, click Connect, select dbt, and paste the token into API Key.
See Credentials for workspace, member, and agent-scoped credentials.

Usage

Selecting specific tools

Tools are named with the dbt_ prefix. Use pick() to include only what your agent needs.

Tools

Tools in the latest published version of guildai~dbt:

Frequently asked questions

No. Jobs and runs are in the dbt Admin API v2, which this integration doesn’t include. It manages account configuration: projects, environments, connections, users, groups, tokens, and webhooks.
Use a service token for agents. It isn’t tied to a person, and its permission set limits what the agent can do. A personal access token acts with your own permissions.
Most tools take the dbt account ID as a parameter. The agent can call dbt_list_accounts to find it, or you can put it in the agent’s system prompt.
Not yet. The integration calls cloud.getdbt.com, so it reaches accounts on that host only.
No. Guild stores the token server-side and injects it through its credential proxy. Agent code never sees the secret, and the proxy enforces any credential policies before the request reaches dbt.

Put a governed agent on dbt this week

Book a demo

See how teams govern agents that use dbt.

Talk to sales

Get access to Guild, then connect dbt to your first agent.
Also runs on Guild: BigQuery · Hex · CockroachDB · Neon Read: Docs: Credential policies · Credentials · Tools in agents
Last modified on November 25, 2026