# Wren AI OSS

> Open-source context engine for AI agents with a semantic layer, where metrics, joins, and worked examples live as YAML and Markdown in Git, for 22+ data sources, with a CLI, SDK, and MCP server.

Source: https://toolsfordata.com/tools/wren-ai-oss/ · Updated 2026-12-02

[Website](https://www.getwren.ai/en/open-core) · [Docs](https://docs.getwren.ai) · [GitHub](https://github.com/Canner/WrenAI) (18.4k stars)

Best for: developers who want coding agents such as Claude Code or Cursor to write governed SQL from definitions kept in Git, without a web UI.

## Overview

- Core Strength: Open-source context engine for coding agents
- Best For: Developers who keep definitions in Git and use their own agent
- Deployment Model: Self-hosted command line, SDK and MCP server
- Pricing: Free (Apache 2.0 engine)
- Notable Caveat: No web UI, evaluation, SSO or roles
- Modeling: Partial — derived metrics, hierarchies, as code
- Portability: Full — import, export, Apache Ossie
- Query Interfaces: Partial — MCP
- BI & Spreadsheets: Not supported
- AI Agents: Partial — AI modeling, verified queries, synonyms, memory
- Performance: Not confirmed
- Governance: Partial — row security, validation
- Security & Access: Not confirmed

## What it's used for

Wren AI OSS is used to give coding agents such as Claude Code or Cursor a semantic layer in Git, so the SQL they write follows governed definitions.

## Semantic models

Cubes declare measures, dimensions, time dimensions and hierarchies; relationships hold join logic, and calculated fields are reused. Definitions and worked examples are YAML and Markdown in Git.

## Portability

Reads and writes Apache Ossie files, and has a dbt integration guide.

## Workflows

Your agents query through the CLI, the SDK or wren serve mcp, over 22+ data sources. There is no SQL endpoint, BI connection or spreadsheet add-in.

## AI

Agent skills draft and enrich the model. Business rules, proven question and SQL examples, and memory of what worked are stored with the project. Answer modes and evaluation are commercial.

## DataOps

Plans are validated before execution, so bad references fail early. The same project binds to dev, staging and production profiles.

## Governance

Access rules are defined in the model; per-user row and column security is commercial.

## Deployment

Self-hosted from the command line and SDK.

## Pricing

Wren AI OSS is free under Apache 2.0. Wren AI Cloud adds the web UI and answers, from $179 a month billed annually.

## Review

Strengths:
- Free, Apache 2.0, with 18.4k GitHub stars.
- Apache Ossie import and export.
- Examples and memory stored with the model, in Git.

Caveats:
- No web UI, BI connections or evaluation.
- No SSO, roles or audit log.

Recommendation: Use Wren AI OSS when your own coding agents are the consumers. Choose Wren AI Cloud for business users, or Cube Core when applications and BI tools query the model.

## Pricing

- Model: usage-based, credits
- Free: 14-day trial
- Free self-hosted edition: Wren AI OSS (Apache 2.0 engine, CLI and SDK)
- Entry team price: $179/month billed annually (Essential Cloud, 13,200 credits/year)
- Entry enterprise price: $559/month billed annually (Enterprise Cloud, 24,000 credits/year)
- Source: https://www.getwren.ai/pricing (checked 2026-12-02)

## Features

### Semantic Models

- Metrics & Dimensions: Yes — Cubes declare measures, dimensions and time dimensions. ([source](https://docs.getwren.ai/oss/guides/cubes))
- Joins & Relationships: Yes — Relationships hold reusable join logic between models. ([source](https://docs.getwren.ai/oss/concepts/what_is_mdl))
- Calculated & Derived Metrics: Yes — Calculated fields are defined once and reused. ([source](https://docs.getwren.ai/oss/concepts/what_is_mdl))
- Hierarchies: Yes — Cubes declare hierarchies. ([source](https://docs.getwren.ai/oss/guides/cubes))
- Multi-Fact Models: No — Not in the Wren AI OSS documentation. ([source](https://docs.getwren.ai/oss/guides/cubes))
- Definitions as Code: Yes — Definitions are YAML and Markdown in a Git repository. ([source](https://github.com/Canner/WrenAI))

### Portability

- Model Import: Yes — Imports Apache Ossie files. ([source](https://docs.getwren.ai/oss/guides/ossie))
- Model Export: Yes — Exports a project as an Apache Ossie file. ([source](https://docs.getwren.ai/oss/guides/ossie))
- Apache Ossie Support: Yes — Reads and writes Apache Ossie. ([source](https://docs.getwren.ai/oss/guides/ossie))

### Workflows

- SQL API: No — Agents query through the CLI, SDK and MCP server; an endpoint for SQL clients is not in the documentation. ([source](https://docs.getwren.ai/oss/guides/mcp))
- REST / GraphQL API: No — The hosted REST API is commercial. ([source](https://docs.getwren.ai/oss/concepts/oss_vs_commercial))
- MDX / DAX API: No — Not in the full documentation index. ([source](https://docs.getwren.ai/oss/concepts/oss_vs_commercial))
- BI Tool Integrations: No — Not in the Wren AI OSS documentation. ([source](https://docs.getwren.ai/oss/concepts/stack_position))
- Spreadsheet Integration: No — The Excel and Google Sheets add-ins are documented for the commercial product. ([source](https://docs.getwren.ai/cp/guide/integrations/excel-add-in))
- Embedded Analytics: No — GenBI apps can be deployed as static sites; embeddable components are not in the open-source documentation. ([source](https://docs.getwren.ai/oss/get_started/quickstart))
- Multi-Warehouse Support: Yes — Connects to 22+ data sources. ([source](https://github.com/Canner/WrenAI))
- dbt Integration: Yes — A dbt integration guide. ([source](https://docs.getwren.ai/oss/guides/dbt-integration))
- Data Catalog Integration: No — A project can start from an OpenMetadata catalog; publishing definitions to a catalog is not in the documentation. ([source](https://docs.getwren.ai/oss/guides/openmetadata-integration))

### AI & Agents

- MCP Server: Yes — wren serve mcp exposes a project to MCP clients. The edition table lists a hosted MCP server as commercial. ([source](https://docs.getwren.ai/oss/guides/mcp))
- Natural Language Query: No — Your own agent asks through the CLI or MCP server; the answer modes are commercial. ([source](https://github.com/Canner/WrenAI))
- AI-Assisted Modeling: Yes — Agent skills draft and enrich the model. ([source](https://docs.getwren.ai/oss/guides/refine))
- AI Metadata & Synonyms: Yes — Business rules and team conventions are stored with the model for agents. ([source](https://docs.getwren.ai/oss/guides/refine))
- Verified Queries: Yes — Proven question and SQL examples are stored and reused. ([source](https://docs.getwren.ai/oss/guides/refine))
- AI Memory: Yes — Memory keeps what worked before: schema items, SQL and examples. ([source](https://docs.getwren.ai/oss/concepts/memory_system))
- Agent Evaluation: No — Evaluation is commercial. ([source](https://docs.getwren.ai/oss/concepts/oss_vs_commercial))

### Query Optimizations

- Pre-Aggregations: No — The docs call cubes pre-aggregated, but they describe generated SQL, not stored rollups. ([source](https://docs.getwren.ai/oss/guides/cubes))
- Query Caching: Unknown — Not described in the docs checked. ([source](https://docs.getwren.ai/oss/concepts/oss_vs_commercial))

### DataOps

- Model Testing & Validation: Yes — Plans are validated before execution, so bad references fail early. ([source](https://docs.getwren.ai/oss/concepts/correctness))
- Orchestration Integration: No — Not in the full documentation index. ([source](https://docs.getwren.ai/oss/concepts/oss_vs_commercial))
- Observability & Monitoring: No — Feedback tracing is commercial. ([source](https://docs.getwren.ai/oss/concepts/oss_vs_commercial))

### Data Governance

- Row & Column-Level Security: Yes — Access control is defined in the model; per-user row and column security is commercial. ([source](https://docs.getwren.ai/oss/concepts/oss_vs_commercial))
- Data Lineage: No — Not in the full documentation index. ([source](https://docs.getwren.ai/oss/concepts/oss_vs_commercial))

### Security

- SSO: No — SSO is commercial. ([source](https://docs.getwren.ai/oss/concepts/oss_vs_commercial))
- RBAC: No — Accounts and roles are commercial. ([source](https://docs.getwren.ai/oss/concepts/oss_vs_commercial))
- Audit Log: No — The audit log is commercial. ([source](https://docs.getwren.ai/oss/concepts/oss_vs_commercial))
- Compliance Certifications: Unknown — You run it, so this depends on your environment. ([source](https://docs.getwren.ai/oss/concepts/oss_vs_commercial))
- SCIM Provisioning: No — SCIM is commercial. ([source](https://docs.getwren.ai/oss/concepts/oss_vs_commercial))
- Private Networking: Unknown — You run it inside your own network, so this depends on your setup. ([source](https://docs.getwren.ai/oss/concepts/oss_vs_commercial))

### Deployment

- Multi-Environment Support: Yes — The same project can be bound to dev, staging and production profiles. ([source](https://docs.getwren.ai/oss/concepts/stack_position))
- SaaS Deployment: No — The managed cloud is commercial. ([source](https://docs.getwren.ai/oss/concepts/oss_vs_commercial))
- Self-Hosted Deployment: Yes — Self-hosted from the command line and SDK. ([source](https://docs.getwren.ai/oss/concepts/oss_vs_commercial))
- Cloud-Native App: No — A command line tool and SDK. ([source](https://docs.getwren.ai/oss/concepts/oss_vs_commercial))
- Open Source: Yes — Apache 2.0 for the engine, SDK and skills. ([source](https://github.com/Canner/WrenAI))

## Integrations

22 integrations, each sourced from the vendor docs.

- AI Agents: Claude Code, Cursor, OpenAI Codex, Gemini CLI, GitHub Copilot, Windsurf, Devin, Snowflake Cortex Code, Google Antigravity, Cline, LangChain, Claude
- Data Governance: OpenMetadata
- Data Platform: Databricks
- Data Transformation: dbt
- Data Warehouse: Google BigQuery, Snowflake, ClickHouse, Amazon Redshift, DuckDB
- Databases: PostgreSQL
- Semantic Layer: Apache Ossie

## Alternatives

- [Wren AI Cloud](https://toolsfordata.com/tools/wren-ai-cloud/): Consider Wren AI Cloud when business users should ask questions in a web UI, Slack or spreadsheets, with evaluation and roles.
- [Cube Core](https://toolsfordata.com/tools/cube-core/): Consider Cube Core when applications and BI tools query the model over SQL, REST or GraphQL, with pre-aggregations.
- [MetricFlow](https://toolsfordata.com/tools/metricflow/): Consider MetricFlow if your models are in dbt and metrics should be tested in the same project.
- [Saiku](https://toolsfordata.com/tools/saiku/): Consider Saiku for open-source OLAP cubes with MDX, Excel and an MCP server, also reading and writing Ossie.
- [ktx](https://www.kaelio.com): Consider ktx for a context layer that builds the semantic layer for data agents from the warehouse itself.
- [Snowflake Semantic Views](https://toolsfordata.com/tools/snowflake-semantic-views/): The paid option inside the warehouse: metrics as Snowflake objects for Cortex Agents.
