---
url: /relyagent-whmcs/guides/chatgpt.md
description: >-
  Connect ChatGPT to your WHMCS by enabling developer mode and adding Relyagent
  as a custom connector — paste the Endpoint URL, choose OAuth, enter the Client
  ID and Client Secret, authorize through your WHMCS admin login, approve
  consent, and confirm only your allowed tools appear.
---

# Connect ChatGPT

Connect **ChatGPT** to your WHMCS through Relyagent's self-hosted **MCP server**, so ChatGPT can list and call only the WHMCS tools you allow.

::: info Developer-mode connectors required
Custom connectors in ChatGPT live behind **developer mode**, which needs a ChatGPT plan that
supports developer-mode connectors. If you don't see the option below, your plan may not include
it.
:::

## Prerequisites

* A **connection** created under **Addons → Relyagent → MCP Clients** — see
  [Configuration](/relyagent-whmcs/configuration).
* Its **Client ID** and **Client Secret** (the secret is shown only once at creation).
* The shared **Endpoint URL**:

  ```
  https://<your-whmcs>/modules/addons/relyagent/public/mcp/endpoint.php
  ```

::: tip Grab the exact values from WHMCS
The **Setup** tab (**Addons → Relyagent → Setup**) has a ChatGPT accordion with the Endpoint URL
pre-filled and copy-paste steps.
:::

## Enable developer mode and create the connector

1. **Enable developer mode:** in ChatGPT, open **Settings → Apps & Connectors → Advanced** and enable **Developer mode**.
2. **Create connector:** navigate to **Apps & Connectors** and click **Create**.
3. **Set URL:** paste the **Endpoint URL** as the server URL.
4. **Select authentication:** choose **OAuth** as the auth method.
5. **Add credentials:** enter the **Client ID** and **Client Secret**, then save.

## Authorize and consent

After you create the connector, start the authorization:

1. You're sent to your **native WHMCS admin login** — your existing 2FA, brute-force and IP
   rules apply, because Relyagent shows no login form of its own.
2. A **consent screen** lists this connection's tools. Approve it to finish.

## Verify it works

Ask ChatGPT what WHMCS tools the connector exposes. It should list **only** the tools you ticked
for this connection — nothing more. Any tool outside that set is rejected.

::: warning If it won't connect
Make sure you entered **both** the Client ID and Client Secret and chose **OAuth** — the Endpoint
URL alone isn't enough. Confirm you signed in at the WHMCS admin login and approved consent, and
double-check the exact Endpoint URL. See the [error reference](/relyagent-whmcs/errors).
:::

## Related

* [Configuration](/relyagent-whmcs/configuration) — create and manage connections
* Setup tab: **Addons → Relyagent → Setup**
* [MCP tools](/relyagent-whmcs/features/mcp-tools) — what each tool group does
