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

# Codex

> Connect Qontext to Codex

Connect Qontext to Codex via MCP to give your agents access to your context repository.

With Qontext + Codex, you can:

* Retrieve curated high-quality company context while coding
* Access product, customer, process, and project knowledge directly from Codex
* Keep governance and permissions in Qontext

***

## Installation

Qontext connects to Codex as a custom connector using remote MCP. For Codex's official connector documentation, see [Codex Docs](https://developers.openai.com/codex/mcp).

<Steps>
  <Step title="Open ChatGPT Settings in your web browser">
    Open ChatGPT in your browser and log in. In the bottom left corner, click your profile and open **Settings**.

    <img src="https://mintcdn.com/qontext/-2J8u_5IHUHMWtcQ/images/Qontext_Codex-start.png?fit=max&auto=format&n=-2J8u_5IHUHMWtcQ&q=85&s=cbe02fca017c05d936e6ad2c5622a916" alt="Qontext Codex Start" title="Qontext Codex Start" style={{ width:"42%" }} width="584" height="408" data-path="images/Qontext_Codex-start.png" />
  </Step>

  <Step title="Go to MCP servers">
    In the settings, choose **MCP servers** in the navigation and click on\*\* + Add server\*\*.

    <img src="https://mintcdn.com/qontext/-2J8u_5IHUHMWtcQ/images/Qontext_Codex-add-MCP.png?fit=max&auto=format&n=-2J8u_5IHUHMWtcQ&q=85&s=45f9ced7e0d22a18a593654cff6a889d" alt="Qontext Codex Add MCP" width="2080" height="950" data-path="images/Qontext_Codex-add-MCP.png" />
  </Step>

  <Step title="Add Qontext MCP server">
    Choose **Qontext** as the name and  **Streamable HTTP** as the protocol. Then use the following **MCP server URL**:

    ```text theme={null}
    https://api.qontext.ai/mcp
    ```

    <img src="https://mintcdn.com/qontext/-2J8u_5IHUHMWtcQ/images/Qontext_Codex-connect.png?fit=max&auto=format&n=-2J8u_5IHUHMWtcQ&q=85&s=3ca43e6c9679c0e97da4d5134b478c17" alt="Qontext Codex Connect" title="Qontext Codex Connect" style={{ width:"65%" }} width="1362" height="1320" data-path="images/Qontext_Codex-connect.png" />
  </Step>

  <Step title="Authenticate and log in to Qontext">
    Click on **Authenticate** and log in to Qontext.

    <img src="https://mintcdn.com/qontext/yTb1znfFhRtX4kpC/images/Qontext_Codex-authenticate.png?fit=max&auto=format&n=yTb1znfFhRtX4kpC&q=85&s=c03b260420ba9d5191e6e6794801ccfa" alt="Qontext Codex Authenticate" title="Qontext Codex Authenticate" style={{ width:"70%" }} width="1364" height="724" data-path="images/Qontext_Codex-authenticate.png" />

    <img src="https://mintcdn.com/qontext/yTb1znfFhRtX4kpC/images/Qontext_log-in-2.png?fit=max&auto=format&n=yTb1znfFhRtX4kpC&q=85&s=29294aae16a7a9486bce8f93796d597a" alt="Qontext Log In 2" title="Qontext Log In 2" style={{ width:"42%" }} width="358" height="497" data-path="images/Qontext_log-in-2.png" />
  </Step>

  <Step title="Grant access">
    When prompted, allow Codex access to Qontext.

    <img src="https://mintcdn.com/qontext/yTb1znfFhRtX4kpC/images/Qontext_Codex-access.png?fit=max&auto=format&n=yTb1znfFhRtX4kpC&q=85&s=6c6629c8bc92514fe5a4b8e52b54d755" alt="Qontext Codex Access" title="Qontext Codex Access" style={{ width:"43%" }} width="371" height="751" data-path="images/Qontext_Codex-access.png" />
  </Step>
</Steps>

<div className="qontext-tip-check-wrapper">
  <Check>
    From now on, Codex will use your context repository to retrieve context when you invoke Qontext.
  </Check>
</div>

***

## Using Qontext in Codex

Once the app is set up, using Qontext is simple:

<Steps>
  <Step title="Start a new chat">
    Open a new conversation in Codex.
  </Step>

  <Step title="Invoke Qontext">
    Add **Use Qontext** to your question or task and send the message. Codex then retrieves the context needed to give you the best answer.
  </Step>

  <Step title="Get context-aware responses">
    ChatGPT automatically retrieves relevant context from your connected vault to complete the task.
  </Step>
</Steps>

### Example prompts

```text theme={null}
Use Qontext and create a technical handover document for this feature.
```

```text theme={null}
Use Qontext and update the project file with the implementation status.
```

```text theme={null}
Use Qontext and create a new runbook for this deployment procedure.
```

***

## Need help?

If you encounter issues with the ChatGPT integration, reach out at [support@qontext.ai](mailto:support@qontext.ai).
