Stars
Forks
Watchers
SQL Chat
Describe what you want in plain language and get real SQL against your real schema: SQL Chat is an open-source, chat-based SQL client from the Bytebase team. Instead of writing queries in a traditional editor, you connect a database and describe what you want in plain language; the AI reads your schema automatically, generates SQL that references real table and column names, executes it, and returns tabular results in the conversation. Follow-up messages refine the query, so exploration becomes a dialogue - narrow a result set, add a join, change an aggregation - without retyping statements. It supports MySQL, PostgreSQL, SQL Server, TiDB Cloud, and OceanBase from one interface, and covers modification as well as reads: insert, update, and delete operations phrased conversationally. Built with Next.js and TypeScript, it deploys as a single stateless Docker container in single-user mode - connection profiles live in the browser, so there is nothing server-side to maintain. A custom AI endpoint setting routes inference through any OpenAI-compatible API, including self-hosted models, and an optional database-backed mode adds accounts and quotas for offering the tool to a team. MIT-licensed.
Benefits
- SQL Fluency Not Required
- Analysts and product managers query production replicas in plain language while the schema-aware AI handles joins, aggregations, and syntax.
- Credentials Stay on Your Infrastructure
- Connection strings and query results never pass through a third-party SaaS - the client runs on your server and talks to your databases directly.
- Faster Than a Query Editor
- Iterating through follow-up messages beats rewriting statements: refine filters, pivot groupings, and drill into results conversationally.
- Your Model, Your Choice
- Point the custom endpoint at OpenAI or any OpenAI-compatible API - including self-hosted models - to control cost and keep inference private.
Features
- Natural Language to SQL
- Describe queries and data changes in plain language; the AI generates, executes, and displays the SQL and its results.
- Schema-Aware Generation
- Automatic schema introspection grounds every generated query in your real tables and columns.
- Five Database Engines
- MySQL, PostgreSQL, SQL Server, TiDB Cloud, and OceanBase from a single chat interface.
- Conversational Refinement
- Follow-up messages build on previous queries, turning data exploration into an iterative dialogue.
- Stateless Single-User Mode
- No server-side storage - connection profiles live in the browser, so the deployment is one lightweight container.
- Optional Multi-User Mode
- Enable a Postgres-backed mode for accounts, per-user quotas, and usage tracking when serving a team.