dazense init
The dazense init command sets up your context repository with all necessary files and structure.
Run dazense init
The command will guide you through an interactive setup:
1. Project Name
2. Database Connection (Optional)
If you select yes, you’ll be prompted for connection details specific to your database type.
3. Repository Context (Optional)
4. LLM API Key (Optional)
5. Slack Integration (Optional)
You can skip any optional step and configure it later by editing dazense_config.yaml.
What Gets Created
After running dazense init, you’ll have a folder with the architecture of your context:
dazense sync
Once initialized, populate your context with actual content:
This will:
- Connect to configured databases and pull schemas
- Clone configured repositories
- Generate structured context files
- Index content for your agent
dazense debug
Verify your configuration:
This checks:
- Configuration file syntax
- Database connectivity
- LLM API access
- Environment variables
- File permissions
dazense_config.yaml
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
Environment Variables
Never commit sensitive credentials to Git! Always use environment variables for secrets.
Store sensitive values in environment variables:
Reference them in your config:
Warehouse Credentials
For Warehouse credentials, you can use either method:
Method 1: credentials_path (local development)
Method 2: credentials_json (cloud deployments)
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.
Trusted Analytics toggle points
When enabling Trusted Analytics V1/V2, configure:
datasets/<bundle_id>/dataset.yaml
policies/policy.yml
semantics/semantic_model.yml
semantics/business_rules.yml
For strict runtime gating:
Next Steps
- Context Synchronization - Learn how to sync and update your agent’s context
- Context Principles - Learn how to optimize your context for reliability, speed, and cost