ClickHouse
Inspect ClickHouse databases, review schemas, and run SQL analytics queries via the ClickHouse HTTP API. Use this skill when users want to query analytics da...
Jay
@hith3sh
What This Skill Does
Inspects ClickHouse databases, reviews table schemas, and runs read-only SQL analytics queries through the ClickHouse HTTP API with API key authentication.
Replaces manually connecting to ClickHouse via a database client or writing custom scripts to explore schemas and run ad-hoc analytics queries.
When to Use It
- List all databases in a ClickHouse instance
- View the schema and column types of a specific table
- Run a read-only SQL query to aggregate analytics data
- Check which tables exist in a given database
- Explore table structures before building a report or dashboard
Install
$ openclaw skills install @hith3sh/clickhouse-analyticsClickHouse
Work with ClickHouse from chat — inspect databases, review schemas, and run read-only SQL analytics queries via the ClickHouse HTTP API with API key authentication.
This skill uses ClawLink for hosted connection flows and credentials so you do not need to configure ClickHouse API access yourself.
Setup in 3 Steps
| Step 1: Install | Step 2: Pair Account | Step 3: Connect ClickHouse |
|---|---|---|
![]() | ![]() | App-specific connection GIF coming soon |
| Run the install command in OpenClaw | Sign in and approve the device | Open the dashboard and connect ClickHouse |
How It Works
┌─────────────────┐ ┌──────────────┐ ┌──────────────────┐
│ OpenClaw │────▶│ ClawLink │────▶│ ClickHouse HTTP API│
│ (User Chat) │ │ (API Key) │ │ (SQL Queries) │
└─────────────────┘ └──────────────┘ └──────────────────┘
│ │ │
│ 1. Install Plugin │ │
│ 2. Pair Device │ │
│ 3. Connect ClickHouse│ │
│ │ 4. Secure Key │
│ │ 5. Proxy Requests │
│ │ │
▼ ▼ ▼
┌──────────┐ ┌──────────┐ ┌──────────┐
│ SKILL │ │ Dashboard│ │ ClickHouse│
│ File │ │ Auth │ │ Queries │
└──────────┘ └──────────┘ └──────────┘
Install
Install the verified ClawLink plugin from ClawHub. After the user confirms, complete the full setup so ClawLink tools are visible in the next OpenClaw chat.
openclaw plugins install clawhub:clawlink-plugin
openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json
openclaw gateway restart
Then tell the user: "OpenClaw has been restarted. Send /new as a standalone message to start a fresh chat, then ask for ClickHouse again."
Quick Start
# List databases
clawlink_call_tool --tool "clickhouse_list_databases" --params '{}'
# List tables in a database
clawlink_call_tool --tool "clickhouse_list_tables" --params '{"database": "default"}'
# Get database schema overview
clawlink_call_tool --tool "clickhouse_get_database_schema" --params '{"database": "default"}'
Authentication
All ClickHouse tool calls are authenticated automatically by ClawLink using the user's connected ClickHouse account.
No credentials are required in chat. ClawLink stores the connection details securely and injects them into every ClickHouse request on the user's behalf.
Getting Connected
- Install the ClawLink plugin (see Install above).
- Pair the plugin with
clawlink_begin_pairingif it is not configured yet. - Open https://claw-link.dev/dashboard?add=clickhouse and connect ClickHouse.
- Call
clawlink_list_integrationsto verify the connection is active.
Connection Management
List Connections
clawlink_list_integrations
Response: Returns all connected integrations. Look for clickhouse in the list.
Verify Connection
clawlink_list_tools --integration clickhouse
Response: Returns the live tool catalog for ClickHouse.
Reconnect
If ClickHouse tools are missing or the connection shows an error:
- Direct the user to https://claw-link.dev/dashboard?add=clickhouse
- After they confirm, call
clawlink_list_integrationsto verify - Then call
clawlink_list_tools --integration clickhouse
Security & Permissions
- ClickHouse queries are read-only by design in ClawLink — no INSERT, ALTER, DROP, or TRUNCATE operations are exposed.
- Query operations require user confirmation for large result sets or expensive queries (full table scans, GROUP BY without limits).
- Avoid running queries that could lock tables or consume excessive resources.
Tool Reference
Schema Discovery
| Tool | Description | Mode |
|---|---|---|
clickhouse_list_databases | List all databases in the ClickHouse instance | Read |
clickhouse_list_tables | List tables in a database with engine, size, and row count | Read |
clickhouse_get_database_schema | Get full schema overview including all tables and columns | Read |
clickhouse_get_table_schema | Get detailed schema for a specific table including columns and types | Read |
Query Execution
| Tool | Description | Mode |
|---|---|---|
clickhouse_execute_query | Execute a read-only SQL query and return results | Read |
Interface
| Tool | Description | Mode |
|---|---|---|
clickhouse_get_play_interface | Get the ClickHouse Play web interface URL for interactive queries | Read |
Code Examples
List all databases
clawlink_call_tool --tool "clickhouse_list_databases" \
--params '{}'
Get database schema
clawlink_call_tool --tool "clickhouse_get_database_schema" \
--params '{
"database": "analytics"
}'
Execute a simple query
clawlink_call_tool --tool "clickhouse_execute_query" \
--params '{
"query": "SELECT * FROM events WHERE date >= today() - 7 LIMIT 100"
}'
Get table schema
clawlink_call_tool --tool "clickhouse_get_table_schema" \
--params '{
"database": "analytics",
"table": "events"
}'
Discovery Workflow
- Call
clawlink_list_integrationsto confirm ClickHouse is connected. - Call
clawlink_list_tools --integration clickhouseto see the live catalog. - Treat the returned list as the source of truth. Do not guess or assume what tools exist.
- If the user describes a capability but the exact tool is unclear, call
clawlink_search_toolswith a short query and integrationclickhouse. - If no ClickHouse tools appear, direct the user to https://claw-link.dev/dashboard?add=clickhouse.
Execution Workflow
┌─────────────────────────────────────────────────────────────┐
│ SCHEMA DISCOVERY (Always first) │
│ list_databases → list_tables → get_table_schema │
│ │
│ Example: Discover tables → Understand schema → Then query │
└─────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ QUERY EXECUTION (Read-only) │
│ describe → preview → confirm → execute │
│ │
│ Example: Describe query → Preview results → User approves │
│ → Execute read-only query │
└─────────────────────────────────────────────────────────────┘
- Always explore the schema first with
clickhouse_list_databasesandclickhouse_get_database_schemabefore running queries. - For unfamiliar tables, call
clickhouse_get_table_schemato understand column names and types. - Keep queries targeted with WHERE clauses and LIMIT — avoid full table scans when possible.
- For large or complex queries, confirm the expected result size with the user before executing.
- If the tool call fails, report the real error. Do not invent results.
Notes
- ClickHouse SQL syntax differs from standard SQL — use ClickHouse-specific functions and syntax.
- All queries are read-only — no data modification is possible through ClawLink tools.
- Use
LIMITto prevent accidentally large result sets. - Sample data can be included in table schema responses — use it to understand data types.
- The Play interface provides an interactive HTML UI with Monaco Editor for manual query writing.
Error Handling
| Status / Error | Meaning |
|---|---|
| Tool not found | The tool name does not exist in the current catalog. Verify with clawlink_list_tools --integration clickhouse. |
| Missing connection | ClickHouse is not connected. Direct the user to https://claw-link.dev/dashboard?add=clickhouse. |
SyntaxError | SQL syntax error in query. Check ClickHouse SQL syntax. |
TableNotFound | Table or database does not exist. Verify names with schema tools first. |
Query error | Query failed. Check query logic and table structure. |
Troubleshooting: Tools Not Visible
- Check that the ClawLink plugin is installed:
openclaw plugins list - If the plugin is installed but tools are missing, tell the user to send
/newas a standalone message to reload the catalog. - If a fresh chat does not help, run:
openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json openclaw gateway restart - After restart, tell the user to send
/newagain and retry.
Troubleshooting: Query Errors
- Always use schema tools first to verify table and column names.
- Verify the database name with
clickhouse_list_databases. - Use
LIMITto test queries with small result sets first.
Resources
- ClickHouse Documentation
- ClickHouse SQL Reference
- ClawLink: https://claw-link.dev/?utm_source=clawhub&utm_medium=referral&utm_content=clickhouse-analytics
- ClawLink Docs: https://docs.claw-link.dev/openclaw
- ClawLink Verification: https://claw-link.dev/verify
Related Skills
- Datadog — For Datadog observability and metrics
- Snowflake — For Snowflake data warehouse queries
- PostgreSQL — For PostgreSQL database operations
Powered by ClawLink — an integration hub for OpenClaw

