Skip to content

Configuration

Set the artifact root with --dbt-target or DBT_TOOLS_DBT_TARGET (local path, s3://bucket/prefix, or gs://bucket/prefix). On MCP, CLI flags override matching env vars when both are set.

Remote setup details (including GCS impersonation): Local and remote artifacts.

Environment variables

VariableCLIMCPWebPurpose
DBT_TOOLS_DBT_TARGETyesyesyesDefault artifact root (local, s3://, or gs://; web preloads at startup)
DBT_TOOLS_GCS_PROJECT_IDyesyesyesGCS client project (gs:// targets)
DBT_TOOLS_GCS_IMPERSONATE_SERVICE_ACCOUNTyesyesyesGCS read-only impersonation principal
DBT_TOOLS_S3_REGIONyesyesyesS3 region
DBT_TOOLS_S3_ENDPOINTyesyesyesS3-compatible endpoint URL
DBT_TOOLS_TARGET_DIRyesLocal artifact directory for web server
DBT_TOOLS_WEB_BASE_URLyesBase URL for web_url in CLI JSON (deep links)
DBT_TOOLS_DEBUGyesyesyesSet 1 for debug/progress logs on stderr
DBT_TOOLS_MAX_CACHED_TARGETSyesMCP LRU capacity for parsed artifact roots (default 3; 0 disables)
DBT_TOOLS_CACHE_TTL_MSyesMCP idle TTL to evict cached roots (default 0, disabled)
DBT_TOOLS_WATCHdevVite dev file watch (0 disables)
DBT_TOOLS_RELOAD_DEBOUNCE_MSdevVite dev reload debounce (ms)

Standard cloud auth (not dbt-tools-specific): AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_PROFILE, AWS_REGION, GOOGLE_APPLICATION_CREDENTIALS, and GCP application default credentials.

Deprecated aliases (DBT_TARGET_DIR, DBT_DEBUG, etc.) may still work; see package READMEs.

Remote client variables (S3 / GCS)

Use with s3:// or gs:// in DBT_TOOLS_DBT_TARGET / --dbt-target:

VariablePurpose
DBT_TOOLS_GCS_PROJECT_IDGCP project for GCS
DBT_TOOLS_GCS_IMPERSONATE_SERVICE_ACCOUNTImpersonated service account (read-only GCS)
DBT_TOOLS_S3_REGIONS3 region
DBT_TOOLS_S3_ENDPOINTCustom S3-compatible endpoint

MCP and web startup flags: --dbt-target, --gcs-project-id, --gcs-impersonate-service-account, --s3-region, --s3-endpoint, -V / --version (flags override env when both are set). MCP also supports --poll-interval-ms, --max-cached-targets, and --cache-ttl-ms (see MCP tools). See Web server CLI and packages/web/README.md.

You can also switch remote sources in the web Load artifacts panel after startup (see Local and remote artifacts).

Node.js

  • 20+ for published packages; monorepo development uses .node-version.

Further reading

Released under the repository license terms.