Set Up VS Code
Install the Extension
- Open VS Code and go to Extensions (
Cmd+Shift+X
on Mac,Ctrl+Shift+X
on Windows/Linux) - Search for “Credible” and install the extension
- Restart VS Code to activate the extension
Connect to Credible
- In the VS Code Explorer sidebar, expand “Credible Service”
- Click “Sign In” and add your organization name
- Complete the login flow in your browser
- Select your project from the dropdown

VS Code Extension Features
The extension provides several panels and features to help you build models:- Connection Explorer: Browse your connected databases, schemas, and tables
- Local Packages: View and publish packages from your workspace
- Malloy Schema Explorer: See all sources, dimensions, measures, and views in your
.malloy
files - Schema/Explore/Preview buttons: Above each source, use these to view structure, open the Data Explorer, or preview data
Building Models with AI
The Credible AI agent has access to your connected data sources and can build semantic models through natural conversation:- Open the Credible Chat panel in VS Code
- Give the agent a prompt like: “Build a model of ecommerce so I can analyze sales by product and brand”
- Follow the agent’s prompts and review the generated model in your editor
- Sources connected to your tables
- Dimensions for grouping and filtering
- Measures for calculations and aggregations
- Joins between related tables
- Views for common analysis patterns
Add Views to Your Model
Create reusable views to validate your model:Create Nested Views
Build complex analyses with nested queries:Test & Validate
Once the agent generates your model, you can test or improve it in a few ways:- Click “Run” to execute queries defined in your Malloy model
- Click “Explore” to open the Data Explorer for visual analysis
- Ask the agent to update the model for you, or edit the code yourself

Working with Your Model
Package Structure
A complete package can contain:.malloy
files - Your semantic model definitions.malloynb
files - Malloy notebooks for analysis and documentationdata/
folder - Embedded CSV or Parquet filespackage.json
- Package manifest with metadata
Running Queries
You can execute queries in multiple ways:- Run button - Click Run next to any view definition
- Explore button - Open the visual query builder
- Command palette - Use
Malloy: Run Query
command - Inline execution - Right-click on a query and select Run
Iterating on Models
The development workflow is designed for rapid iteration:- Make changes to your model definition
- Save the file to trigger validation
- Run queries to test your changes
- View results inline or in the results panel
- Refine based on results and requirements