About DeepSQL
DeepSQL is an open source AI database agent for Postgres and MySQL that acts as a DBA and data engineer in one tool. It builds a shared context, which it calls the brain, from the schema, workload patterns, company metric definitions and application code. It uses that context to monitor workloads around the clock, detect and rewrite slow queries, recommend indexes and materialized views, flag unused indexes and bloat, and analyze explain plans. It also turns natural language questions into SQL, which it drafts, validates and runs on a read replica with each step visible.
The product is aimed at engineering teams that run production databases and at non technical colleagues who want answers without an analyst backlog. Beyond the agent, it ships built in dashboards with hosting, ad hoc BI answers, and scheduled and shareable reports. It can be used from a web interface, a command line or Slack, and an MCP server connects it to Claude, Codex and Cursor. It works with any deployment of Postgres or MySQL.
DeepSQL is self hosted inside the customer's own VPC, and the vendor states that data and query logs never leave it. Users bring their own LLM keys, and access is read only and policy enforced. Installation uses a shell install script from the site.
The open source edition costs $0 and has no feature gates, seat limits or usage metering. The vendor charges only for an optional consulting engagement covering guided installation, tuning and workload audits, with the price depending on scope and quoted individually.