WrenAI
Open-source text-to-SQL and GenBI agent with your choice of LLM.
Overview
WrenAI lets you ask questions of your databases in plain language and returns SQL, charts and answers, using a semantic layer to improve accuracy. The self-hosted version works with OpenAI, Anthropic, Gemini, Groq, Ollama and other LiteLLM providers.
- Text to SQL
- Semantic modeling layer
- Auto charts
- Many data sources
Our verdict
What we like
- Accurate SQL via semantic layer
- Broad LLM support
Watch out for
- Needs data modeling up front
Works with these providers
Keys from these providers work in this app. Usage is billed by the provider at its list price.
BYOK Key Safety Score
Key handling in WrenAI
Grade B
Your key is stored by the service (usually encrypted) and requests may route through its servers.
- Key storage18/40
Key is held by the vendor, so you rely on their security.
- Auditable code25/25
Open source: anyone can verify how keys are handled.
- Self-hosting15/15
Can run entirely on your own infrastructure.
- Offline option10/10
Supports local models, so no key is needed at all for private work.
- Provider choice10/10
9 provider options, which lets you pick the provider whose data terms you trust.
Whatever the score, give each app its own key, set a monthly spend limit with your provider, and revoke keys you no longer use. Read the key-safety checklist.
WrenAI FAQ
- Does WrenAI support bring your own key?
- Yes. WrenAI accepts your own API key from OpenAI, Anthropic, Google Gemini, Groq, DeepSeek, Azure OpenAI, AWS Bedrock, Ollama and OpenAI-compatible. Usage is billed by the provider at its API rates.
- Where does WrenAI store my API key?
- On the vendor's servers, and requests may be routed through them. Its BYOK Tools Key Safety Score is 78/100.
- Is WrenAI free?
- Freemium: Free self-hosted; paid cloud. API usage is billed separately by your model provider.
- Is WrenAI open source?
- Yes. The source code is at https://github.com/Canner/WrenAI. It can also be self-hosted.
- Can WrenAI run local models?
- Yes. It can connect to local runtimes such as Ollama or LM Studio, so no API key is needed for private or offline use.
- Which platforms does WrenAI support?
- Self-hosted, Web.
Community reviews
No reviews yet.
Alternatives to WrenAI
All research & search →GPT Researcher
Research & Search
Autonomous agent that writes detailed, cited research reports.
Open Notebook
Research & Search
Open-source, privacy-focused alternative to Google NotebookLM.
Morphic
Research & Search
Open-source AI answer engine with generative UI.
Perplexica
Research & Search
Open-source, self-hosted AI answer engine.
Open Deep Research
Research & Search
LangChain's configurable open-source deep research agent.
Khoj
Research & Search
Your AI second brain for documents and the web, self-hostable.