Skip to content
SQLsaber terminal demo showing natural language query

SQLsaber: AI SQL Assistant for Natural Language Database Queries

Ask questions in plain English. SQLsaber reads your schema, writes SQL, runs it securely, and explains the results.

What SQLsaber does

Schema-aware queries

Automatically introspects your database structure. No manual schema documentation needed.

Safe execution

Read-only by default. SQLsaber won’t modify, delete, or alter your data.

Memory + knowledge

Teach it your database quirks: “dates are Unix timestamps”, “user_id references accounts.id”, and reusable KPI/query definitions with saber knowledge add.

Conversation threads

Resume past conversations. Ask follow-up questions without repeating context.

Works with your stack

  • Databases: PostgreSQL, MySQL, SQLite, DuckDB, CSV files

  • AI providers: Anthropic, OpenAI, Google, and others

  • Interface: Interactive REPL or single-shot CLI queries

  • Composable: Pipe queries, redirect output, use in scripts

Get started in 2 commands

Terminal window
# Install
uv tool install sqlsaber
# Run (walks you through setup on first launch)
saber