Works with your own database
Text to SQL tool for Mac
Ask a question in plain English. TableAI writes SQL for your schema, or answers it with read-only queries.
Download on App StoreText to SQL examples
Ask in plain English, about your data or the server. 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.
Three ways to turn text into SQL
They differ in what they may run on your database. None of them can change data on its own.
Agent mode answers with data
Searches the schema, runs read-only queries, reads EXPLAIN plans and starts a research step for questions that need several checks.
The database agentChat mode writes SQL
Answers from the context you choose without running anything. The query appears in the chat with a Run button.
How AI works in TableAIAsk AI in the data grid
Type a request over the table you are looking at, and the grid shows the result of a read-only query. It has its own model choice, separate from the chat.
What Ask AI sendsEvery step on screen
The agent’s timeline shows each check as it starts. Expand a step to read its SQL, results or error. Query history keeps every query, the agent’s included.
Follow an investigationRead-only, enforced by the app
The agent and Ask AI run only read-only SQL. Writes and schema changes come back as SQL for you to review, and Query Protection applies when you run them.
Query guardrailsYou decide what the agent may read
Preview Consent sets when the agent may preview results: Ask Once (the default), Always Allow, Always Ask or Never Preview.
Control previews
How Agent mode answers a question
The steps appear in the chat as they run, so you can stop the agent at any point.
Finds the tables
Searches the schema for the tables and columns the question is about, using names, keys and comments.
Runs read-only queries
Counts and previews rows to check its approach. Previews follow your Preview Consent setting and default to at most 50 rows.
Checks further when needed
For a question that needs several checks, it starts a research step in the same conversation.
Answers with the SQL it used
Writes the answer in the chat. Each step stays expandable, and its query is in history to run again.
What your AI provider receives
Each tool sends what it needs, straight from your Mac to the provider you set up. Only Agent mode sends query results on its own, and only within your preview limits.
- 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.
- Ask AI in the grid
- Your request, the loaded schema and the tab’s editor SQL. No grid values and no chat history.
- 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
Text to SQL tool: questions
A tool that turns a question in plain English into a SQL query. TableAI does it inside a native Mac database client, with your schema as context, and in Agent mode it also runs read-only queries to answer the question with your data.
It depends on the tool. Chat mode only writes SQL; it runs when you click Run. Agent mode and Ask AI in the grid run read-only SQL themselves. Nothing that changes data or schema runs without you.
No. The app enforces read-only execution for the agent, even on a connection with No Protection. It returns writes, schema changes and admin SQL as proposals for you to review.
PostgreSQL 12 and later, MySQL 5.7 and later, MariaDB 11.4 and later, SQL Server 2019 and later, SQLite 3 and Amazon Redshift.
Your question, the schema and the context you turn on. In Agent mode it also sees the SQL the agent runs and limited result rows, 50 by default. Ask AI in the grid sends the schema and editor SQL but no grid values. What AI sees, action by action.
Not to ask. Reading the SQL is how you check that the answer matches your question, and TableAI shows it for every step.
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.
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.
