PostgreSQL 12 and later

PostgreSQL client for Mac with AI and admin tools

Query and edit Postgres in a native macOS app, check sessions, locks and slow queries in Admin, and ask AI that knows your schema.

Download on App Store

A native Postgres client, with AI built in

TableAI is a native macOS database client for PostgreSQL 12 and later. Download it from the Mac App Store and it is free to try with every feature. It has a SQL editor, a data grid that stays responsive with many thousands of rows, a structure editor, import and export, and an Admin section for sessions, locks, slow queries and storage.

On top of the client sit three AI tools: a chat that writes and explains PostgreSQL for your schema, a database agent that answers questions with read-only queries and hands you any change as SQL to review, and AI Database Analysis, which reports on the health of the database from the statistics you select. They use your own key from the provider you choose. Everything works without AI, too.

Supported versions
PostgreSQL 12 and later, tested on 12, 16 and 17
Connect
Local, Docker or cloud; SSH tunnels, SSL/TLS, connection URLs
Runs on
macOS 14 or later, Apple silicon and Intel
AI providers
OpenAI, Anthropic, DeepSeek, Alibaba, OpenRouter (your own key)
Price
Free to try, with every feature
Install
Mac App Store

Made for how you work in Postgres

Schemas, column types and server statistics appear the way PostgreSQL defines them, from the database itself.

  • Schemas, views, functions and triggers

    The Tables sidebar lists every schema with its tables, views, routines and triggers. Search it, expand a table to see its columns, keys and indexes, and open tables in tabs.

    Browse a database
  • JSONB and arrays as a tree

    Open a json, jsonb or array value in Quick Edit and change it in a tree. TableAI edits only the value you touch, so key order and formatting stay as they were.

    PostgreSQL data types
  • Edits you review before they run

    Grid edits, new rows and deletions stay on your Mac until you click Apply, and Preview SQL shows the statements first. NULL, DEFAULT and empty text stay distinct.

    Edit data safely
  • Slow queries, locks and sessions

    Admin shows statement statistics from pg_stat_statements, blocked and blocking sessions, and index usage. End a session or drop an unused index; these actions follow the connection’s query guardrails.

    Find slow queries
  • Table sizes, VACUUM and ANALYZE

    Storage lists table and index sizes with maintenance statistics. Run Vacuum, Vacuum & Analyze or Analyze on a table from the same screen, with the SQL shown first.

    Storage and maintenance
  • AI chat, a read-only agent and health reports

    AI chat writes, explains and fixes SQL for your schema. The agent investigates with read-only queries, and AI Database Analysis turns slow-query, index and settings statistics into a report with its evidence. Table rows are not sent for the report.

    AI Database Analysis

Connect to Postgres wherever it runs

On your Mac, in Docker or on a hosted service. Connect over SSH tunnels and SSL/TLS, or paste a connection URL.

Step-by-step guides for

  • Amazon RDS
  • Aurora
  • Cloud SQL
  • Azure
  • Supabase
  • Neon
  • Heroku
  • PostgreSQL
  • MySQL
  • MariaDB
  • SQLite
  • SQL Server
  • Amazon Redshift

Know why your database is slow

Connections, slow queries, locks and storage in one native window. AI Analysis tells you what to fix first, with the SQL.

Everything you expect from a database client

Work with data

  • Fast data grid

    Stays smooth with many thousands of rows.

  • SQL autocomplete

    Suggests tables, columns and keywords as you type.

  • Edit data safely

    Change, add and delete rows. Nothing is saved until you click Apply.

  • JSON tree editor

    Expand, edit and move nested values without touching raw text.

Tables and trust

  • Edit table structure

    Columns, keys and indexes, with the SQL shown first.

  • Import and export

    CSV, JSON, NDJSON and SQL, with a review before import.

  • Query guardrails

    Changes to data or schema can wait for your approval.

  • Query history

    Search every query that ran, including the AI agent’s.

Safely distributed through the App Store

The Mac App Store is the safest place to get Mac apps, because App Store team reviews every app before you can install it. That’s why TableAI is available only there.

