Skip to content
| Marketplace
Sign in
Visual Studio Code>Data Science>ERD StudioNew to Visual Studio Code? Get it now.
ERD Studio

ERD Studio

Liam Wynne

|
651 installs
| (1) | Free
Logical data modeling in Git: draw ERDs in VS Code as plain files your AI assistant can read. New projects are DBML, an open format; YAML/JSON projects keep working. Import from dbdiagram.io, compare with dbt.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ERD Studio

Design your data model in Git. Let your AI build from it.
A logical data modeling canvas for VS Code: your model saved as DBML, an open format, in your repo, and a live comparison with your dbt project.

Install in VS Code

No dbt needed. Open any folder, then click New Diagram or Import DBML. Get started
Using dbt? Open its folder to compare your design with what dbt built. How it works

VS Marketplace Version Installs Open VSX Version
Free to use, source available under the PolyForm Shield License.

ERD Studio open in VS Code, showing four views of the same star schema. Logical stage: dim_customer, dim_date, dim_project and dim_task around the fct_order and fct_task_event facts, each dimension showing a PK surrogate key and an NK business key. Detail panel: dim_customer's columns, role and relationships opened for editing. Physical stage: the same diagram in green, built from the dbt project with the warehouse's own column types. Discrepancy overlay: columns that exist only in the design struck through against those only in the warehouse.

Why ERD Studio

  • In your repo. Plain DBML files, reviewed in the same pull request as your code. No account, server or database.
  • Works with the AI you already use. Claude Code, GitHub Copilot, Codex, Gemini CLI and Cursor read and write the same files. Review their proposals on the canvas before anyone writes SQL.
  • No lock-in. Your files are DBML, the open-source schema language behind dbdiagram.io; DBML parsers read your files as a multi-file project (the versions are in Leaving ERD Studio). Import DBML from any DBML tool, and export a single file for dbdiagram.io (keys, grain and notes) or Mermaid any time.
  • Checked against dbt. A read-only Physical view shows what your dbt project has; ⊕ Diff highlights every difference from your design and makes a sync plan your AI applies. More stacks later.

Get started

  1. Install ERD Studio (VS Code 1.85+, or Open VSX for VSCodium, Cursor and Windsurf). Open any folder and click ERD Studio in the Activity Bar.
  2. Make your first diagram:
    • From scratch: click New Diagram in the ERD Studio sidebar, choose a layer and a name, then use + Add → New Design Table and + Add → New Relationship on the canvas. (The commands call a diagram a subject area, so in the Command Palette it is ERD Studio: New Subject Area.)
    • From DBML: click Import DBML in the sidebar (or run ERD Studio: Import DBML…) and pick a .dbml file. You see what it will create before anything is written. Positions an ERD Studio export saved in the file keep your tables in place.
    • From an example: run ERD Studio: Open Example Diagram for a coffee-shop model.
  3. Commit the .erd-studio/ folder. That's your data model.

To export, click ⤓ on the canvas toolbar or run ERD Studio: Export All Diagrams… (what each format carries).

What's in your repo

.erd-studio/
├── README.md                       ← what the folders are
├── layers.json
└── gold/                           ← a layer (bronze, silver, gold, …)
    ├── tables/
    │   └── sales/                  ← a schema
    │       ├── dim_customer.dbml   ← one DBML file per table, shared by every diagram
    │       └── fct_order.dbml
    ├── relationships/
    │   └── gold.dbml               ← the relationships, one Ref line each
    └── diagrams/
        └── orders.dbml             ← one file per diagram: the tables it shows and where they sit
// .erd-studio/gold/tables/sales/fct_order.dbml
Table sales.fct_order [grain: 'One row per order'] {
  order_id    INTEGER [pk]
  customer_id INTEGER [foreign_key: 'true']
}

Edit on the canvas or in the files, by hand or with AI, and the other follows: ERD Studio edits the files in place, so your comments and hand edits stay (file format reference). A project from before ERD Studio 2.0 keeps its YAML and JSON files and works as before; run ERD Studio: Convert Project to DBML to move it over.

Common questions

Do I have to convert my project to DBML? No. A YAML/JSON project from before 2.0 keeps working, and its new tables and diagrams are still written as YAML and JSON. Only a new project starts as DBML. ERD Studio: Convert Project to DBML is up to you: it shows every change before it writes anything.

How do I go back? Straight after converting, Edit > Undo (with the diagram Convert opens in front) puts every file back. After that, use Git: commit before you convert, and revert that commit to return. A converted project needs ERD Studio 2.0 or later.

Can teammates on an older ERD Studio open it? A YAML/JSON project, yes, as long as nobody converts it. A DBML project (a converted one, or a new one) needs ERD Studio 2.0 or later: an older version (the 1.9 pre-releases included) shows no diagrams and an empty Table Library. Agree on the version before you convert, and run Set Up My AI Helper again afterwards so your AI assistant writes DBML too.

How do I move a table to another schema or layer? In a DBML project, right-click it in the Table Library, or its file in the Explorer, and choose Move Table…. Every diagram and relationships file that uses it follows in the same step, and Edit > Undo puts it all back. Move Diagram to Layer… does the same for a diagram. A YAML/JSON project has neither command: Organise Table Library by Layer moves each table file into the folder of the layer that uses it, and Convert Project to DBML brings both. In a DBML project you can also drag the file in the Explorer, or rename it there: ERD Studio offers to update every file that points at it (renaming a table file renames the table, since its file name is its name).

Something is slow or not working. Where do I look? Run ERD Studio: Show Logs. The ERD Studio channel in the Output view says what ERD Studio did and how long it took: opening each diagram, saving a moved table, each step of a conversion, and any file it could not read, with its line. Send Feedback can add the recent lines to your report if you tick Include the recent ERD Studio log; check them first, as they can name your tables.

Work with your AI assistant

Run ERD Studio: Set Up My AI Helper (also on the Welcome tab). It finds the assistants on your computer and teaches them ERD Studio's files. Then ask:

Propose a star schema for orders in ERD Studio, with grain, keys and design rationale. Let me review the diagram before we write any SQL.

Its changes are file edits you review like any other. The helper also adds a guided setup (/erd-studio-setup) that designs a first diagram with you, or builds one from dbt. See AI assistants.

Using dbt?

Open the folder that holds your dbt_project.yml and ERD Studio also reads dbt. The canvas gets two tabs, Logical (your design) · Physical (read from dbt):

  • ERD Studio: Draw from dbt… turns your dbt models into a first diagram in under a minute, no AI needed.
  • The read-only Physical tab shows what dbt has, from your schema YAMLs (plus manifest.json and catalog.json when present). ⊕ Diff highlights missing columns, type differences and relationship mismatches.
Play the getting-started video (1:00): install ERD Studio, open your dbt project, click Draw from dbt and get a laid-out diagram of your models, no AI needed. Click to watch. dbt project to diagram in a minute (1:00). Draw from dbt, then compare Logical with Physical.

No dbt project to hand? Run ERD Studio: Try the Sample Project (on GitHub). Using ERD Studio with dbt covers the rest. Another stack? Propose an integration.

Learn more

  • Using ERD Studio with dbt
  • AI assistants
  • DBML import and export
  • Choosing the project folder
  • File format reference and glossary
  • Bug or idea? Run ERD Studio: Send Feedback, or open an issue.

Star history

Star history chart for liam-machine/erd-studio
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft