Vanna
Chat with your SQL database using RAG-trained models
This project is archived. Upstream development has stopped, so expect no new features or security fixes. Consider an actively maintained self-hosted ai alternative.
Vanna is an open-source Python framework that generates accurate SQL queries from natural language by training a RAG model on your schema. It works with many databases and LLM providers.
Key features
- Natural language to SQL
- Trains on your schema
- Many database connectors
- Self-hostable
Pros & cons
Strengths
- Natural language to SQL
- Many database connectors
- Flexible LLM support
Trade-offs
- Upstream development stopped
- Accuracy needs training data
Is Vanna secure?
1 known vulnerability affects Vanna's latest release (v2.0.2) according to OSV.dev; the most severe is rated high.
Affecting v2.0.2
| Advisory | Severity | Summary |
|---|---|---|
| CVE-2026-65702 | High | Vanna 2.0.2 Path Traversal via FileSystemConversationStore |
Source: OSV.dev, checked 2026-10-14. How this is measured.
Vanna replaces
Health badge
Maintain Vanna? Add its health score to your README. The badge links back to this page.
Compare Vanna
1 head-to-head comparisons.
Similar self-hosted ai apps
OpenClaw
Self-Hosted AIThe AI that actually does things
Hermes Agent
Self-Hosted AIThe AI agent that grows with you
OpenCode
Self-Hosted AIThe open source AI coding agent
Replaces Claude Code, Cursor
Hugging Face Transformers
Self-Hosted AIState-of-the-art machine learning model library
Replaces OpenAI API
Dify
Self-Hosted AIOpen-source platform for building production LLM apps
Replaces OpenAI Assistants, Vertex AI Agent Builder
Langflow
Self-Hosted AIVisual framework for building AI agents and RAG pipelines
Replaces Vertex AI Agent Builder