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

# Connect to chDB

To connect to a chDB database:

1. Click the connection selector button
2. Then click "Add connection"

<img src="https://mintlify.s3.us-west-1.amazonaws.com/dbpilot/resources/add-connection.png" alt="Add connection button" className="blog-image-sm" />

Next, click the "chDB" button:

<img src="https://mintlify.s3.us-west-1.amazonaws.com/dbpilot/resources/add-connection-chdb.png" alt="Select new connection type" className="blog-image-sm" />

Then, fill in your connection details. Afterwards, click "Save":

<img src="https://mintlify.s3.us-west-1.amazonaws.com/dbpilot/resources/form-chdb.png" alt="New connection form" className="blog-image-sm" />

* **Name**: An arbitrary name to identify the connection in DB Pilot.
* **Directory**: A directory for this database's files.
