Native Mac app for six SQL databases
AI SQL client for Mac
TableAI is a native macOS database client with AI that knows your schema. Ask your database questions in plain English.
Download on App StoreQuestions you can ask your database
Ask about your data or about the server itself. Pick a question to watch TableAI answer it.
Agent mode. Checks your database with read-only queries and shows each one. Anything that changes data comes back as SQL for you to run.Chat mode. Writes SQL from your schema without touching the database. The query runs when you click Run.
The AI tools in TableAI
Each tool has one job and one rule for what it may run on your database.
AI chat
Writes, explains and fixes SQL for your schema. You choose the context it gets: Database Schema, SQL Editor Content and Number of Rows, plus any rows you attach.
How AI works in TableAIThe database agent
Agent mode searches the schema, runs read-only queries, reads EXPLAIN plans and starts a research step for questions that need several checks. You see each step as it runs.
The database agentIterate with AI in the editor
Press ⌘K in the SQL editor and describe a change. TableAI rewrites the statement under the cursor in place and never runs it; ⌘Z restores the original.
The AI SQL editorExplain with AI
Sends one query and its plan to your model and explains it in the chat. TableAI starts with plain EXPLAIN and runs EXPLAIN ANALYZE only when you confirm.
Explain a query planAI Database Analysis
A report on the health of a database: Database Health Check, Performance Audit, Storage Analysis, Index Optimization or Custom Analysis. It never sends table rows.
AI Database AnalysisQuery guardrails
Each connection has a Query Protection mode. Safe Mode runs read-only SQL and asks before anything that changes data or schema, including SQL the AI wrote.
Query guardrails
How to use AI on a production database
AI writes drafts. These habits keep you in charge of what runs.
Prepare a production connectionRead the SQL before you run it
A query with a wrong join or a missing filter still returns rows. Check the joins and the WHERE clause, and compare a count with a number you already know.
Give the model your schema
With Database Schema on, the model gets your table and column names, keys and comments, so it doesn’t guess them. Column comments that explain business terms help it choose.
Turn on Safe Mode
Read-only SQL runs as usual, and anything that changes data or schema waits for your approval. Confirm All asks before every query, reads included.
Connect with a read-only user
Database permissions are the last line. A read-only account for investigations means no SQL from this connection can change data.
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.
What your AI provider receives
Each AI tool sends only what its job needs, straight from your Mac to the provider you set up. You choose the chat context, and by default the agent asks before its first automatic preview of results.
- Chat mode
- Your message, recent messages and the context you turn on: schema, the SQL in the editor and grid row counts. No table rows unless you attach them.
- Agent mode
- The chat context, plus the SQL it runs, limited result rows (50 by default), EXPLAIN plans and database errors.
- Explain with AI
- The query and its EXPLAIN plan, with schema and earlier questions from the chat.
- AI Database Analysis
- The metadata you select: schema, table and index statistics, server settings, slow-query statistics. Never table rows; literal values are removed from query text.
- Your Mac connects straight to the database and to your AI provider. No TableAI server sits in between.
- Database passwords, SSH secrets and AI keys are stored in the macOS Keychain.
- No telemetry, analytics or third-party SDKs.
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 StoreApp 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
Install TableAI
Download it from the Mac App Store. Apple reviews every version, and updates arrive through the App Store.
Download on the App StoreConnect your database
Choose File › New Connection, pick the database type, and enter the host or paste a connection URL. Add an SSH tunnel or SSL certificates if the server needs them.
Connection basicsAdd your AI key
Open Settings › Intelligence, choose OpenAI, Anthropic, DeepSeek, Alibaba or OpenRouter, paste your API key and turn on the models you want.
Set up AI
AI SQL client for Mac: questions
An AI SQL client for Mac is a database client with an AI model built in that knows your schema. TableAI is a native macOS AI SQL client for PostgreSQL, MySQL, MariaDB, SQLite, SQL Server and Amazon Redshift, with AI chat, a database agent and AI Database Analysis.
Yes. In Chat mode you describe what you need and TableAI writes SQL using your schema as context. The SQL appears in the chat for you to read; it runs only when you click Run, and you can open it in the SQL editor to change it first. More about the AI SQL generator.
PostgreSQL 12 and later, MySQL 5.7 and later, MariaDB 11.4 and later, SQL Server 2019 and later, SQLite 3 and Amazon Redshift. It connects to local, Docker and cloud databases, over SSH tunnels and SSL/TLS.
Only read-only ones, and only in Agent mode. The app enforces this; it doesn’t rely on the model following instructions. Writes, schema changes, permission changes and admin SQL come back as SQL for you to review, and your connection’s Query Protection mode applies when you run it.
It depends on how you set it up. Use a read-only database user where you can, turn on Safe Mode for the connection, read generated SQL before running it, and decide which context the chat sends. The agent’s read-only rule is enforced by the app. Production database checklist.
OpenAI, Anthropic, DeepSeek, Alibaba and OpenRouter. You add your own API key in Settings › Intelligence and choose which of the provider’s models appear in TableAI. Requests go straight to that provider, and it bills you for them. How to keep AI costs down.
No. TableAI has no telemetry, no analytics and no third-party SDKs that collect data. It connects only to your databases, the AI provider you choose and Apple services.
TableAI sends your real schema with each question, so the SQL uses your table and column names, and you run it in the same window and read the result in the grid. In Agent mode it also checks the data with read-only queries before it answers.
It helps. You can ask in plain English, but reading the generated SQL is how you check that it answers the question you asked. The best use is to let AI draft and explain queries while you review them.
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.
