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 packageguildai~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 asdbt_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 isguildai~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
Authorizationheader
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.
Usage
Selecting specific tools
Tools are named with thedbt_ prefix. Use pick() to include only what your agent needs.
Tools
Tools in the latest published version ofguildai~dbt:
All 141 tools
All 141 tools
Frequently asked questions
Can an agent trigger a dbt job or read run results?
Can an agent trigger a dbt job or read run results?
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.
Should I use a service token or a personal access token?
Should I use a service token or a personal access token?
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.
Where does an agent get the account ID?
Where does an agent get the account ID?
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.Does it work with dbt accounts on a regional or single-tenant host?
Does it work with dbt accounts on a regional or single-tenant host?
Not yet. The integration calls
cloud.getdbt.com, so it reaches accounts on that host only.Does Guild expose the dbt token to the agent?
Does Guild expose the dbt token to the agent?
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.