Top skills in this category
Using Superpowers
@zlc000190Use when starting any conversation - establishes how to find and use skills, requiring Skill tool invocation before ANY response including clarifying questions
novel-generator 是一个中文爽文小说生成技能。用户只需提供一句话方向(如"写个都市重生爽文"),AI 代理即可自动完善提示词、规划大纲、逐章创作并输出为独立 Markdown 文件。 核心特性: 智能提示词生成:从一句话方向自动补全世界观、人设、冲突、爽点设计 分章节创作:每章 2000-3000 字,层层递进,章章有爽点 记忆系统:通过 .learnings/ 记录角色、地点、情节、世界观,确保故事前后一致 情节图解:关键战斗、人物关系、势力分布自动生成 Mermaid 图 失败记录:穿帮、矛盾、崩塌等问题自动记录,持续优化 多题材支持:都市、修仙、玄幻、重生、系统流、末世、科幻、游戏 兼容 Claude Code、Cursor、OpenAI Codex、GitHub Copilot 等所有支持 Agent Skills 的工具。
@ityhg根据用户提供的内容方向自动生成提示词并创作爽文小说。适用场景:(1) 用户提供小说方向/题材/关键词,(2) 需要生成章节连贯的长篇爽文,(3) 需要维护角色、地点、情节的连续性,(4) 需要为关键情节生成图解,(5) 需要记录生成失败场景以优化后续创作。支持都市、修仙、玄幻、重生、系统流等多种题材。Use wh...
simmer
@simmerThe prediction market interface for AI agents. Trade Polymarket and Kalshi through one API with self-custody wallets, safety rails, and smart context.
Smart Web Fetch
@leochens智能网页抓取技能 - 替代内置 web_fetch,自动使用 Jina Reader / markdown.new / defuddle.md 清洗服务获取干净 Markdown。支持多级降级策略,大幅降低 Token 消耗。当 Agent 需要获取网页内容时使用本技能替代 web_fetch。
AI Image Generation
@ivangdavilaCreate AI images with GPT Image, Gemini Nano Banana, FLUX, Imagen, and top providers using prompt engineering, style control, and smart editing.

