- Databricks
- PostgreSQL
- MySQL
- SAP Gateway
- Snowflake
- SQL Server
Install and run the on-premises gateway from the Docker container image. Run the Docker gateway in each location where your on-premises data is located. See Install the On-Premises Gateway for more information.
Register the Connect Gateway in Connect AI
To register the Connect Gateway in Connect AI:Enter a descriptive location name to identify where the gateway is installed, and click Confirm.Your location appears in the Gateways list, along with a key and a Pending status. Click the eye icon to view the key.
You need to copy the following values for the on-premises gateway (click the copy icons):

- Account Id–this is the ACCOUNT_ID environment variable for the on-premises gateway.
- Location Id–this is the AGENT_LOCATION_ID environment variable for the on-premises gateway.
- Key–this is the AGENT_API_KEY environment variable for the on-premises gateway.
Install the On-Premises Gateway
The on-premises gateway is a lightweight service that runs inside your network and acts as a secure reverse tunnel between Connect AI and your local data sources. The gateway registers itself with Connect AI on startup. It then listens for incoming connections, via Azure Relay technology, without ever exposing them to the public internet. The gateway is protocol-agnostic: it forwards raw bytes without any knowledge of the database protocol (such as MySQL, PostgreSQL, or SQL Server), making it compatible with any TCP-based data source.Prerequisites
To install the on-premises gateway at your location, you must have the following:- Docker installed on the host machine.
- Network access to
cloud.cdata.com. - The gateway created in Connect AI.
Environment Variables
The following environment variables are required to run the gateway:| Variable | Description |
|---|---|
| AGENT_LOCATION_ID | The unique identifier for this gateway instance. Copy the value under the user-defined Location Name in the Gateways list in Connect AI. |
| AGENT_API_KEY | The secret API key used to authenticate this gateway with Connect AI. Copy the value under Key in the Gateways list in Connect AI. |
| ACCOUNT_ID | Your CData Connect AI account identifier. This is specific to your organization. Copy Account Id in the Gateways list in Connect AI. |
Run the Gateway in Docker
Run the gateway as follows:docker run will pull the Docker image from the registry if it is not already present on the host..View Docker Logs
Stop the Gateway
Docker Compose
Copy the following and save asdocker-compose.yml:
Start the Gateway
docker compose up will pull the Docker image from the registry if it is not already present on the host.View Logs
Stop the Gateway
Finish Connect Gateway Setup
Return to Connect AI and finish the Connect Gateway setup.When you complete the steps in Install the On-Premises Gateway, you can then test the gateways you added to Gateways. Click the Connect Gateway tab of the Add/Edit Connection page. Click Test Gateways. The Status turns to Success if all gateway setup is complete.
You still need to click Save & Test to test the entire connection.
Return to the Basic Settings tab of your connection. Under Connection Type, select Connect Gateway.
Enter the Authentication instructions for the connector according to the connector’s Documentation pane.

