The AI-native database client.

Ask about your data in plain words. sandb reads the schema, writes the SQL, and asks before it changes anything.

The sandb window: a connection tree on the left, a SQL query with its results grid in the middle, and the AI assistant on the right with the SQL it ran and a summary of the top customers.

Connects to your databases and to the model you choose

AI assistant

Ask about your data. Get a real answer.

The assistant writes the SQL, runs it, and shows each step. Open any step to see the query, put it in the editor, or run it again.

Reads the schema first
Before it queries a table, the assistant describes it. Then it runs read-only queries through a read guard.
Up to 8 databases in one chat
The databases can be on different connections. The assistant queries each one and compares the results.
Charts and reports
Ask for a bar, line, area, pie or scatter chart, or a full report with a summary, charts and tables.
Export a reply as PDF
The PDF keeps the text and the charts in the order of the chat.
The assistant panel: a reply with the SQL that ranks customers by total spend, a short summary of the results, and the message box in Read-only mode.

A full SQL client under the assistant.

Edit rows in the grid

Double-click a cell to edit it. Save applies all row changes in one transaction. The grid loads more rows as you scroll.

A results grid with the columns id, name, email, country and plan.

A clear connection tree

Tables, views and materialized views sit in separate folders, each with its count.

The connection tree: a PostgreSQL connection with the shop database, its public schema and nine tables.

Autocomplete that knows your tables

Columns complete in context. With two matching columns, the editor adds the alias.

select o.id, c.name
from orders o
join customers c
  on c.id = o.customer_id

Structure and ER diagram

Add or change columns, constraints, foreign keys and indexes. Each dialog shows the SQL before it runs.

Export what you need

  • CSV
  • DDL
  • SQL with data
  • PDF

Made for the keyboard

  • ⌘K Quick search for tables and saved queries
  • ⌘S Save the query with a name
  • ⌘↵ Run the query or the selected text
  • ⌘C Copy the selected rows and columns

Safe to point at production.

The assistant reads through a guard. A change to your data needs your click.

  1. Local, staging or production

    Give each connection its environment. On production, sandb asks you to confirm dangerous changes.

  2. Read-only connections

    Mark a connection as read-only when you only need to look at the data.

  3. You approve every AI write

    The approval card shows the SQL, the connection, the statement type and the approximate row count.

  4. Schema only privacy

    Send the model the column names and the row count, but no row values.

  5. Secrets stay encrypted

    Passwords and the API key are in an encrypted file. Its key is in the credential store of your system.

Your model. Your key. No sandb account.

Use OpenAI, Anthropic, or any server with the same API. In Settings, set the provider, the base URL, the model and the API key.

OpenAI-compatible

OpenAI

OpenAI, OpenRouter

base URL https://api.openai.com/v1

Anthropic-compatible

Anthropic

Anthropic

base URL https://api.anthropic.com/v1

Try sandb on your own database.

Builds for Apple Silicon and Intel Macs. sandb finds new versions and asks before it installs them.

Or build it from source with Rust and pnpm:

$ pnpm install
$ pnpm tauri build