Skip to content
AgentOpen-source agent

dex

Agent-driven analytics engine that explores data and builds dbt and semantic layers

dex is an open-source agent for databases. It is available on CLI, Self-hosted and API.

Pricing
Open source
Platforms
CLI, Self-hosted, API
GitHub stars
162
Last commit
Language
Python
License
Apache-2.0

Similar agents

About dex

Dex is a Python engine that lets a coding agent work through a data warehouse or database without starting from scratch each session. It profiles tables, infers joins, flags personal data, and then writes dbt models, tests and semantic layer definitions as reviewable diffs in your repository rather than changing anything directly.

Each build is estimated with a dry run and confirmed before it spends, with a per-connector cost cap and a local ledger of settled spend. Source data is only read with aggregate SQL, so raw rows and flagged personal data stay out of the model's context, and credentials are discovered from the environment you already use.

Dex suits data engineers and analytics teams who already run dbt or a semantic layer and want an agent to maintain them as schemas drift. It is free and open source under Apache 2.0, and a team edition for scheduled drift checks in CI is in development.

What it does

Schema exploration
Profiles columns, infers relationships and verifies joins across connected tables before any SQL is written.
dbt model authoring
Writes dependency-aware dbt models and schema tests as reviewable plans, then builds them on a dev target.
Semantic layer support
Reads and authors definitions for Apache Ossie, SLayer, Cube, Snowflake Semantic Views and Databricks Metric Views.
Drift detection
Compares schemas, volumes, grain and metric definitions against a saved snapshot and proposes fixes.
Cost guards
Estimates each scan before it runs and caps spend per connector, using the billing unit of that platform.
Personal data flagging
Marks likely personal data columns and keeps their values out of the agent's context.
Telemetry and incidents
Records dbt run results via Elementary and opens incidents when a pipeline fails or delivers wrong data.

Good for

  • Explore an unfamiliar warehouse and map its tables and joins before writing analysis SQL
  • Add a governed metric to an existing dbt project as a reviewable diff
  • Detect when an upstream schema change breaks models or metric definitions
  • Keep dbt and semantic layer definitions consistent after source tables change
  • Run a demo analytics project locally on DuckDB without credentials

Pricing

Open source

Free and open source under Apache 2.0; Dex Enterprise priced by conversation.

Prices change. Check trydex.ai before you buy.

dex FAQ

Is Dex free?

Yes. Dex is free and open source under Apache 2.0, including the full explore, transform and maintain loop with manual drift detection.

Which data systems does Dex connect to?

BigQuery, Snowflake, Databricks, Redshift, ClickHouse, PostgreSQL, Trino and DuckDB. Each connector has its own cost guard in its billing unit.

Does Dex need a dbt project?

No. It can work with Apache Ossie, SLayer, Cube, Snowflake Semantic Views or Databricks Metric Views without a dbt project.

Does Dex send data to Exmergo?

No. Dex sends nothing to Exmergo, and its telemetry monitors your own pipelines within your warehouse and repository.

How do I install Dex in Claude Code?

Run /plugin marketplace add exmergo/exmergo-agent-plugins, then /plugin install dex@exmergo. Other agents can use npx skills add exmergo/dex.

What are the best alternatives to dex?

The closest alternatives to dex are DB-GPT, Web, Flow AI, Codeium and DeepAnalyze.

Where this comes from

  • Description: written from the project's README and the project's website.