# sqlchat/sqlchat

Chat-based SQL Client and Editor for the next decade

Repository: https://github.com/sqlchat/sqlchat
Canonical: https://ross.abutalabs.com/products/sqlchat
Homepage: https://sqlchat.ai
Language: TypeScript
License: MIT
License Family: permissive
Topics: chatgpt, mysql, openai, postgres, sql, sqlclient, sqleditor, clickhouse, cockroachdb, oracle, snowflake, sqlite, sqlserver, tidb, mongodb, redis, mssql, text2sql, text-to-sql, gpt
Last push: 2026-04-21T03:03:56+00:00

## Health v2 (maintenance only)
Score: 65/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 78, release rhythm 35, longevity 90
- inputs: {"age_days": 1266, "days_push": 134, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5843, forks 505 (observed 2026-08-28T04:09:31.557942+00:00)

## What it is
SQL Chat is a chat-based SQL client and editor that lets users query, modify, add, and delete data using natural language, powered by OpenAI. It is a Next.js web application supporting MySQL, PostgreSQL, MSSQL, TiDB Cloud, and OceanBase, deployable on Vercel or self-hosted via Docker.

## Use cases
- query a database using natural language
- chat-based sql client for mysql and postgres
- self-host an ai sql editor with my openai key
- write sql queries without knowing sql syntax
- browse and edit database data through a chat interface
- deploy a text-to-sql web app on vercel

## When to choose
- you want natural-language querying across MySQL, PostgreSQL, MSSQL, or TiDB
- you prefer a chat interface over traditional SQL client UIs
- you need a self-hostable AI SQL client with Docker

## When to avoid
- you need a full-featured traditional SQL IDE with schema tooling
- you cannot send schema or query context to an external LLM API
- you require strict IP whitelisting and prefer not to self-host

## Facets
- artifact type: application
- maturity: active
- function: chatbot, llm-inference, rag, database, gui, self-hosted
- domain: databases, large-language-models, developer-tools, web-development
- platform: self-hosted, cloud
- tags: text-to-sql, sql-client, sql-editor, chatgpt, nextjs, mysql, postgresql, natural-language-query, web-server, docker, nodejs

## Member repositories
- sqlchat/sqlchat (main) score 65

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:31.557942+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:51:54.969859+00:00, confidence not recorded.
  - readme: https://github.com/sqlchat/sqlchat (fetched 2026-08-28T04:09:31.557942+00:00, sha 835c4f438518)
  - homepage: https://sqlchat.ai (fetched 2026-08-29T08:47:43.501530+00:00, sha 66364504b8d7)
  - site_page: https://docs.bytebase.com/integrations/terraform/overview (fetched 2026-08-29T08:47:43.507651+00:00, sha 290984f5920a)
  - site_page: https://docs.bytebase.com/integrations/mcp (fetched 2026-08-29T08:47:43.509386+00:00, sha 15d8ec983c2c)
  - site_page: https://www.bytebase.com/pricing (fetched 2026-08-29T08:47:43.503992+00:00, sha 73c83346ee46)
  - site_page: https://www.bytebase.com/integrations (fetched 2026-08-29T08:47:43.505935+00:00, sha 76642936b548)
- Data as of 2026-08-30T08:39:29.467469+00:00.
