# PostgresAI vs OtterTune: open-source monitoring vs ML knob tuning (closed)

> OtterTune tuned PostgreSQL knobs on Amazon RDS and Aurora with ML until it shut down in June 2024. PostgresAI monitors Postgres on any provider, as open source.

Checked on 2026-11-18. Page: https://postgres.ai/compare/postgresai-vs-ottertune. All comparisons: https://postgres.ai/compare.

Status of OtterTune: On June 3, 2024 OtterTune announced that it would shut down OtterTune and all related services on June 13, 2024, delete account data for subscribers and trial users that day, and refund the unused part of active subscriptions. ottertune.com now reads "OtterTune is Dead (2020-2024)". [2][1][3]

## Short answer

OtterTune was a SaaS service that used machine learning to tune PostgreSQL configuration knobs on Amazon RDS and Aurora, with health scores, index checks and query recommendations. It shut down on June 13, 2024, so it can no longer be bought or used. PostgresAI is a different kind of product: it monitors PostgreSQL, runs scheduled checkups and turns findings into Issues that you, your AI agent or a PostgresAI expert act on. PostgresAI reports settings findings as Issues; it does not change configuration automatically, as OtterTune did.

## What PostgresAI offers in its place

1. **The same checks wherever Postgres runs.**
   - PostgresAI: Amazon RDS and Aurora, Google Cloud SQL, Azure Database for PostgreSQL, Supabase, Tiger Data, self-managed servers and Postgres running on Kubernetes. ([PostgresAI monitoring overview](https://postgres.ai/docs/monitoring))
   - OtterTune: OtterTune supported PostgreSQL only on Amazon RDS and Aurora, and its home page offered a waitlist to users on other environments. The service shut down on June 13, 2024. [4][8][2]
2. **Open source, no licence fee to self-host.**
   - PostgresAI: The monitoring software is open source under Apache 2.0, so self-hosting it carries no licence fee. ([postgresai repository](https://gitlab.com/postgres-ai/postgresai), [How much does it cost?](https://postgres.ai/docs/questions-and-answers))
   - OtterTune: The OtterTune agent was open source under Apache 2.0 and its repository is archived. The tuning service was sold at $220 a month per database, and the sources we reviewed do not describe self-hosting it. [10][5][6]
3. **Wait events with no extra extension.**
   - PostgresAI: An ASH-style wait event dashboard built from samples of pg_stat_activity. No extra extension is needed. ([Wait event analysis dashboard](https://postgres.ai/docs/monitoring/dashboards/wait-events))
   - OtterTune: OtterTune collected knobs and runtime metrics every minute, and table, index and schema metrics and query digests every hour. The sources we reviewed do not describe wait event analysis. [8]

## Check it on your own database

```
npx postgresai@latest checkup postgresql://user@host:5432/db --no-upload
```

The express checkup works with PostgreSQL 14 or newer. With --no-upload it needs no account and sends no report data to PostgresAI. It needs Node.js 18 or newer and a database role with pg_monitor. Compare what it finds with what your current tool shows for the same database.

- [Live demo (login demo, password demo)](https://demo.postgres.ai)
- [Checkup command reference](https://postgres.ai/docs/reference-guides/postgresai-cli-reference#command-checkup)

## Side by side

| | PostgresAI | OtterTune |
|---|---|---|
| What it is | PostgreSQL monitoring with scheduled health checkups. Findings become Issues with severity, evidence and a recommended fix, which you, your AI agent or a PostgresAI expert can act on. | A database configuration tuning and monitoring service, now shut down. An agent in your environment sent knobs and runtime metrics to OtterTune, whose ML engine generated new configurations; it also gave health scores, index checks and query recommendations. [6][4][2] |
| Where your Postgres can run, and which versions | Any provider: yes. Amazon RDS and Aurora, Google Cloud SQL, Azure Database for PostgreSQL, Supabase, Tiger Data, self-managed servers and Postgres running on Kubernetes. PostgreSQL 14 and newer, with the pg_stat_statements extension. | Any provider: partly. Amazon RDS and Aurora only. As of March 2022 the docs listed Amazon RDS for PostgreSQL 10 to 14, Aurora PostgreSQL 10 to 13 and Aurora Serverless PostgreSQL 13 and 14. The home page offered a waitlist to users not on Aurora or RDS, and setup needed IAM roles in your AWS account. [8][4] |
| Where it runs and what it collects | Self-hosted option: yes. Hosted by PostgresAI, or self-hosted in your own cloud account or on your own server. It collects database metadata such as statistics, normalized query texts and wait events, not table data or query parameters. | Self-hosted option: not documented. A hosted service, with the agent deployed in your environment. It collected knobs and runtime metrics every minute, and table, index and schema metrics and normalized query digests every hour, not table data. The sources we reviewed do not describe self-hosting the service. [6][7][8] |
| Open source | Yes. The monitoring software is open source under Apache 2.0. Hosted plans are a separate paid service. | Partly. The agent was open source under Apache 2.0 (repository now archived). The original CMU research prototype is public under the Business Source License 1.1. The sources we reviewed do not describe the commercial service as open source. [10][11][7] |
| Query performance analysis | Query analysis: yes. Top queries from pg_stat_statements by calls, execution time, planning time and rows, with a drill-down dashboard for a single query. For execution plans, Joe runs EXPLAIN on a DBLab clone. | Query analysis: preview. Query recommendations based on query digests and summary statistics. The home page in March 2024 labelled query recommendations "Queries (Beta)". [4][6][5] |
| Wait event analysis | Wait events: yes. An ASH-style wait event dashboard built from samples of pg_stat_activity. No extra extension is needed. | Not documented in the sources we reviewed. The documented data was knobs, runtime metrics, table and index metrics, schema and query digests. [8][6] |
| Health checks and recommendations | Health checks: yes. Scheduled checkup reports on settings, autovacuum and bloat, and indexes (invalid, unused, redundant). Each finding becomes an Issue with severity, evidence and a specific fix. | Health checks: yes. Health scores for databases, tables, indexes and queries, unused and duplicate index detection, and autovacuum checks for PostgreSQL. Knob recommendations could be applied automatically or reviewed first. [5][4] |
| AI and agent access | Agent access: yes. The postgresai CLI (alias pgai) and an MCP server with tools for Issues, action items and checkup reports. The setup guide covers Cursor, Claude Code, Windsurf and Codex. | Agent access: partly. API access was listed on the Standard plan, and a Slack app posted when a configuration was ready or applied. The sources we reviewed do not describe an MCP server or AI agent interface. [5][9] |
| Testing a fix before production | Test on a copy: yes. With DBLab Engine, a separate open-source product: a full-size thin clone of the database in seconds, where an index or query change can be run on real data. DBLab is set up and priced separately. | Not documented in the sources we reviewed. A manual review mode let a person approve a new configuration before OtterTune applied it to the database. [4][9] |
| Human PostgreSQL experts | Human experts: yes. Scale includes two expert requests a month, answered within 24 business hours. Either plan can buy a one-off pack of two requests for $500. Consulting is separate. | Human experts: partly. The Standard plan included customer support via Slack, email, chat and video calls; Enterprise added a dedicated onboarding representative. The sources we reviewed do not describe PostgreSQL consulting. [5] |
| Alerts | Email and Slack alerts on Starter and Scale. | A Slack app sent "Tuning Disabled", "Configuration Applied" and "Configuration Ready" notifications. The sources we reviewed do not describe other alert channels. [9] |
| History kept | 14 days on Starter, 13 months on Scale, custom on Enterprise. | The home page said charts covered custom time ranges "with no caps on historical data". All account data was deleted on June 13, 2024. [4][2] |
| Security attestations | SOC 2 Type 2 examination completed for the Security and Availability criteria, covering March 4 to June 4, 2026. The SOC 3 report is public. | OtterTune announced in November 2022 that it had completed a SOC 2 Type II audit, and the 2024 pricing page listed SOC 2 compliance. [12][5] |

## What OtterTune was chosen for

- OtterTune is no longer available: the service shut down on June 13, 2024 and account data was deleted that day. This page records what it did for people who used it or are looking for a replacement.
- It tuned 100+ configuration knobs with machine learning toward a target you chose, such as query latency, throughput or CPU utilization.
- It could apply the recommended knob settings itself, with or without human approval, on a tuning schedule you set down to the day and minute.
- Its open-source agent ran in your own environment (Fargate via CloudFormation, Docker, Kubernetes or Helm) and connected to the database from there.

## Pricing

| Product | Plan | List price | Notes |
|---|---|---|---|
| PostgresAI | Starter | $16 per cluster/month | Primary only, 14-day retention, no expert requests included |
| PostgresAI | Scale | $512 per cluster/month | Primary and up to 5 replicas in one cluster, 13-month retention, Grafana dashboards, 2 expert requests a month |
| PostgresAI | Enterprise | Custom | Contact sales |
| PostgresAI | Self-hosted | No licence fee | Open source under Apache 2.0; you run it yourself |
| OtterTune | Standard (2024, no longer sold) | $220/month per database | 30-day free trial for up to three databases, no credit card; 25% off on yearly billing [5] |
| OtterTune | Enterprise (2024, no longer sold) | Custom | Volume and term discounts, Amazon S3 bucket support, dedicated onboarding representative [5] |

PostgresAI prices: https://postgres.ai/pricing. Prices are from the archived pricing page of February 2024. The service shut down on June 13, 2024; active subscribers received prorated refunds.

## Questions

### What happened to OtterTune?

On June 3, 2024 the OtterTune team announced that OtterTune and all its related services would shut down on June 13, 2024, with account data deleted that day and prorated refunds for active subscribers. Co-founder Andy Pavlo wrote that he, Dana Van Aken and Bohan Zhang worked on the research project and startup for almost a decade. [2][3]

### Can I still use OtterTune?

No. The service was shut down on June 13, 2024, and ottertune.com now shows only a notice that the company is dead. The agent repository on GitHub is archived. [1][2][10]

### What did OtterTune do?

It used machine learning to tune PostgreSQL configuration knobs on Amazon RDS and Aurora toward a target such as latency, throughput or CPU use, and could apply the new settings automatically or after review. It also gave health scores, unused and duplicate index detection, autovacuum checks and query recommendations. [4][5][6]

### Is OtterTune open source?

The sources we reviewed do not describe the commercial service as open source. Its agent is public under Apache 2.0 in an archived repository, and the original Carnegie Mellon research prototype is public under the Business Source License 1.1. [10][11]

### Does PostgresAI tune configuration like OtterTune did?

PostgresAI checkups report on settings, autovacuum and bloat, and indexes, and each finding becomes an Issue with a specific fix for you, your AI agent or a PostgresAI expert. It does not change configuration automatically, as OtterTune did.

## Sources for PostgresAI

- [PostgresAI monitoring overview](https://postgres.ai/docs/monitoring)
- [postgresai repository](https://gitlab.com/postgres-ai/postgresai)
- [How much does it cost?](https://postgres.ai/docs/questions-and-answers)
- [Wait event analysis dashboard](https://postgres.ai/docs/monitoring/dashboards/wait-events)
- [Monitoring quick start](https://postgres.ai/docs/monitoring/getting-started)
- [Data privacy: metadata only](https://postgres.ai/docs/monitoring#data-privacy-metadata-only)
- [Query performance analysis dashboard](https://postgres.ai/docs/monitoring/dashboards/query-analysis)
- [Joe bot](https://postgres.ai/docs/joe-bot)
- [Checkup reports](https://postgres.ai/docs/checkup)
- [How to work with Issues](https://postgres.ai/docs/postgresai-howtos/how-to-work-with-issues)
- [How to install MCP for AI coding tools](https://postgres.ai/docs/postgresai-howtos/how-to-install-mcp)
- [PostgresAI CLI reference](https://postgres.ai/docs/reference-guides/postgresai-cli-reference)
- [DBLab Engine](https://postgres.ai/docs/database-lab)
- [DBLab compared with other ways to branch](https://postgres.ai/compare#branching)
- [Pricing](https://postgres.ai/pricing)
- [Postgres consulting](https://postgres.ai/consulting)
- [Security and compliance](https://postgres.ai/security)

## Sources for OtterTune

1. [ottertune.com today](https://ottertune.com/)
2. [OtterTune blog: OtterTune officially shutting down services (June 3, 2024, archived)](https://web.archive.org/web/20240603223742/https://ottertune.com/blog/ottertune-officially-shutting-down-services)
3. [Andy Pavlo: 2024 databases retrospective (CMU blog)](https://www.cs.cmu.edu/~pavlo/blog/2025/01/2024-databases-retrospective.html)
4. [OtterTune home page (March 2024, archived)](https://web.archive.org/web/20240318041010/https://ottertune.com/)
5. [OtterTune plans and pricing (February 2024, archived)](https://web.archive.org/web/20240229173050/https://ottertune.com/pricing)
6. [OtterTune docs: how OtterTune works (archived)](https://web.archive.org/web/20230601022614/https://docs.ottertune.com/documentation/how-ottertune-works)
7. [OtterTune docs: agent setup (archived)](https://web.archive.org/web/20230601031045/https://docs.ottertune.com/documentation/getting-started/connect-your-database/agent-setup)
8. [OtterTune docs: frequently asked questions (archived)](https://web.archive.org/web/20230601020053/https://docs.ottertune.com/additional-info/frequently-asked-questions)
9. [OtterTune docs: Slack integration (archived)](https://web.archive.org/web/20230601011825/https://docs.ottertune.com/documentation/slack-integration)
10. [OtterTune agent repository (archived)](https://github.com/ottertune/ot-agent)
11. [OtterTune research prototype repository (CMU, archived)](https://github.com/cmu-db/ottertune)
12. [OtterTune blog: we got our SOC 2 Type II report (archived)](https://web.archive.org/web/20230602213646/https://ottertune.com/blog/we-got-our-soc-2-type-ii-report/)

## How we compare

These pages compare what each product does for PostgreSQL; other databases and the rest of the stack are out of scope. What we say about the other product comes from its own documentation, pricing page, changelog or source repository, read on the date shown; each row cites its source. "Not documented" means we did not find it in those sources, not that the product cannot do it. Prices are list prices and the billing units differ, so they are not a total-cost comparison. Product names are trademarks of their owners.
