Welcome to DBFlow
DBFlow is a desktop AI agent that lets you query your databases using natural language. Instead of writing SQL, just ask:Installation
-
Download the installer for your OS from dbflow.ai/download
- macOS:
.dmg— drag to Applications - Windows:
.exe— run the setup wizard - Linux:
.AppImage(make executable withchmod +x) or.debpackage
- macOS:
- Launch DBFlow and activate your license when prompted. If you don’t have one yet, you can purchase one at dbflow.ai/pricing or use BYOK (Bring Your Own Key) mode.
Quick Setup
There are three things to do before your first query: add a database, make sure you have API keys, and go.1. Add a Database
Go to Databases in the sidebar, click Add Connection, fill in your connection details, and click Add Connection. DBFlow tests the connection automatically. For detailed setup instructions for each database type, see Adding Databases.2. API Keys
If you have a license with bundled keys: You’re all set — keys are available automatically once your license is activated. If you’re using BYOK: Go to Settings → API Keys, select a provider (e.g., OpenAI), paste your key, and save. BYOK keys always take priority over bundled keys. See API Keys Setup for the full list of supported providers and configuration details.3. Run Your First Query
Open the chat and try:Querying
Tips for Good Queries
Be specific — “Show me sales by month for 2024” works better than “sales.” You can reference tables and columns by name, ask follow-up questions (DBFlow keeps conversational context), and ask about your schema when you’re not sure what’s available.Model Selection
DBFlow automatically picks the best AI model for each query. You can also choose manually by prefixing your message:Visualizations
Ask DBFlow to chart your data:Web Search & Deep Research
Web Search
DBFlow can search the web for database best practices and solutions. Just ask naturally:Deep Research
Deep research runs multi-step, web-backed analysis and returns structured reports with citations. It’s useful for topics like indexing strategies, migration planning, sharding approaches, or comparing database technologies.| Depth | Duration | When to use |
|---|---|---|
| Quick | 1–2 min | Fast overview, simple questions |
| Standard | 2–4 min | Balanced depth; default for most research |
| Comprehensive | 3–6 min | Deep dive with many sources |
Security
DBFlow offers three security tiers. You can configure these in Settings → Security. Standard (default) — SQL injection protection, secure credential storage in your OS keychain, encrypted local storage, and XSS protection via Content Security Policy. Business — Everything in Standard, plus audit logging (all queries logged to a local SQLite database), local API authentication via session tokens, and an optional audit webhook for SIEM integration (Datadog, Splunk, etc.). Healthcare — Everything in Business, plus automatic PHI masking. Sensitive data (SSN, phone, email, DOB, MRN) is detected and masked before being sent to AI providers. Superuser access is available for authorized viewing of unmasked data. Changing security tiers triggers an automatic backend restart. The Healthcare tier is not a complete HIPAA compliance solution — ensure you have appropriate BAAs with any cloud services.Other Features
Query History — All queries are saved automatically. Click History in the sidebar to search, filter, and rerun past queries. Multiple Connections — Add as many databases as you need and switch between them by clicking on a connection in the Databases view, or by asking in chat: “Switch to production_db.” Only one connection is active at a time. You can also switch and query in one message: “Switch to production_db and show me all tables.” Cost Tracking — Monitor your API usage and costs in Settings.Troubleshooting
Can’t connect to a database — Verify your credentials, check that the database server is running, and make sure firewall rules allow connections. Try connecting with a standalone client (psql, mysql, mongosh) first to rule out DBFlow-specific issues. See Adding Databases — Troubleshooting for detailed guidance. “Invalid API key” or “API key not found” — Check your keys in Settings → API Keys. Make sure there are no extra spaces or quotes. For bundled keys, verify your license is active. For BYOK, confirm the key works on the provider’s website. Query fails or returns unexpected results — Review the generated SQL shown below the results. Try rephrasing your question, being more specific about table/column names, or selecting a different model for complex queries. “Model not available” — The model may not be included in your license tier, or you may be missing the required API key. Try a different model or check Settings → Models. Slow queries — Use GPT-5-mini for simple queries (it’s faster). For large datasets, check that your database has appropriate indexes. Network latency can also be a factor with remote databases.FAQ
Do I need to know SQL? No. DBFlow translates natural language to SQL automatically. The generated SQL is shown with each result if you want to learn from it. Does DBFlow modify my database? By default, DBFlow only runs SELECT queries and cannot modify, delete, or insert data. Are my credentials secure? Yes. Credentials are stored in your OS keychain (macOS Keychain, Windows Credential Manager, or Linux libsecret) and are never sent to DBFlow’s servers. What’s the difference between bundled keys and BYOK? Bundled keys come with your license and have usage limits. BYOK means you provide your own API keys from providers like OpenAI or Anthropic — unlimited usage, and you pay the provider directly. Can I use DBFlow offline? The app can run offline for up to 30 days using cached license validation, but AI queries require an internet connection. Can I export results? Results can be copied, and charts are saved to files. CSV/Excel export availability depends on your license tier. How do I update? DBFlow checks for updates automatically. You can also check manually via Help → Check for Updates or download the latest version from dbflow.ai/download.Next Steps
- Adding Databases — Detailed connection instructions for each database type
- API Keys Setup — Full guide to configuring bundled and BYOK keys

