Show HN: DeepSQL – A self-hostable DBA agent for Postgres and MySQL (deepsql.ai)

52 points by venkat971 ↗ HN
Hi HN - I'm Venkat, founder of Stayflexi (YC), CMU CS grad and Ex-Oracle Query Engine team (patents in core databases)

DeepSQL started as an internal tool to stop our own databases from becoming the bottleneck they were becoming (13,000+ hotels in production). It worked well enough that we're releasing it.

DeepSQL is an AI agent that operates a database the way a senior DBA and Data Engineer would

1. Fixes slow queries (we cutdown DB spend by 4x) 2. Fixes DB bloat (blocks unnecessary schema changes, in vibecoded setup) 2. BI dashboards(we removed spend on tableau, retool and appsmith) 3. Security (We could redact access to sensitive, PII data to our employees) while engaging everyone in the org to interact with our database

How it works 1. Deepsql learns your data and relationships from your code base, rules and query logs 2. Deepsql agent has 20 background jobs that continuously monitor the schema changes, bottlenecks, and come up with solutions before the problem arises. (Schema bloat issues are irreversible) 3. Deepsql Brain has CLI and MCP surfaces that can directly work with Claude / Codex and Cursor. 4. Deepsql digest delivers the daily database health report. 5. Your team can connect to deepsql with their favourate surface areas - Web UI, CLI, MCP or Slack.

One line install: curl -fsSL https://install.deepsql.ai/install.sh | bash

For community support: https://discord.gg/duEJq7AeeG

Or just email me for expert level setup guidance venkat@deepsql.ai

20 comments

[ 3.7 ms ] story [ 38.4 ms ] thread
Deepsql doesn't replace your DBA, it gives your DBA super powers. In my org, when we had to decide on hiring a DBA, we chose building deepsql and empowered our senior engineer to handle the database tasks like a senior DBA.

For deployment help, pl email me at venkat@deepsql.ai

[dead]
So, does it help with context management or so called MemoryBank setup?
(comment deleted)
This is an interesting product. Any comparison with other DBA tools? There are many tools can fix the slow queries, based on rule+statistics.
> 2. BI dashboards(we removed spend on tableau, retool and appsmith)

Can you explain this in more detail? You saying that DeepSQL can create BI dashboards that makes Tableau and friends redundant -- are you talking about analytics dashboards consumed by business teams or more like db ops dashboards used by backend teams? Does the user prompt the agent for them, or does it build dashboards that it infers are needed?

> cut database costs by 40%

Where does this number come from? It feels completely arbitrary.

Is this an open source tool? Is it something we have to pay for? The site really doesn't tell me what I should be expecting.
inside install.sh file i found this:

printf " ${DIM}This install is using DeepSQL's shared managed Azure OpenAI key, so your${RESET}\n" printf " ${DIM}schema and queries are processed through DeepSQL's shared LLM resource.${RESET}\n"

also, it requires docker.

How is it different from Claude Code with access to Oracle docs?
It feels like ppl will churn after they fix their indexes / get their large savings once. All the best though.
optimizing the queries and schema monitoring just one aspect of Deepsql. It has built in BI server - security and policies enforcing module (on who can read what data) - All these can be wired in to the regular business and data lookup workflows.
Though the core of the product seems to be younger enough and also i couldnt find a link to github for more detailed query but the direction about database should do more and it should evolve as per needs of Agentic Era seems to be fascinated and I am already working on that direction from my end too, Wish you best for this project.
Good luck with your project. happy to exchange notes, feel free to ping me at venkat@deepsql.ai
Combining background query optimization with PII redaction in a self-hostable setup is such a solid combo for small engineering teams. Impressive release!