back to home

Canner / WrenAI

⚡️ GenBI (Generative BI) queries any database in natural language, generates accurate SQL (Text-to-SQL), charts (Text-to-Chart), and AI-powered business intelligence in seconds.

14,446 stars
1,543 forks
284 issues
TypeScriptPythonGo

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing Canner/WrenAI in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind-ai.vercel.app/repo/Canner/WrenAI)
Preview:Analyzed by RepoMind

Repository Summary (README)

Preview
<p align="center" id="top"> <a href="https://getwren.ai/?utm_source=github&utm_medium=title&utm_campaign=readme"> <picture> <source media="(prefers-color-scheme: light)" srcset="./misc/wrenai_logo.png"> <img src="./misc/wrenai_logo_white.png" width="300px"> </picture> <h1 align="center">Wren AI - Open-Source GenBI Agent</h1> </a> </p> <p align="center"> <a aria-label="Follow us on X" href="https://x.com/getwrenai"> <img alt="" src="https://img.shields.io/badge/-@getwrenai-blue?style=for-the-badge&logo=x&logoColor=white&labelColor=gray&logoWidth=20"> </a> <a aria-label="Releases" href="https://github.com/canner/WrenAI/releases"> <img alt="" src="https://img.shields.io/github/v/release/canner/WrenAI?logo=github&label=GitHub%20Release&color=blue&style=for-the-badge"> </a> <a aria-label="License" href="https://github.com/Canner/WrenAI/blob/main/LICENSE"> <img alt="" src="https://img.shields.io/github/license/canner/WrenAI?color=blue&style=for-the-badge"> </a> <a href="https://docs.getwren.ai"> <img src="https://img.shields.io/badge/docs-online-brightgreen?style=for-the-badge" alt="Docs"> </a> <a aria-label="Join the community on GitHub" href="https://discord.gg/5DvshJqG8Z"> <img alt="" src="https://img.shields.io/badge/-JOIN%20THE%20COMMUNITY-blue?style=for-the-badge&logo=discord&logoColor=white&labelColor=grey&logoWidth=20"> </a> <a aria-label="Canner" href="https://cannerdata.com/?utm_source=github&utm_medium=badge&utm_campaign=readme"> <img src="https://img.shields.io/badge/%F0%9F%A7%A1-Made%20by%20Canner-blue?style=for-the-badge"> </a> </p> <p align="center"> <a href="https://trendshift.io/repositories/9263" target="_blank"><img src="https://trendshift.io/api/badge/repositories/9263" alt="Canner%2FWrenAI | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a> </p>

⚡ GenBI (Generative BI) queries any database in natural language, generates accurate SQL (Text-to-SQL), charts (Text-to-Chart), and AI-powered business intelligence in seconds. ️

<p align="center"> <img width="1920" height="1080" alt="1" src="https://github.com/user-attachments/assets/bba9d37a-33e3-49ab-b7cb-32fd6dddc8d1" /> </p>

😍 Demos

https://github.com/user-attachments/assets/f9c1cb34-5a95-4580-8890-ec9644da4160

Watch GenBI Demo

🤖 Features

What you getWhy it matters
Talk to Your DataAsk in any language → precise SQL & answersSlash the SQL learning curve
GenBI InsightsAI-written summaries, charts & reportsDecision-ready context in one click
Semantic LayerMDL models encode schema, metrics, joinsKeeps LLM outputs accurate & governed
Embed via APIGenerate queries & charts inside your apps (API Docs)Build custom agents, SaaS features, chatbots (Streamlit Live Demo)

🤩 Learn more about GenBI

🚀 Getting Started

Using Wren AI is super simple, you can set it up within 3 minutes, and start to interact with your data!

<p align="center"> <img width="1920" height="1080" alt="2" src="https://github.com/user-attachments/assets/6555f539-9ef2-485d-9135-0071741fda96" /> </p>

🏗️ Architecture

<p align="center"> <img width="1011" height="682" alt="wrenai-architecture" src="https://github.com/user-attachments/assets/e99b999f-9912-4fa7-921a-9c86b6b83354" /> </p>

👉 Learn more about our Design

🔌 Data Sources

If your data source is not listed here, vote for it in our GitHub discussion thread. It will be a valuable input for us to decide on the next supported data sources.

  • Athena (Trino)
  • Redshift
  • BigQuery
  • DuckDB
  • Databricks
  • PostgreSQL
  • MySQL
  • Microsoft SQL Server
  • ClickHouse
  • Oracle
  • Trino
  • Snowflake

🤖 LLM Models

Wren AI supports integration with various Large Language Models (LLMs), including but not limited to:

  • OpenAI Models
  • Azure OpenAI Models
  • DeepSeek Models
  • Google AI Studio – Gemini Models
  • Vertex AI Models (Gemini + Anthropic)
  • Bedrock Models
  • Anthropic API Models
  • Groq Models
  • Ollama Models
  • Databricks Models

Check configuration examples here!

[!CAUTION] The performance of Wren AI depends significantly on the capabilities of the LLM you choose. We strongly recommend using the most powerful model available for optimal results. Using less capable models may lead to reduced performance, slower response times, or inaccurate outputs.

📚 Documentation

Visit Wren AI documentation to view the full documentation.

📪 Keep Posted?

Subscribe our blog and Follow our LinkedIn

🛠️ Contribution

  1. Star ⭐ the repo to show support (it really helps).
  2. Open an issue for bugs, ideas, or discussions.
  3. Read Contribution Guidelines for setup & PR guidelines.

⭐️ Community

  • Join 1.3k+ developers in our Discord for real-time help and roadmap previews.
  • If there are any issues, please visit GitHub Issues.
  • Explore our public roadmap to stay updated on upcoming features and improvements!

Please note that our Code of Conduct applies to all Wren AI community channels. Users are highly encouraged to read and adhere to them to avoid repercussions.

🎉 Our Contributors

<a href="https://github.com/canner/wrenAI/graphs/contributors"> <img src="https://contrib.rocks/image?repo=Canner/WrenAI" /> </a> <p align="right"> <a href="#top">⬆️ Back to Top</a> </p>