Download on the App Store
  • App Store reviewed

    Apple reviews every version before it reaches the store.

  • Code-signed and verified

    macOS checks the signature, so you know the app wasn’t changed.

  • Sandboxed by macOS

    TableAI can open only the files you choose.

Start in three steps

  1. Install TableAI

    Download it from the Mac App Store. Apple reviews every version, and updates arrive through the App Store.

    Download on the App Store
  2. Add your PostgreSQL connection

    Choose File › New Connection, select PostgreSQL, and enter the host or paste a connection URL. Add an SSH tunnel or SSL certificates if your server needs them.

    Connection basics
  3. Browse and run SQL

    Open a table from the sidebar or write a query in the SQL editor. Edits wait in the grid until you click Apply.

    Quickstart

Nothing sits between you and your data

Direct connection

TableAI connects from your Mac directly to your database, whether it's local, behind a VPN or in the cloud. No TableAI server or proxy ever sees your queries or results.

Encrypted and verified

Connect over SSL/TLS or an SSH tunnel. TableAI checks SSH host keys before it connects, and your passwords and keys are stored in the macOS Keychain.

Bring your own key

Use your own API key from OpenAI, Anthropic, OpenRouter, DeepSeek or Alibaba. Requests go straight to that provider, and you choose what context the AI sees.

TableAI App

Running on your Mac

Direct SQL queries
Chosen LLM context

Your DB

Direct, over SSL or SSH

Your LLM provider

HTTPS, with your API key

PostgreSQL client for Mac: questions

Yes, for one saved connection. The free plan includes every feature, including the AI tools, with no time limit. A paid plan adds unlimited saved connections and costs $12.99 to $49.99 a year, depending on your country; monthly and lifetime options are also available.

PostgreSQL 12 and later. TableAI is tested against PostgreSQL 12, 16 and 17.

Yes. TableAI connects to PostgreSQL on Amazon RDS and Aurora, Google Cloud SQL, Azure, Supabase, Neon and Heroku, with SSL/TLS certificates and SSH tunnels when the server requires them. The docs have a connection guide for each of these hosts.

TableAI is available only on the Mac App Store, so there is no Homebrew cask or separate download. Open the App Store page, click Get, and TableAI installs like any other Mac app. It needs macOS 14 or later and runs on Apple silicon and Intel Macs. Updates come through the App Store.

No. TableAI is a client: it connects to a PostgreSQL server you already run on your Mac, in Docker or on a hosted service. To connect to a local server, use 127.0.0.1 and the server’s TCP port. Connect to local PostgreSQL.

Admin shows sessions, blocking locks, statement statistics from pg_stat_statements, table and index sizes, index usage, the schema and server settings. You can end a session, drop an unused index, or run Vacuum, Vacuum & Analyze or Analyze on a table. These actions follow the connection’s Query Protection mode. Database admin tools in TableAI.

You choose an analysis type (Database Health Check, Performance Audit, Storage Analysis, Index Optimization or a custom question) and the evidence to include. The model you chose writes a report whose recommendations cite that evidence. The report does not include table rows, and literal values are removed from the workload SQL. Create an AI Database Analysis report.

Not by itself. The agent runs only read-only SQL, and the app enforces that. It gives writes, schema changes and permission changes back to you as SQL to review. When you run that SQL, your connection’s Query Protection mode applies. How the database agent works.

No. Browsing, querying, editing data, changing tables, import and export, and the Admin section all work without an AI provider. To use AI chat, the database agent or AI Database Analysis, add your own key from OpenAI, Anthropic, DeepSeek, Alibaba or OpenRouter in Settings › Intelligence.

TableAI connects directly from your Mac to your database, with no TableAI server or proxy in between. Passwords and SSH secrets are stored in the macOS Keychain. The app has no telemetry, analytics or third-party SDKs. AI requests go straight to the provider you set up, with your own key, and only with the context you choose.

Our comparison of six PostgreSQL GUIs for Mac (TableAI, DataGrip, TablePlus, DBeaver, Beekeeper Studio and Postico 2) lists prices, supported databases and screenshots. Read the PostgreSQL GUI comparison.

Download your new favorite database client

Everything you need to query, explore, and manage your databases in one powerful macOS app.

Download for free on theMac App Store