SQLBot ships as a single Docker image that bundles the FastAPI backend, the frontend UI, and a PostgreSQL database. This guide walks you through deploying that image, connecting an LLM and a datasource, and running your first chat query.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/dataease/SQLBot/llms.txt
Use this file to discover all available pages before exploring further.
You need a Linux server with Docker installed and a valid API key from at least one supported LLM provider.
Deploy SQLBot with Docker
Run the following command on your Linux server. It starts SQLBot in the background, maps the UI to port Wait about 30 seconds for the application to initialize. You can monitor startup progress with:Look for the line
8000 and the MCP server to port 8001, and mounts persistent volumes for data, logs, and uploaded files.✅ SQLBot 初始化完成 (SQLBot initialization complete) to confirm the app is ready.Log in to the admin panel
Open your browser and navigate to:Log in with the default credentials:
| Field | Value |
|---|---|
| Username | admin |
| Password | SQLBot@123456 |
Add an LLM model
SQLBot needs at least one configured LLM to generate SQL.
- In the sidebar, go to System Settings → AI Models.
- Click Add model.
- Select your LLM provider from the list (for example, DeepSeek or OpenAI).
- Enter your API key and select or type a model name (for example,
deepseek-chatorgpt-4o). - Click Test connection to verify the credentials, then click Save.
- OpenAI
- DeepSeek
- Generic OpenAI-compatible
Select OpenAI as the provider. Enter your
sk-... API key and choose a model such as gpt-4o or gpt-4o-mini.Connect a datasource
- In the sidebar, go to Datasources.
- Click Add datasource.
- Choose your database type (for example, MySQL, PostgreSQL, or ClickHouse).
- Fill in the connection details: host, port, database name, username, and password.
- Click Test connection, then click Save.
If your database has many tables, give the embedding process a minute or two to complete before running your first query. Embedding progress is shown on the datasource detail page.
Run your first chat query
- In the sidebar, click New chat.
- Select the datasource you just connected.
-
Type a question in natural language, for example:
-
Press Enter. SQLBot will:
- Retrieve the relevant table schema from the vector index
- Construct a prompt and call the LLM to generate SQL
- Execute the SQL against your database
- Display the results as a data table and suggest a chart
What to do next
How it works
Understand the RAG + LLM pipeline behind every query.
Connect more datasources
Add MySQL, ClickHouse, Excel files, and more.
Improve accuracy
Add terminology entries and SQL training examples to make queries more accurate over time.
Embed or integrate
Expose SQLBot as an MCP server or embed it in your own web application.