The System Settings area is the central control plane for a SQLBot deployment. It is only accessible to the global admin account. From here you configure the AI models that power SQL generation, manage workspaces and users, tune global parameters, and review the audit log. This page gives you an overview of what is available and where to find it.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.
All sections described on this page require the global admin account (
admin). Workspace admins and regular members cannot access System Settings.Sections at a glance
AI Models
Add and manage the LLM providers that SQLBot uses for natural-language-to-SQL conversion. At least one model must be configured and set as the default before any queries can run.
Users
Create accounts, reset passwords, activate or deactivate users, and assign them to workspaces. Batch import from Excel is also available here.
Workspaces
Create and rename workspaces that isolate datasources and conversations from one another. Manage workspace membership and roles.
Permissions
Understand the three-tier role model: global admin, workspace admin, and regular member, and how workspace isolation is enforced.
Global parameters
Navigate to System Settings → Parameters to view and edit global configuration values. Parameters are grouped into categories. Changes take effect immediately without restarting the server.Login settings
Login settings
Controls authentication behaviour, such as session duration and login restrictions. These settings are also exposed publicly so the login page can adapt its UI without an authenticated session.
Chat settings
Chat settings
Controls how the query engine behaves during conversation. For example, the number of prior conversation rounds included in each prompt (
GENERATE_SQL_QUERY_HISTORY_ROUND_COUNT, default 3) and whether a row-count limit is enforced on query results (GENERATE_SQL_QUERY_LIMIT_ENABLED, default true).Audit log
SQLBot records every significant operation in a structured audit log stored in thesys_logs table. Navigate to System Settings → Audit Log to view and filter log entries.
Each log entry captures:
| Field | Description |
|---|---|
| Operation type | The action performed: create, delete, update, reset_pwd, login, export, and others. |
| Module | The resource category: user, workspace, ai_model, datasource, chat, member, and more. |
| User | The account that performed the action. |
| Workspace | The workspace context in which the action occurred. |
| Status | Whether the operation succeeded or failed. |
| IP address | The client IP address at the time of the request. |
| Execution time | How long the operation took in milliseconds. |
| Timestamp | When the operation occurred. |
The audit log covers all administrative actions (user creation, password resets, model changes) as well as user activity (chat queries, datasource access, login events). Only the global admin can view the full log.
Interface language
Each user sets their own language preference from their profile page. The platform supports four locales:| Code | Language |
|---|---|
zh-CN | Simplified Chinese (default for new accounts) |
zh-TW | Traditional Chinese |
en | English |
ko-KR | Korean |
API keys
Users can generate API keys to access SQLBot programmatically. Navigate to System Settings → API Keys to view all active keys across the platform. As an admin, you can disable any key. Each key pair consists of an Access Key (public identifier) and a Secret Key (credential). Keys can be activated or deactivated at any time without deleting them.Production deployment checklist
Before going live, review the following hardening steps.Change the default admin password
The admin account is created with the default password defined by
DEFAULT_PWD (default: SQLBot@123456). Change it immediately after first login.Passwords must be 8–20 characters and include at least one uppercase letter, one lowercase letter, one digit, and one special character (~!@#$%^&*()_+-={}|:"<>? etc).Set a strong SECRET_KEY
The Then add it to your environment:
SECRET_KEY environment variable signs all JWT access tokens. The default value is randomly generated at startup, which means tokens are invalidated on every restart. Set a stable, high-entropy value in your .env file:Configure CORS origins
Set
BACKEND_CORS_ORIGINS to the exact origin(s) your frontend is served from. The FRONTEND_HOST variable also adds a permitted origin:Configure the database connection
By default SQLBot connects to a local PostgreSQL instance. Set
SQLBOT_DB_URL for a custom connection string, or set the individual POSTGRES_* variables:Set up Redis for caching (recommended)
By default SQLBot uses in-memory caching (
CACHE_TYPE=memory), which does not persist across restarts and does not scale across multiple instances. For production, configure Redis:Add at least one LLM model
Users cannot run any queries until a default AI model is configured. Go to System Settings → AI Models → Add and connect your preferred provider before sharing access with users. See the LLM Models page for full setup instructions.