# WrenAI

> GenBI (Generative BI) for AI agents, an open-source, governed text-to-SQL through an open context layer that turns natural-language questions into trusted…

- Type: agent or tool
- Field: Data & Databases
- Repository: https://github.com/Canner/WrenAI
- GitHub stars: 18386
- Licence: NOASSERTION
- Language: Python
- Last push: 2026-11-23
- Page: https://imutechz.in/agents/wrenai

## What it is
WrenAI is an open-source generative BI engine that gives AI agents a governed semantic layer and context layer, so they turn business questions into SQL and deploy the result as a shareable dashboard. It is aimed at agent builders and data teams using tools like Claude Code, Cursor, MCP clients or LangChain. Business definitions, enums, joins and examples live as reviewable YAML and Markdown files in a repo you own, and it runs on an Apache DataFusion engine across 22+ data sources.

## Features
- Governed text-to-SQL through a semantic and AI context layer
- Business definitions kept as versioned YAML and Markdown in Git
- Agent-driven dashboard generation and deployment to Vercel or Cloudflare Pages
- Works with Claude Code, Cursor, Cline, Codex, MCP clients and LangChain
- Guardrails such as dry-plan validation, row limits and value profiling
- 22+ data sources on one Apache DataFusion engine

## Best for
- Teams wanting governed SQL from natural-language questions
- Analysts deploying shareable dashboards from an agent workflow
- Organizations keeping metric definitions reviewable in Git
- Agent builders adding a semantic layer to existing assistants

## Pros
- Core engine, SDK and skills are Apache-2.0 licensed
- Business meaning is stored as reviewable, diffable files in a repo you own
- Works through agents you already use rather than a separate chat UI
- Sits on existing warehouses and semantic models

## Cons
- Requires Python and pip to install the CLI
- Connector extras must be installed separately as needed
- Dashboard deployment targets your own Vercel or Cloudflare Pages account

## Install
```
pip install wrenai
```

## Usage
```
npx skills add Canner/WrenAI
```

Tags: text-to-sql, generative-bi, semantic-layer, ai-agents, data, sql, dashboards, open-source
