OptiHouse:~/clickhouse-cost-optimizer
Sign inGet started
ClickHouse cost optimizer · early access

Stop paying for queriesyou never fixed.

Your ClickHouse bill creeps up every month — runaway queries scanning billions of rows, parts piling up, storage nobody set a TTL on. OptiHouse connects read-only, finds exactly what's burning compute and disk, and writes the optimized SQL for you. No agents, no code changes, no risk.

$pip install optihousetest it locally — no signup, no cluster
Read-only credentials 0 writes to your cluster Metadata only — never your row data Works on ClickHouse 22.x–26.x
optihouse — analytics-prod
scan.outparts.sql
Connected · analytics-prod (read-only)
→ scanning system.query_log · system.parts · system.replicas …
HIGHFINAL on every read · orders$4,200/mo
HIGHMissing PREWHERE · api_logs$3,100/mo
MEDWeak codec · events.payload$1,800/mo
MEDZombie MV · mv_daily_rollup$1,150/mo
5 min · 312 unused tables · $14,800/mo reclaimable

Illustration of one scan — OptiHouse runs it for you inside the dashboard. No CLI, nothing to install.

//Live optimizer · no signup

Paste a query. See the fixes.

Every Wave 1–7 rule fires instantly against your SQL — anti-patterns, PREWHERE, FINAL, JOIN algorithm, projections, skipping indexes. We never run your query — only analyse the text.

Live SQL audit · no signup
Paste any ClickHouse SELECT — every Wave 1–7 rule fires instantly.
11 rules · 0 signups
Click Analyze SQL to run all rules. Edit the workload knobs above — bigger numbers fire MV / PROJECTION / PREWHERE / Skipping-Index recommendations.
Liked that? Get the full audit — across every table.
Connect read-only and we'll rank every fix by dollar impact, with the exact SQL to apply it.
Start free — no card
//Run it locally · pip

Don't want to connect a cluster yet? Run it on yours.

Install the CLI and scan your own ClickHouse from your machine — read-only, nothing leaves your network. See exactly where the money is before you ever sign up.

bash — your laptop
# Try instantly — bundled demo
$pip install optihouse
$optihouse scan --demo
# Or scan your own cluster (read-only)
$optihouse scan --host db.internal --user readonly --password '***'
13 opportunities · 4.3 TB · read-only
HIGHMissing PREWHERE · events$5,893/mo
MEDFINAL on read · sessions$1,168/mo
HIGHCold data · events_archive$114/mo
~$7,287/mo reclaimable · fixes locked
Read-only against system.* — no writes, no agents, your data never leaves the host.
Works offline on a bundled demo cluster (optihouse scan --demo), or point it at your own.
Every finding shows its $ impact. The ready-to-apply SQL fixes unlock with a free account.

pip install optihouse · MIT · prefer a UI? the same analysis runs here in the browser.

//See it in action

Real findings, ranked — not a wall of metrics

Every scan returns prioritized fixes with the exact SQL and estimated impact. Here's what the Recommendations screen looks like.

optihouse.io/recommendations
Recommendations

Illustrative example data — your results depend on your cluster.

Reclaimable spend
20–40%typical · compute + storage
Hot-query speedup
10×up to, after fixes
Time to first finding
<5minutes
//The impact

Less data scanned. Lower bills. Faster queries.

What changes once OptiHouse ranks every fix by its dollar impact.

Chart: 71% fewer bytes scanned per query after fixes
Chart: 20 to 40 percent of storage is reclaimable
Chart: fixes ranked by dollar impact
~/get-the-deck
$ optihouse send-deck --to you@company.com

Get the project deck

Leave your email and we'll send you the OptiHouse deck — how it finds wasted ClickHouse spend and how much it saves.

No spam. Just the deck — and answers to your questions if you want them.

//ROI calculator

How much could you reclaim?

Most ClickHouse clusters have 20–40% of spend tied up in waste. Try your number.

$15,000 / month
$1k$100k+
Typically reclaimable
$3,000$6,000 / month
Find my exact savings

Estimate based on a typical 20–40% reclaimable range. Your result depends on your cluster.

//How it works

From connection to first fix in 3 steps

~/step-01
$ optihouse connect --read-only

Connect read-only

Add a ClickHouse host with a read-only user. Optional SSH bastion for VPC-locked clusters.

~/step-02
$ optihouse scan

Auto-scan in 5 min

We collect query_log, system.parts, system.replicas. No agents on your boxes — pull-only.

~/step-03
$ optihouse apply

Apply ranked fixes

Each finding ships with exact SQL, expected impact in dollars and a confidence score.

//Platform

Everything you need to optimize ClickHouse

From the first scan to the last optimization — every tool a data engineer needs in one place.

antipattern.sql

Anti-pattern detector

Catches SELECT *, missing WHERE, function-on-partition-key, repeated heavy aggregations — and more silent killers.

storage.sql

Storage & parts map

Per-table size, part fragmentation, tiny-parts and tables nobody has read in 90+ days — the exact GB you can reclaim today.

codec.sql

Per-column codec advisor

Finds poorly-compressed columns and hands you the exact ALTER … CODEC to shrink them 2–5×.

anomaly.sql

Anomaly detection

Compares every scan — spots queries that suddenly read 10× more bytes or run 5× longer than before.

rewrite.sql

Auto-rewritten SQL

