> ## Documentation Index
> Fetch the complete documentation index at: https://clickhouse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# dltHub and ClickHouse

> Use dlt and dltHub to load data from APIs, databases, files and SaaS sources into ClickHouse.

Partner Integration

## Overview

[dlt](https://dlthub.com/docs/intro) is an open-source Python library that loads data from APIs, databases, files and SaaS sources into a destination such as ClickHouse. It infers the schema, creates the tables and handles incremental loading.

[dltHub](https://dlthub.com/) provides managed infrastructure and agentic tooling for your data warehouse. Its agent toolkits build a dlt pipeline from a plain-English request, and a managed runtime deploys, schedules and monitors it.

ClickHouse is a [destination supported by dlt](https://dlthub.com/docs/dlt-ecosystem/destinations/clickhouse), so you can use either option with ClickHouse Cloud or a self-managed ClickHouse.

## Why use dltHub with ClickHouse

* **Pipelines from a prompt**: the toolkits build REST API, SQL database and filesystem pipelines into ClickHouse.
* **Laptop to production**: run on a local ClickHouse, then ClickHouse Cloud, then deploy to the dltHub runtime. The `dlthub` CLI follows the same pattern as [`clickhousectl`](https://clickhouse.com/docs/concepts/features/connect-to-clickhouse/native-tools/clickhousectl).
* **Secrets stay out of the agent**: a skill provisions or reuses a ClickHouse service from a one-time token and passes the credentials to the pipeline.
* **Better ClickHouse Agents answers**: the toolkits map your data to an ontology and canonical data model stored in your repository, and write it into `COMMENT`s on every table and column on each run. ClickHouse Agents read these before writing a query.
* **Shared definitions**: the comments live in ClickHouse, so every user and tool can read them. The source files stay in your repository, so they survive a dropped table.
* **Pipeline health checks**: install the toolkits as skills in ClickHouse Agents and use the dltHub MCP server to check the last load and any failed runs.

## Get started

> [card] [Tutorial: deploy a pipeline on dltHub](https://clickhouse.com/docs/integrations/connectors/data-ingestion/etl-tools/dlt/tutorial.md)
>
> Load an API into ClickHouse Cloud, then schedule and run it on the dltHub runtime.

> [card] [dlt OSS](https://clickhouse.com/docs/integrations/connectors/data-ingestion/etl-tools/dlt/dlt-oss.md)
>
> Use the open-source dlt Python library to load data into ClickHouse.

## Related pages

* [dltHub agent toolkits](https://dlthub.com/docs/hub/ai-harness/introduction)
* [dlt ClickHouse destination reference](https://dlthub.com/docs/dlt-ecosystem/destinations/clickhouse)
