---
title: Connect Chartbrew to Tinybird
meta:
  description: This guide covers the steps to connect Chartbrew to Tinybird using the ClickHouse HTTP interface.
headingMaxLevels: 2
---

# Connect Chartbrew to Tinybird

Chartbrew can connect to Tinybird using the ClickHouse® Data Source, taking advantage of Tinybird's ClickHouse® HTTP protocol compatibility.

{% callout type="info" %}
The ClickHouse® connection to Tinybird is read-only. You can use it to query and analyze data from your Tinybird data sources, but you cannot modify data through this connection.
{% /callout %}

## Prerequisites

- A [Chartbrew](https://chartbrew.com) account
- A Tinybird workspace with data sources
- A Tinybird Auth Token with scopes `WORKSPACE:READ_ALL` and optionally `ORG_DATASOURCES:READ`. See [how to create it](../clickhouse-interface#auth-token-requirements).

## Create a new connection

1. Select **Connections > Create your first connection**.
2. In the connection wizard, select **ClickHouse®** from the SQL databases list.
3. Fill in the ClickHouse database credentials.

### Connection settings

```bash
Connection name: Tinybird
Host: {% user("clickhouseHost") %}
Port: 443  # For HTTPS connections
Database username: <WORKSPACE_NAME>  # Your workspace name
Database password: {% user("JWT") %}  # Your Tinybird auth token
Database name: <WORKSPACE_NAME>  # Your workspace name
Enable SSL: Yes
SSL Mode: Require
```

{% callout type="info" %}
See the list of [ClickHouse hosts](../clickhouse-interface#clickhouse-interface-hosts) to find the correct one for your region.
{% /callout %}

## Learn more

- [ClickHouse Interface overview](../clickhouse-interface)
- [Tinybird Auth Token management](/classic/administration/auth-tokens)