Paste any query — get a before/after with the exact partition-friendly version, ready to copy.

health.sql

Cluster health

Replicas, mutations, merges and disk capacity at a glance, with days-until-full forecasts on every disk.

//Built for every role

One platform, five jobs solved.

Whether you're paged at 3am or you sign the cloud bill — OptiHouse surfaces the right signal for your role, not a wall of metrics.

$data-engineer

Stop digging through system.* at 3am.

Auto-generated runbooks for stuck mutations, merge backlog, replica imbalance. Every recommendation ships with diagnostic SQL — ready to paste.

  • +Auto-runbooks for every finding
  • +Merge debt + insert pressure early warning
  • +Replica imbalance + disk capacity forecast
$cto

Know who's spending what. Predict next quarter.

Per-team chargeback for ClickHouse compute, weekly Slack digest with $-savings impact, upgrade-readiness risk before you bump versions.

  • +Cost attribution per team / service
  • +Weekly Slack digest with $ delta
  • +Upgrade readiness scoring
$data-architect

See every wasted byte in your schema.

Per-column codec audit, zombie MV detection, projection advisor, PK alignment vs real WHERE patterns. Schema intelligence that knows ClickHouse internals.

  • +Per-column codec advisor
  • +Zombie MV + LowCardinality / skipping index
  • +Projection advisor + PK reorder
$analytics-engineer

dbt-native ClickHouse optimisation.

Drop your manifest.json → every recommendation deep-links back to the dbt model. The PR bot posts inline lint findings on every SQL change before it ships.

  • +dbt model → ClickHouse table mapping
  • +GitHub / GitLab PR bot for SQL changes
  • +Query fingerprint drift on model output
$finops

Per-query chargeback, accurate to the cent.

Cold-data-tier savings, a pre-flight cost estimator before queries run, plus a Prometheus + OpenTelemetry exporter so OptiHouse plugs into your existing dashboards.

  • +Cold data tier + TTL preview
  • +Pre-flight cost API
  • +Prometheus / OTel metrics exporter
40
advisors shipped
across 10 delivery waves
22.x → 26.x
ClickHouse versions
self-hosted · ClickHouse Cloud · Altinity
0
writes to your cluster
read-only credentials, every scan
5 min
to first finding
from connection to ranked recs
Why we built this
Built in public · early access

We're a small team that ran ClickHouse in production for years and got tired of writing the same diagnostic SQL at 3am. OptiHouse is the tool we wished we had.

“Every ClickHouse cluster I'd ever run had the same hidden taxes — zombie MVs, FINAL on every read, partitioning that never pruned, codecs nobody picked. The tools at the time would tell you something was off; none of them told you what to do next. So we built one that does.”
— founding team · OptiHouse
Running ClickHouse in production? Become a launch partner → free Team-tier for early users who'll share what worked.
//Pricing

Start with a trial. Pay when it pays for itself.

Every plan includes the SQL Optimizer, the core advisors and read-only access. You upgrade only when you need more clusters or enterprise controls.

Trial

$014 days

The full Team feature set, free for 14 days.

  • 1 cluster · 3 members
  • 14-day history
  • All core advisors (Wave 1–7)
  • Realtime Slack / PagerDuty alerts
  • dbt + GitHub PR bot, auto-apply rewrites
Start free trial

Starter

$299/ month

For a single team running one or two clusters.

  • 2 clusters · unlimited members
  • 30-day history
  • All core advisors (Wave 1–7)
  • Schema lint + email digests
  • Anonymous SQL Optimizer
Choose Starter
Most popular

Team

$899/ month

For growing data orgs running multiple clusters.

  • 10 clusters · unlimited members
  • 90-day history
  • Realtime alerts — Slack / PagerDuty / Opsgenie
  • dbt integration + GitHub / GitLab PR bot
  • Auto-apply SQL rewrites
  • Anomaly detection + capacity forecast
Start 14-day trial

Business

Custom

Regulated, multi-cloud, audit-grade.

  • Unlimited clusters & members
  • Unlimited history
  • Audit log + SOC 2 readiness
  • SSO (SAML / OIDC) & RBAC
  • Self-hosted or VPC-isolated SaaS
  • Priority support & onboarding
Talk to sales
//FAQ

Frequently asked

>Will this slow down our cluster?
//No. We only read from system.* tables with read-only credentials, at low priority. A typical scan completes in under 5 minutes and uses less CPU than a single dashboard load.
>Do you store our data?
//We store metadata only — table names, sizes, query shapes, execution stats. Never row-level data. If you self-host, nothing leaves your network at all.
>What ClickHouse versions are supported?
//Anything from 22.x onward, including ClickHouse Cloud, Altinity and self-hosted (single-node or replicated). PostgreSQL / BigQuery / Snowflake are on the roadmap.
>Is the SQL Optimizer really free?
//Yes — paste any query at /optimize and get an instant audit, no signup. The full platform starts with a free 14-day trial.
>How is pricing calculated?
//Pricing is per organization, not per seat. The Trial is free for 14 days with the full Team feature set; after that Starter is $299/mo (2 clusters), Team is $899/mo (10 clusters, all advisors and realtime alerts), and Business is custom for SSO and self-hosted.

Find your first $1k savings in under 5 minutes.

Sign up, connect your cluster (read-only), and we'll surface the top fixes ranked by impact — with the SQL to apply them.