Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

sqlbot

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sqlbot

Talk to your databases in natural language. AI-powered SQL assistant with support for PostgreSQL, MySQL, SQLite, and more.

Source
npmnpm
Version
0.0.53
Version published
Weekly downloads
54
8%
Maintainers
1
Weekly downloads
 
Created
Source

sqlbot ⚡

Talk to your databases in natural language. An AI-powered SQL assistant with support for PostgreSQL, MySQL, SQLite, and more.

Installation

Install sqlbot globally via npm:

npm install -g sqlbot

Usage

To start sqlbot, simply run:

sqlbot

This will start the local server and automatically open the application in your browser at http://localhost:1121.

CLI Options

OptionDescription
-p, --port <port>Port to listen on (default: 1121)
-H, --hostname <host>Hostname to bind to (default: 0.0.0.0)
--no-openDon't open browser automatically
-v, --versionShow version
-h, --helpShow help message

Example:

sqlbot --port 3005 --no-open

Configuration

1. AI Provider Setup

To use AI for SQL generation and chat, you need to configure an AI provider:

  • Open sqlbot in your browser.
  • Navigate to AI Providers (or visit /ai-providers).
  • Click Add Provider.
  • Choose between Google AI (Gemini), Groq, or OpenAI.
  • Enter your API key and save.
    • Google AI: Get keys from Google AI Studio.
    • Groq: Get keys from Groq Console.
    • OpenAI: Get keys from OpenAI Dashboard.
  • Restart sqlbot for the changes to take effect.

[!NOTE]
Your API keys are stored securely in ~/.sqlbot/ai-providers.json.

2. Database Connections

Connect your databases to start querying in natural language:

  • Navigate to Connections (or visit /connections).
  • Click Add Connection.
  • Select your database type (PostgreSQL, MySQL, SQLite, etc.) and enter the connection details.
  • Once connected, sqlbot will index your schema to provide accurate SQL generation.

Features

  • Natural Language to SQL: Just ask your database questions in plain English.
  • Smart Charting: Automatically generates charts and visualizations from your data.
  • Multi-DB Support: Works with PostgreSQL, MySQL, SQLite, and more.
  • Local & Private: Your connection strings and API keys stay on your machine.

Keywords

sql

FAQs

Package last updated on 01 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts