VA

Vanna

Chat with your SQL database using RAG-trained models

Self-Hosted AI Archived ★ 23.8k stars Medium setup MIT

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

AdvisorySeveritySummary
CVE-2026-65702HighVanna 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.

SelfHostIndex: 15 · archived

Markdown
[![SelfHostIndex health score for Vanna](https://selfhostindex.com/badge/vanna.svg)](https://selfhostindex.com/app/vanna/)
HTML
<a href="https://selfhostindex.com/app/vanna/"><img src="https://selfhostindex.com/badge/vanna.svg" alt="SelfHostIndex health score for Vanna"></a>
reStructuredText
.. image:: https://selfhostindex.com/badge/vanna.svg
   :alt: SelfHostIndex health score for Vanna
   :target: https://selfhostindex.com/app/vanna/

The score is recomputed on every nightly rebuild from public repository data — see how it is calculated.

Compare Vanna

1 head-to-head comparisons.

Similar self-hosted ai apps