Chdb Sql
Embedded ClickHouse SQL in Python for analytical queries on files, URLs, and remote databases without a server.
- CCM score
- 75 of 100
- skills.sh installs
- 10.4K
- GitHub stars
- 580
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers one-off
chdb.query()calls, statefulSessionpipelines, and DB-API 2.0 connections - Includes cross-source joins via
s3(),mysql(),postgresql(),iceberg(),deltaLake(), andremoteSecure()table functions - Supports parametrized queries and output formats such as
DataFrameandPrettyfor result handling - Designed for analysts who need full ClickHouse SQL on local or remote data, not pandas-style DataFrame chaining
Install
$ npx -y skills add clickhouse/agent-skills --skill chdb-sql -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
chdb SQL — ClickHouse in Your Python Process
Run ClickHouse SQL directly in Python — no server needed. Query local files, remote databases, and cloud storage with full ClickHouse SQL power.
pip install chdb
Decision Tree: Pick the Right API
1. One-off query on files or databases → chdb.query()
2. Multi-step analysis with tables → Session
3. DB-API 2.0 connection → chdb.connect()
4. Pandas-style DataFrame operations → Use chdb-datastore skill instead
chdb.query() — One Line, Any Data
import chdb
chdb.query("SELECT * FROM file('data.parquet', Parquet) WHERE price > 100 LIMIT 10") # local files
chdb.query("SELECT * FROM mysql('db:3306', 'shop', 'orders', 'root', 'pass')") # databases
chdb.query("SELECT * FROM s3('s3://bucket/data.parquet', NOSIGN) LIMIT 10") # cloud storage
chdb.query("SELECT * FROM deltaLake('s3://bucket/delta/table', NOSIGN) LIMIT 10") # data lakes
Details
- Repository
- github.com/clickhouse/agent-skills
- Categories
- Databases, Data Science & Analytics
- First seen
- Jun 3, 2026
Questions
What does the chdb-sql skill let an agent do?
It lets an agent run ClickHouse SQL inside a Python process with no server, on local parquet, csv and json files, URLs, S3 paths and remote databases such as Postgres, MySQL and ClickHouse Cloud. It also covers stateful multi-step pipelines through Session and parametrized queries.
How do I install the chdb-sql skill?
Run npx -y skills add clickhouse/agent-skills --skill chdb-sql -y in your project. The skill then gives the agent chdb guidance, which needs Python 3.9 or newer on macOS or Linux and the chdb package installed with pip.
When should I use chdb-sql instead of chdb-datastore?
Use chdb-sql when you want to write SQL against files or remote analytical sources. The skill says to use chdb-datastore instead for pandas-style DataFrame method-chaining, so this skill is for SQL queries rather than DataFrame code.
Which other skills sit in the same category?
chdb-sql is in the Databases category on Claude Marketplaces, where it ranks in the top 100. Other skills in that category include supabase-postgres-best-practices and several prisma skills.
More from clickhouse/agent-skills
All 8Similar to Chdb Sql
More Databaseschdb-datastoreSkillclickhouse/agent-skills8.2K installsDrop-in pandas replacement that runs on a ClickHouse engine and reads from files and databases alike.
ClickHouseMCP serverclickhouse918 starsRead and query access to ClickHouse clusters and embedded chDB, with schema discovery and query checks.
clickhouse-js-node-codingSkillclickhouse/agent-skills7.3K installsNode.js client for ClickHouse with guidance on configuring, inserting, selecting, parameterizing, and managing sessions in server-side code.
hypequery ClickHouseMCP serverhypequery107 starsGoverned ClickHouse analytics exposed as named datasets and metrics, never raw SQL.
sql-queriesSkillphuryn/pm-skills3K installsNatural-language to SQL generator that reads schema files and targets BigQuery, PostgreSQL, MySQL, and other dialects.
mssqlSkillsanjay3290/ai-skills553 installsRead-only SQL Server querying across multiple configured databases, with description-based database selection and write blocking.