SLayer
SLayer by Motley, a semantic layer kept as YAML model files. Dex reads your SLayer models natively, authors them as reviewable diffs, and runs the SQL SLayer renders under its own cost guard, with no dbt project needed.
Why connect SLayer?
SLayer by Motley keeps a semantic layer as YAML model files in your repository. Dex treats it as a first-class semantic layer: it reads your models without opening a SLayer datasource, authors them as reviewable diffs, runs the SQL SLayer renders under its own cost guard, and tells you when the models fall out of sync with the warehouse.
- 1Point Dex at your SLayer models with no dbt project and no MetricFlow anywhere in the path
- 2Validate every model file with SLayer's own model class from one pinned release, plus checks for paths, duplicate names, unresolved joins, and unknown keys
- 3Query governed measures through the PII gate and the cost guard on DuckDB, BigQuery, Snowflake, PostgreSQL, and Redshift
- 4Keep your warehouse credentials with Dex: SLayer renders SQL as a dry run and never opens a connection of its own
Agent-native analytics engineering on your SLayer semantic layer.
- .dex/config.yml
- semantics/slayer/models/warehouse/orders.yaml
How it works
Explore, transform, maintain: the Dex loop on SLayer.
- 1
Point Dex at your SLayer models
Install Dex in Claude Code by running
/plugin marketplace add exmergo/exmergo-agent-pluginsand/plugin install dex@exmergo, then add the SLayer extra withpip install 'exmergo-dex-core[slayer]'. Setsemantic.vendor: slayerin.dex/config.yml, pointsemantic.slayer.base_dirat SLayer's storage root, and list your model files undersemantic.slayer.models.slayer/plugin marketplace add exmergo/exmergo-agent-plugins/plugin install dex@exmergopip install 'exmergo-dex-core[slayer]'
- 2
Read the catalog before you touch anything
/dex:exploreloads your SLayer models straight out of the repository and returns the models, columns, joins, and saved measures they declare. Declared primary keys and joins become evidence Dex uses when it profiles tables and verifies joins.slayer/dex:explore
- 3
Author models as reviewable diffs
/dex:transformwrites and updates your SLayer model files throughsemantic slayer define, andtransform applycommits them. Every file is validated by SLayer's own model class from one pinned release, so what Dex accepts is what SLayer accepts.slayer/dex:transformsemantic slayer definetransform apply
- 4
SLayer renders, Dex executes
SLayer turns a governed query into SQL as a dry run and never touches your warehouse. Dex runs that SQL through its own connector, behind the PII gate and the cost guard, so a semantic query spends no more than any other query Dex runs.
- 5
Catch drift automatically
/dex:maintainsnapshots your SLayer layer and runs SLayer's own schema checks against the warehouse: a declared column that disappeared, a column whose type changed, a table that no longer exists.slayer/dex:maintain
Other semantic layers
Dex brings the same loop and the same guardrails to each of these.
Need a connector we don't support yet?
Tell us about your data source and we'll let you know as soon as the connector is available.