ClickHouse lets the AI run read-only SQL on your server and inspect its databases, tables and columns, for analytics pages.
What you can ask for#
Inspect the events table, then show daily active users for the last 14 days. Limit the result to 100 rows.
List the databases and tables on my ClickHouse server.
Build a chart page from this query.
Connect ClickHouse#
Step 1: Find the connector
Open Tools, then Connectors, and search for ClickHouse. You can also go to Settings, then Connectors, in your dashboard.
Step 2: Select Connect
Select Connect to open the secure form.
Step 3: Enter the details
Fill in HTTPS endpoint, Username, Password and Default database (optional). Hidden fields show as dots; use the eye icon to check what you typed.
Step 4: Save
Select Save connection. Swarmz encrypts the credentials and only decrypts them to call ClickHouse for you. Everyone in your workspace can then use the connection.
Where to find your credentials#
Create a ClickHouse user with read-only access. The server must be reachable over HTTPS from the internet. Enter the full address, for example https://your-clickhouse.example.com:8443, plus the username and password.
What the AI can and can't do#
- List databases, tables and columns.
- Run bounded SELECT, SHOW, DESCRIBE and EXPLAIN statements.
- It cannot insert, change or delete data.
- Plain HTTP addresses and private network addresses are refused.
- Apps you publish can call this connector too, not just the builder.
- Everything this connector does is a read, so nothing is changed on your side.
Troubleshooting#
The connection fails.
Check the address uses HTTPS, the port is open to the internet, and the user has access.
A query is rejected.
Only read statements are allowed. Rewrite it as a SELECT.
I exposed the password.
Change the user's password in ClickHouse, then update the connection.
General steps for any connector are in Connect an integration. Keys and secrets are covered in Secrets and API keys. To remove it, see Disconnect an integration.
What Swarmz can do with it
Read-only SQL
Run bounded SELECT, SHOW, DESCRIBE, and EXPLAIN queries.
Schema inspection
List databases, tables, and columns.
More in Data & analytics
Still stuck?
A person from Swarmz Support can take a look.