Skip to main content

What’s in this Quick Start?

This Quick Start guides you through the end-to-end Credible workflow, focusing on a familiar and powerful pattern: a data modeler defines trusted business logic in VS Code using the Credible AI agent, and a data analyst explores the governed data model using Malloy’s no-code Explorer query builder. This mirrors the proven modeler → analyst workflow popularized by tools like DBT and Looker — now reimagined for the AI era. You will learn how to:
  1. Build a semantic model using the Credible AI agent in VS Code
  2. Create a view to validate your model
  3. Publish your work to the Credible service for broader use
  4. Explore your semantic model using the no-code Explorer to answer business questions
New to semantic models? Learn more about semantic models and why they matter →

Step 0: Get Set Up

Before starting, make sure:
  • A Credible admin set up your organization. (self-service demo coming soon)
  • You have a basic understanding of Malloy, the semantic modeling language Credible is built on. View Malloy Docs →

Install the CLI and Log In

Open a terminal and install the Credible CLI globally:
npm i -g @credibledata/cred-cli
Log in to your organization (replace <yourOrgName> with the organization name provided by your admin):
cred login <yourOrgName>
Set your project to the quick-start project:
cred set project quick-start

Install the VS Code Extension

  1. In VS Code, go to the Extensions view (Cmd+Shift+X)
  2. Search for Credible and install the extension
The extension will automatically connect to your organization and project based on your CLI login. The Credible Service Panel is where you can view your organization’s projects, connections, and packages. For example: VS Code Service Panel In the quick-start project, you can see you have access to a “bq_demo” connection. The connection is managed by the Credible service and is not stored locally, but the Credible VS Code extension will discover it in your project and allow you to use it in your local models—thus eliminating the need to store database credentials locally.

Step 1: Build a Semantic Model

At the core of Credible is the semantic model—a governed, versioned interface that defines how your data should be understood and used. Think of it as a an API for your data: it captures not just structure, but business meaning. You’ll use the Credible AI agent in VS Code to generate your first model using existing catalog metadata, query logs, and the structure of your data warehouse.

Open the Credible Chat Panel

Open the Credible Chat Panel. You will initially see it on the left in Activity Bar. To open the Credible AI agent chat, click on the Credible icon. To view the File Explorer, the Credible Service Panel and the Chat (along with your file), we recommend moving the chat over to the right panel by dragging and dropping the Credible Chat into a panel on the right, as shown in the screencast below:

Generate Your Semantic Model

Open the Credible chat and ask the Credible AI agent to help you build a model on the ecommerce dataset. For example: Build a semantic model of our ecommerce data to analyze sales by brand or product and user spend by age bucket.

Review and Adjust Your Model

After the model is generated, review and approve the edit to move the model into your malloy file. The ecommerce dataset has four tables: order_items, users, products, and inventory_items. You should see Malloy sources for each table with dimensions, measures, and join relationships connecting them logically. Malloy source with Schema, Explore, Preview buttons Understanding sources in Malloy: Sources define the underlying tables, join relationships, dimensions to slice by, and measures to compute aggregations on. Above each source definition, you’ll see three buttons: Schema (view table structure and joins), Explore (open the Data Explorer), and Preview (see the first 20 rows). Modifying the model with the Credible agent: To make adjustments, highlight any Malloy code block and ask the agent to update the code by describing the change you want in natural language (e.g., “make the age dimension an age range string such as 10-19”). For more information on Malloy syntax, see the Malloy documentation →

Step 2: Create a View

Creating views is a powerful way to validate your semantic model and define reusable analyses. We’ll use the Credible AI agent’s autocomplete feature to create a simple view that calculates sales by brand.

Step-by-Step Instructions:

  1. Find the order_items source in your ecommerce.malloy
  2. Below the dimensions and measures, start typing view: sales_by_brand and pause (be sure to include a space after brand to trigger the copilot)
  3. Wait for the copilot suggestion - it should suggest a complete view definition with a measure for total sales by brand. Adjust as desired & resolve any errors
  4. Add a # bar_chart tag above the view to make it display as a bar chart
  5. Click “Run” above the view execute the query. Results will display on the right
These steps are demonstrated in the following screencast:

Create a Nested View

You can also create nested views to drill down into your data:

Troubleshooting

If autocomplete isn’t working: add a space/tab after typing, wait 2-3 seconds, and ensure you start with valid Malloy syntax like view: .

Step 3: Publish to the Credible Service

Now that you have a semantic model, you can publish it so it can be served to consumption experiences—AI agents, applications, and dashboards. The unit of publishing in Malloy and Credible is a package: a directory containing a publisher.json file along with .malloy models (and optionally .malloynb notebooks or embedded data files). For best practices on organizing projects and packages, see Projects & Packages Best Practices. We’ll use the CLI to publish this package:
  1. Go back to the terminal (press Ctrl + ` on Windows/Linux or Cmd + ` on Mac)
  2. Navigate to your package directory:
    cd /path/to/your/package
    
  3. Publish the model:
    cred publish --set-latest
    
    The --set-latest flag pins this version as the default “latest” version for consumers. Omit this flag to publish without pinning.
  4. Confirm the deployment: Refresh the “Credible Service” panel in VS Code to verify that version 0.0.1 of your model now appears

Voila!

Your semantic model is now:
  • Governed and version controlled
  • Discoverable and queryable via APIs and notebooks
  • Ready for use by analysts, embedded apps, dashboards, or AI agents
To learn more about how versioning works (pinning, rollbacks, version history), see Understanding Package Versions.

Step 4: Explore your Semantic Model

Now that you’ve published your semantic model to the Credible platform, it’s time to see how data consumers can analyze data in the no-code Explorer UI (built on Malloy’s open source Publisher & Explorer functionality). This is where your work as a data modeler becomes a launchpad for analysts, product managers, and other data consumers to ask meaningful questions — without writing a single line of SQL.

Open the Explorer and Run a Saved View

  1. Access your model: Navigate to https://<your-org>.admin.credibledata.com/quick-start, log in, and open your ecommerce package. Go to Models → ecommerce.malloy and select the order_items source tab.
  2. Run an analysis: In the Views section, click on sales_by_brand, then click “Run” to execute the query.
✅ You should see the exact same result that you saw earlier in VS Code. For a complete guide to the Explorer interface, see the Explorer documentation →

Create a Nested Query

Now let’s build a query from scratch using clicks: Clear the query panel, add brand as Group By and total_sales as Aggregate, then click + to add a nested query with user_age_group and total_sales. ✅ You’ve just created a nested query that breaks down sales by brand and age group.

🎉 What You’ve Accomplished

Defined business logic in a semantic model (with AI assistance)
Validated the model and saved a view
Published the package organization-wide
Explored data with nested analysis through a no-code interface (no SQL required)
You’ve experienced the power of Credible: one semantic model that works everywhere — from modeling to exploring, enabling developers and analysts to work together on the same trusted foundation.

What’s Next?