A community-driven registry for Claude, Cursor, Windsurf, Cline & more. Not affiliated with Anthropic.
Are you the author? Sign in to claim
Give AI agents the context to query business data correctly through the open context layer that gives AI agents grounded
Your agent doesn't know what your data means. We fix that.
📣 2026-05-07 — Wren Engine has merged into this repo under
core/. The previousCanner/wren-enginerepo is archived. The previous WrenAI GenBI app is preserved on thelegacy/v1branch (tagv1-final). Read the announcement →
WrenAI is the open context layer that gives your agents what schemas don't: business semantics, examples, memory, governance, and — soon — the unstructured corporate knowledge that lives in your docs, wikis, and chat threads. Built for the agent frameworks you already use.

Agents are everywhere. Claude Code, Cursor, ChatGPT, Aider, LangChain pipelines, Pydantic AI flows, in-house copilots, customer-facing apps. None of them should have to rediscover your business logic from scratch. With Wren AI, "the context layer," they query through a standalone, shared interface usable by every agent and person, not gated behind a single vendor's UI and architecture.
WrenAI is agent-driven by design: install the CLI, install a one-file discovery stub for your AI client, then let your AI agent drive the rest. Workflow guides live inside the CLI itself and are served on demand, so content always matches the installed version.
pip install wrenai # core (DuckDB included)
pip install "wrenai[postgres,memory]" # add per-datasource and memory extras as needed
Tip for users in mainland China: If
pip installis slow or fails, use the Tsinghua mirror:hljs language-bashpip install wrenai -i https://pypi.tuna.tsinghua.edu.cn/simpleIf HuggingFace model downloads time out, add
export HF_ENDPOINT=https://hf-mirror.combefore running the CLI.
### 2. Install the discovery stub for your AI client
```bash
npx skills add Canner/WrenAI # auto-detects Claude Code, Cursor, Cline, Codex, …
The stub is ~50 lines. It teaches your agent to fetch workflow guides via
wren skills get <name> and shaped prompts via
wren ask "<question>" --guided|--direct — everything else lives in the CLI.
Open your agent in a project directory and say something like:
"Use Wren to set up my Postgres database."
The agent runs wren skills get onboarding, follows the guide step-by-step,
checks your environment, creates a connection profile, scaffolds the project,
and runs a first query.
Once onboarding finishes, ask:
"Enrich my Wren project with the business context in
raw/."
The agent runs wren skills get enrich-context and follows the guide in
grill mode (one question at a time) or auto-pilot mode (agent reads
<project>/raw/ and proposes). Both modes write to MDL, instructions,
queries, and memory — all reviewable, all Git-friendly.
"Who are our top 10 customers by sales this quarter?"
Your agent fetches MDL context, recalls similar past queries, writes
governed SQL, and executes via wren query.
Want to try it without your own database? Ask your agent to use the
bundled jaffle_shop sample dataset — same flow, querying a real warehouse
end-to-end in a couple of minutes.
# Day 1 — agent-driven
wren skills get onboarding # workflow guide: set up project + first query
wren skills get enrich-context # workflow guide: add business context (cubes, units, enums)
# Day-to-day
wren query --sql '...' # query through the MDL semantic layer
wren ask "<question>" --guided # wrap a question for a weaker agent
wren ask "<question>" --direct # wrap a question for a stronger agent
Fast at first. Deep when you need it. Always reviewable and Git-friendly.
wren-langchain (LangChain / LangGraph), wren-pydantic; reference Python integration for other stacks/wren-enrich-context (grill + auto-pilot modes) hardened across MDL, instructions, queries, and memoryFull roadmap and design notes: see the vision paper.
We build in the open. Issues, PRs, connector contributions, SDK integrations, docs fixes — all welcome.
good first issue label.core/
wren-core/ Rust semantic engine (Apache DataFusion)
wren-core-base/ Shared manifest types + MDL builder
wren-core-py/ Python bindings (PyPI: wren-core)
wren-core-wasm/ WebAssembly build (npm: wren-core-wasm)
wren/ Python SDK and CLI (PyPI: wrenai)
wren-mdl/ MDL JSON schema
sdk/
wren-langchain/ Reference agent SDK integration
skills/ Agent skills for context authoring
docs/ Module documentation
examples/ Example projects
Apache 2.0. See LICENSE.
Come build the context layer with us.
If WrenAI helps you, drop a ⭐ — it genuinely helps us grow!
An AI-powered custom node for ComfyUI designed to enhance workflow automation and provide intelligent assistance
Deterministic multi-agent pipeline for end-to-end software development, orchestrating CLI-based AI tools (e.g. Gemini, C
💻 A curated list of papers and resources for multi-modal Graphical User Interface (GUI) agents.
干净、强大、属于你的 AI Agent 平台 --AI agents, without the clutter.