What is this?
Wren AI is an open-source generative BI (GenBI) engine: AI agents turn natural-language questions into governed SQL, charts, and deployable dashboards across 22+ data sources, grounded in a semantic layer they can trust.
Is this a BI web app I open in a browser, or a tool my coding agent uses?
It is agent-driven: a Python CLI plus a ~50-line discovery stub for your AI client, and the agent handles setup, queries, and dashboards. The old Docker-based chat-first BI app survives separately as Wren GenBI Classic on the legacy/v1 branch.
How do I get it running?
Install the CLI with pip, add the one-file discovery stub to your AI client, then tell your agent 'Use Wren to set up my Postgres database' — it creates a connection profile and runs a first query. No database handy? Use the bundled jaffleshop sample dataset.
Which AI agents does it work with?
Any agent that can read the stub — the README names Claude Code, Cursor, and MCP clients. For other stacks there are official SDKs: wren-langchain (LangChain/LangGraph) and wren-pydantic.
When is Wren the wrong choice?
By its own README: skip Wren if you only need a one-off chart from a single CSV, or you are fine letting an agent guess at SQL with no governance. It targets governed, multi-source BI, not quick one-off charts.
My agent already writes SQL — what does Wren add?
What schemas don't give agents: business semantics, approved definitions, examples, and memory in a governed semantic layer (MDL), so answers follow your business truth instead of plausible guesses — plus it deploys dashboards, not just SQL.
Is it fully open source, or is it open core?
Open core under Apache-2.0: the engine, MDL semantic layer, governed text-to-SQL, MCP server, CLI, and 22+ connectors are free and self-hostable forever. Row/column-level security, access control, the GenBI UI with dashboards, and agentic mode are paid (Cloud or Enterprise Plus).
Which databases can it connect to?
22+ sources through an Apache DataFusion engine — BigQuery, Snowflake, PostgreSQL, ClickHouse, Amazon Redshift, Databricks, DuckDB, and more.
What is MDL?
The Modeling Definition Language — Wren's Git-friendly semantic layer: models, columns, relationships, views, cubes, and metrics, plus business context like enums, units, and approved joins in version-controlled instructions.md and queries.yml. Every answer is planned against it.
How does it stop the agent from writing wrong SQL?
Answers are planned against the MDL and dry-plan validated before execution, with schema-aware retrieval, structured errors with hints, row limits, value profiling, and a golden eval runner as correctness primitives.
Can I share the results with non-technical teammates?
Yes — an answer can become a browser-side dashboard app powered by wren-core-wasm; the agent builds it, previews it locally, and deploys it to your own Vercel or Cloudflare Pages account, returning a live shareable URL.
What are similar projects?
cube, redash, airbyte, mcp-toolbox, auto-ontology, apowerb, dbx, perspective
Which topics is it in?
databricks, text-to-sql, bigquery, data-warehouse, snowflake, business-intelligence, duckdb, clickhouse, charts, langchain, context-engineering, sql