# Connect Diakrin from ChatGPT and Codex

> Add Diakrin to ChatGPT or Codex and sign in with your company account.

Source: https://diakrin.com/docs/connect-chatgpt

Any employee whose company uses Diakrin can add Diakrin to ChatGPT or Codex and sign in once with their company account; the assistant then saves app ideas and builds them under your company's rules.

> [!NOTE]
> Assistant sign-in is rolling out. Until it is turned on for the Diakrin cloud, connect your coding tool with a personal connection token instead: see [Connect your coding tool](/docs/builders#create-your-connection).

## Before you start

| You need | Example | Comes from |
| --- | --- | --- |
| A Diakrin company account | you@acme.example | Your company's Diakrin organization; ask IT to invite you |
| ChatGPT or Codex | ChatGPT Business, Codex CLI | Your OpenAI plan; workspace admins may need to allow connectors |
| The Diakrin address | `https://api.diakrin.com/mcp` | Always this address for the Diakrin cloud |

## Add Diakrin in ChatGPT

1. Add Diakrin from the ChatGPT plugin directory when it is listed there, or (where your workspace allows custom connectors) add a connector with the address `https://api.diakrin.com/mcp`.
2. Ask for an app, for example "Use Diakrin to create an app that tracks my team's tasks".
3. Your browser opens the Diakrin sign-in. Sign in with your company account and select **Allow**.

You should see ChatGPT save your idea and give you a console link to it. In a chat without a code editor, ChatGPT stops at the saved, prepared app and the console link; building the code happens in a coding agent such as Codex.

> [!WARNING]
> Check the consent screen before you select **Allow**: it names the assistant, where it returns, and your companies. Stop here and select **Deny** if you did not just start this sign-in.

## Add Diakrin in Codex

```sh
codex mcp add diakrin --url https://api.diakrin.com/mcp
```

Then sign in:

```sh
codex mcp login diakrin
```

Your browser opens the Diakrin sign-in; select **Allow**. You should then see the Diakrin tools in Codex.

## What the assistant can do

- Save, prepare, build and update the apps **you own or manage** (most employees: only their own), and read their Preview state.
- Publish only when you ask, with your company's real groups and approvals.
- It cannot change company settings, reach another company or change someone else's app.

## Disconnect

In the Diakrin console, open your AI tool connection card and find **Connected assistants**. Select **Disconnect** next to ChatGPT or Codex. Its next call is refused; connect again any time.

## If it fails

| Symptom | Cause | Fix |
| --- | --- | --- |
| The sign-in page says the request expired | The sign-in waited more than 10 minutes | Start again from ChatGPT or Codex |
| "Unverified app" on the consent screen | A tool on your computer registered itself | Continue only if you just started it |
| The assistant says you cannot change the app | The app belongs to someone else | Ask its owner, or create your own app |
| The assistant asks you to connect again | You disconnected it, your account was disabled or you left the company | Sign in again, or ask IT |

## Next

Install the CLI for terminal work: [Install and use the Diakrin CLI](/docs/cli).
