---
metadata:
  - name: generator
    content: Diplodoc Platform v5.63.0
alternate:
  - en/operations/connection/chyt/create-chyt
  - ru/operations/connection/chyt/create-chyt
  - href: en/operations/connection/chyt/create-chyt.md
    type: text/markdown
    title: Markdown version
csp:
  - script-src:
      - https://mc.yandex.ru
    img-src:
      - https://mc.yandex.ru
    connect-src:
      - https://mc.yandex.ru
      - wss://mc.yandex.ru
    child-src:
      - 'blob:'
      - https://mc.yandex.ru
    frame-src:
      - 'blob:'
      - https://mc.yandex.ru
    frame-ancestors:
      - 'blob:'
      - https://mc.yandex.ru
canonical: en/operations/connection/chyt/create-chyt.html
title: How to create a CHYT connection in DataLens On-premises
description: >-
  In this guide, you will learn how to create a CHYT connection in DataLens
  On-premises.
vcsPath: en/operations/connection/chyt/create-chyt.md
---


# Creating a YTsaurus CHYT connection in DataLens On-premises


<!-- source: en/_includes/datalens/internal/datalens-yt-connection.md -->
To create a YTsaurus CHYT connection:

1. Go to the [workbook](../../../workbooks-collections/index.md) page or create a new one.
1. In the top-right corner, click **Create** → **Connection**.
1. Select the **YTsaurus CHYT** connection.
1. Configure the connection as follows:

   * **Host name**: Specify the YTsaurus proxy server address.
   * **Port**: Specify the CHYT connection port.
   * **Clique alias**: Specify the alias of a running clique. By default, the `*ch_public` public clique is used.
   * **YTsaurus token**: Manually set the OAuth token to use with YTsaurus. For more information, see [this YTsaurus guide](https://ytsaurus.tech/docs/en/user-guide/storage/auth).
   * **Cache TTL in seconds**: Specify cache TTL or leave the default value. The recommended value is 300 seconds (5 minutes).
   * **Raw SQL level**: Select the SQL query access level for the user.
   * **HTTPS**: Enable the secure connection option if your server supports HTTPS.

1. Optionally, test the connection by clicking **Check connection**.
1. Click **Create connection**.
1. Enter a name for the connection and click **Create**.


## Additional settings {#additional-settings}

<!-- source: en/_includes/datalens/operations/datalens-db-connection-export-settings.md -->
You can limit data export from charts by enabling the **Disable data export** option under **Advanced connection settings**. Thus, for charts based on the respective connection, the export data option will not be available in their <!-- diplodoc:svg ![icon](../../../_assets/console-icons/ellipsis.svg) --><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M3 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3M9.5 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m5 0a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0" clip-rule="evenodd"/></svg> menu. However, you will still be able to copy chart data and take screenshots.
<!-- endsource: en/_includes/datalens/operations/datalens-db-connection-export-settings.md -->
<!-- endsource: en/_includes/datalens/internal/datalens-yt-connection.md -->

