Chat, NL-to-SQL & AI Keys
Configure your own LLM provider key and use built-in AI chat and natural language to SQL generation.
DBVision includes built-in AI features powered by your own LLM API key, encrypted at rest with DBVISION_MASTER_KEY.
Supported providers
In Settings → AI, you can configure one of the following providers:
- OpenAI (
openai) - Anthropic (
anthropic) - Mistral (
mistral) - OpenAI-compatible (
openai-compatible), with a custom base URL
By default, OpenAI-compatible base URLs on private networks or loopback addresses are blocked. Set DBVISION_LLM_ALLOW_PRIVATE_URLS=true if you run a local endpoint such as Ollama and trust users to reach those addresses.
You can test the provider key and configuration directly from the settings page before saving.
Chat with your data
The Chat view lets you ask questions about the active connection. The assistant uses schema and query tools bounded by the connection's AI data mode (Schema only, Sample rows, or Query results). Conversations are stored per user and connection.
Natural language to SQL
In the SQL editor, you can describe a query in natural language to generate a SELECT statement tailored to the connection's schema, then review and run it yourself.