DeepSQL is a self-hostable AI DBA agent that monitors, optimizes, and manages Postgres and MySQL databases, promising cost reduction and performance improvements.
Hi HN - I'm Venkat, founder of Stayflexi (YC), CMU CS grad and Ex-Oracle Query Engine team (patents in core databases)<p>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.<p>DeepSQL is an AI agent that operates a database the way a senior DBA and Data Engineer would<p>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<p>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.<p>One line install:
curl -fsSL <a href="https://install.deepsql.ai/install.sh" rel="nofollow">https://install.deepsql.ai/install.sh</a> | bash<p>For community support:
<a href="https://discord.gg/duEJq7AeeG" rel="nofollow">https://discord.gg/duEJq7AeeG</a><p>Or just email me for expert level setup guidance
[email protected]
# DeepSQL - 24/7 DBA: Cut Database Costs, Optimize Queries, MCP + Slack
Source: [https://deepsql.ai/](https://deepsql.ai/)
[deepsql](https://deepsql.ai/)The brain for your database
DeepSQL monitors workloads, optimizes slow queries, and ships BI dashboards to cut database costs by 38%\.
One\-line install · Self\-host in 15 minutes
How it works
## From zero to a working AI DBA in 15 minutes
Self\-hosted end\-to\-end\. Your data, your credentials, your VPC\.
Run this on any Linux box, EC2, or container in your VPC\. Installs the DeepSQL agent, CLI, and MCP server on the machine\.
Add database connections, teach it your company's knowledge, and feed it your slow query logs\. DeepSQL indexes your schema and starts learning your workload immediately\.
Postgres or MySQL — read replica, VPC\-peered\. Read\-only credentials, no data leaves your infra\.
host: aws\-rds\-replica\.internal
role: deepsql\_ro
ssl: require
Teach DeepSQL your business rules in plain English — MRR, active\-hotel, currency conventions\.
// MRR = SUM\(subscription\.mrr\)
// WHERE status = 'active'
// Active hotel = check\-ins ≥ 1 / 30d
Point at pg\_stat\_statements or MySQL slow log\. DeepSQL clusters, ranks, and starts recommending\.
source: pg\_stat\_statements
window: 30d rolling
grouped: 1,284 → 96 fingerprints
Chat with the built\-in DeepSQL agent in your browser, or connect Claude, Codex, and Cursor to your DeepSQL instance over MCP or CLI\.
## Put your database on autopilot\.
One\-line install\. Self\-host in 15 minutes\. Role\-based access, query policies, and audit logs built in\.
[Read the docs](https://docs.deepsql.ai/quickstart/)
## Field notes from inside the database
Deep dives on cutting Aurora costs, replacing Tableau, and why your observability bill is a lie\. Written for senior DBAs and data engineers\.
[Read the blog](https://deepsql.ai/blog)
DBOSify is a drop-in replacement for Temporal Python that uses Postgres instead of a Temporal server, enabling durable workflows without additional infrastructure.
GETadb.com offers an instant backend with a relational database, sync engine, and auth, accessible via a simple GET request without sign-up, allowing AI agents like Claude or Codex to build full-stack apps seamlessly.
HeidiSQL is a lightweight graphical interface for managing MariaDB, MySQL, SQL Server, PostgreSQL, SQLite, Interbase, and Firebird databases. It allows users to browse, edit, create, and export database structures and data.
xarray-sql is a tool that provides a SQL interface for querying Xarray multi-dimensional datasets, enabling round-tripping between Xarray and SQL for data analysis.
This paper presents a semantic-layer-mediated NL2SQL agent that decouples intent from physical execution by reasoning over a curated semantic model, achieving 94.15% execution accuracy on the Spider2-snow benchmark.