Skip to content

What data TableAI sends to AI providers

Your AI provider receives your request and the database context for the action you use. This can include schema, SQL, conversation history and attached values. In Agent mode, it can also receive results from read-only database queries.

Requests travel directly from your Mac to the provider you configure in Settings › Intelligence, using your own API key. No TableAI server handles them. If you configure a proxy address, that proxy receives the requests.

Action Information sent to the provider
Chat mode Your message, recent conversation history and enabled context: schema, editor SQL and grid row counts. Requests also include the SQL dialect, available server version and extension details.
Attached data The selected values as CSV alongside your message. Attachments in recent messages can be sent again with follow-up questions.
Agent mode Chat context plus SQL used for database checks, limited result rows, EXPLAIN plans and database errors. Research can retrieve more schema details and inspect previous results.
Grid Ask AI Your request, the full loaded schema, active-tab editor SQL, SQL dialect, available server version and extension details. It excludes chat history, SQL from other tabs and grid result values.
Explain with AI The query SQL and its EXPLAIN plan. The conversation can also include schema and previous questions.
Admin › AI Analysis Selected metadata, including schema, table and index statistics, server settings, slow-query statistics and connection details. It excludes table rows and removes literal values from workload SQL.

Grid Ask AI can resolve supported simple expressions on your Mac when its local-query option is enabled. Those requests do not go to a provider.

Schema includes names, column types, keys, relationships and column comments. Review SQL, comments, plans and error messages as well as row values: they can contain confidential information.

  1. Open Settings › Chat.
  2. Under Context Information, select the information your questions need.
  3. Set Context Length to choose how many recent messages each request includes.
  4. Review your message and any attached data before sending.

All three context options start enabled:

Option What it adds
Database Schema Table and column definitions, keys, relationships, comments and available table row-count estimates.
SQL Editor Content SQL currently in the editor.
Number of rows Visible and total grid row counts, when available. It does not add cell values.

The chat input menu also provides these switches under Context Options.

Chat settings showing context switches and automatic database preview controls

These switches control ordinary chat context. Grid Ask AI sends schema and active editor SQL regardless of these settings. Research can access schema separately. Explain with AI and AI Analysis send the information for their own actions.

Remove an unsent attachment if its values must stay on your Mac. Removing it after sending does not remove it from earlier messages. Start a new chat to leave previous conversation content out of new requests; changing context settings cannot recall information already sent.

In Agent mode, the database agent can run read-only queries and send their results to your provider. Read-only protects against database changes; returned values can still be confidential. The agent can also send database errors while investigating or correcting SQL.

Open Settings › Chat › Database Tools › Preview Consent to choose when previews are allowed:

Choice What happens
Ask Once TableAI asks before the first automatic read-only preview and remembers your answer. This is the default.
Always Allow Previews run within their limits without a prompt.
Always Ask TableAI asks before each automatic read-only preview.
Never Preview The agent cannot automatically preview query results.

Previews default to at most 50 rows and 40 columns. Additional limits restrict the number of cells and the amount of text sent. Preview Rows adjusts the row limit up to 500. These limits reduce the amount shared; they do not anonymize values.

Switch to Chat mode to use chat without automatic database reads. Preview consent does not disable messages, schema context or attachments. The app enforces read-only execution for the agent; proposed database changes come back as SQL for you to review. See query guardrails for approval when you run that SQL.

The database agent can start a research step for questions that need several checks. Research receives schema, statistics, enabled editor context, attachment summaries and recent conversation history. It can also receive details of previous final results, including SQL, column names and row counts.

Stored preview rows are omitted from those initial result details. Research can later inspect stored rows from previous results without rerunning the original query. Values already included in messages or answers can also appear in conversation history.

Explain with AI sends the original SQL and plan, which can contain literal values and filter conditions. It starts with plain EXPLAIN. EXPLAIN ANALYZE runs only after you confirm it.

AI Database Analysis uses a separate set of evidence choices. Its report evidence excludes sample values, database-definition expressions, raw plan filters and server error text. Its diagnostic tools cannot retrieve application rows or execute arbitrary SQL from the model. Your own analysis request and follow-up messages still go to the provider.

Database connections run directly from your Mac to your database, with no TableAI server or proxy. TableAI has no telemetry, analytics, tracking or third-party services that collect usage data. Diagnostic logs remain on your Mac and are never sent anywhere. AI requests use the provider you set up; optional connection sync uses your iCloud account.

Database passwords, SSH secrets and provider keys are stored in macOS Keychain. Saved chats and query history stay on your Mac. See security and privacy for local records, logs and the in-app feedback form, or how AI works to set up chat.