The dazense init command sets up your context repository with all necessary files and structure.Run dazense init
dazense init
The command will guide you through an interactive setup:1. Project Name
What is the name of your project?> my-analytics-agent
2. Database Connection (Optional)
Do you want to connect a database? [y/N]> ySelect your database type: 1. Snowflake 2. BigQuery 3. Databricks 4. PostgreSQL 5. Redshift 6. MySQL
If you select yes, you’ll be prompted for connection details specific to your database type.3. Repository Context (Optional)
Do you want to add a repository to your agent context? [y/N]> yRepository URL:> https://github.com/your-org/dbt-projectPath within repo (optional):> models/
4. LLM API Key (Optional)
Do you want to add an LLM key? [y/N]> ySelect your LLM provider: 1. OpenAI 2. Anthropic 3. Azure OpenAI 4. Other
5. Slack Integration (Optional)
Do you want to setup a Slack connection? [y/N]> y
You can skip any optional step and configure it later by editing dazense_config.yaml.What Gets CreatedAfter running dazense init, you’ll have a folder with the architecture of your context:
my-analytics-agent/├── dazense_config.yaml # Main configuration file├── RULES.md # Agent behavior rules├── agent/ # Agent tools and integrations│ ├── mcps/ # Model Context Protocols│ └── tools/ # Custom tools├── databases/ # Database schemas (populated after sync)├── docs/ # Documentation files├── semantics/ # semantic_model.yml and business_rules.yml├── datasets/ # Dataset bundles for trusted modes├── policies/ # Enforcement policy for trusted modes├── contracts/ # Runtime contract logs (generated)└── queries/ # Example queries
The dazense_config.yaml file is the central configuration for your analytics agent.
You can always edit it and re-launch a sync with this configuration.Basic Structure
Use credentials_json for cloud deployments (Cloud Run, GitHub Actions, etc.) where you store the full JSON content in an environment variable or secret manager. Use credentials_path for local development with credential files.When using credentials_json, the environment variable must contain the entire JSON content of your service account key file, not just the path.