Quickstart
Make sure you have the following set up:
- Python 3.11 or later
- uv installed
- Claude Code installed and configured
- A Google account
- A directory containing your dbt project
Run Databao CLI
-
In the terminal, navigate to the root of your dbt project.
-
Run Databao
Terminal uvx databaoThis command runs the latest version of Databao CLI without installing it. To install Databao on your PATH, run
uv tool install databaoinstead.
Sign in
-
In the browser tab that opens, click Sign in with Google and follow the prompts.
-
When prompted, return to the terminal.
Generate semantic layer
-
In the terminal, select Start Databao in Claude Code:
Terminal ? What would you like to do? (Use arrow keys) » Start Databao in Claude Code Advanced settings Quit -
When asked by Claude, agree to use the skill and follow the prompts to generate the semantic layer.
Claude may also ask you if you want to proceed with running certain commands.
Generating the semantic layer may take some time depending on the complexity of your project.
Review and commit the semantic layer
-
When the semantic layer is generated, Claude provides a summary of the work done:
Output example ⏺ Here's the cycle summary: Cycle summary ───────────── Intent: "bootstrap semantic layer with 5 metrics" Files added: 7 models/semantic/time_spine_daily.sql models/semantic/time_spine_daily.yml models/semantic/sem_orders.yml models/semantic/sem_customers.yml models/semantic/fct_payments.sql models/semantic/sem_payments.yml Files modified: 1 .databao/test_questions.csv Test set: 5 questions covered (was 0) Validation: dbt parse ✓, mf validate-configs ✓ Questions added: 1. What is the total revenue generated per day over time? ... -
When prompted, commit the generated semantic layer.