> **Beta feature.** AI access must first be turned on for your organization by BEHCA support, and a Billing user must turn on **Allow AI access** for you. See [Requesting and turning on AI access](https://support.behca.com/hc/behca-support/articles/requesting-and-turning-on-ai-access).

This article is for **Managers** and **Billing users** with **Allow AI access**. You need a ChatGPT plan with **Developer mode**: Plus, Pro, Business, Enterprise or Edu. On a Business or Enterprise workspace, an admin may need to allow Developer mode first.

## Before you start

1. In BEHCA, open the **gear** menu → **Organization settings** → **AI access**.
2. Copy the **MCP server address** shown there, for example `https://app.behca.com/mcp` (US) or `https://app.behca.au/mcp` (Australia). Use it exactly as shown, with no slash at the end.
3. In ChatGPT, open **Settings** → **Data controls** and turn off model training. See [Protecting client information](https://support.behca.com/hc/behca-support/articles/what-ai-access-is).

## Connect

1. In ChatGPT, open **Settings** → **Security and login** and turn on **Developer mode**.
2. Open **Plugins** in the sidebar and click **+**.
3. Give the connection a name, such as **BEHCA**, and paste the MCP server address.
4. For authentication, choose **OAuth**.
5. Under **Client registration**, choose **User-Defined OAuth Client**. ChatGPT may warn that DCR and CIMD aren't available. That's expected.
6. Enter **OAuth Client ID**: `chatgpt`. Leave **OAuth Client Secret** empty.
7. Set **Token endpoint auth method** to `none`. With any other choice, ChatGPT never opens the BEHCA sign-in.
8. Look at the **Callback URL** ChatGPT shows:
   - If it starts with `https://chatgpt.com/connector/oauth/`, it belongs to this connection only. Copy it, then in BEHCA go to **Organization settings** → **AI access** → **Registered callback URLs**, paste it, and click **Register**.
   - Any other callback URL needs nothing from you.
9. Back in ChatGPT, create the connection and click **Connect**.
10. BEHCA opens. Sign in if asked.
11. Read what ChatGPT will be able to read, tick the box confirming your organization's agreement with OpenAI, and click **Allow access**.

You're back in ChatGPT, connected. Start a new chat and ask, for example, "Using BEHCA, which profiles had doses not charted this week?"

## Common questions

- **Clicking Connect doesn't open BEHCA.** — Check step 7: **Token endpoint auth method** must be `none`, and the client secret must be empty.
- **ChatGPT says "invalid_client" or "Client authentication failed".** — Check that the Client ID is `chatgpt`. If the callback URL starts with `https://chatgpt.com/connector/oauth/`, make sure it's on **Registered callback URLs** in BEHCA, exactly as ChatGPT shows it, under the same organization you're connecting.
- **BEHCA says "Can't connect ChatGPT".** — The page gives the reason. See [Requesting and turning on AI access](https://support.behca.com/hc/behca-support/articles/requesting-and-turning-on-ai-access).
- **I deleted the connection in ChatGPT and made a new one.** — A new connection can have a new callback URL. Register it again, and remove the old one from **Registered callback URLs**.
- **Someone in another organization registered my callback URL.** — A callback URL works only for the organization that registered it. Register it under your own organization.

## Related articles

- [What AI access is](https://support.behca.com/hc/behca-support/articles/what-ai-access-is)
- [Connecting Claude](https://support.behca.com/hc/behca-support/articles/connecting-claude-to-behca)
- [Managing and disconnecting AI connections](https://support.behca.com/hc/behca-support/articles/managing-and-disconnecting-ai-connections)
