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

# Codex

> Connect the OpenAI Codex desktop app to the Danube MCP Server

## Prerequisites

The Codex app is available on **macOS (Apple Silicon)**. Download it from [OpenAI](https://openai.com/index/introducing-codex/).

<Info>
  The Codex app, Codex CLI, and Codex IDE extension all share the same `~/.codex/config.toml` configuration. Setting up Danube in any one of them makes it available in all three.
</Info>

## Setup

<Steps>
  <Step title="Open MCP Settings">
    Go to **Codex Settings** → **MCP Servers** → **+ Add Server**.
  </Step>

  <Step title="Add the Danube Server">
    Fill in the "Connect to a custom MCP" form:

    | Field         | Value                          |
    | ------------- | ------------------------------ |
    | **Name**      | `danube`                       |
    | **Transport** | Select **Streamable HTTP**     |
    | **URL**       | `https://mcp.danubeai.com/mcp` |

    Leave all other fields empty and click **Save**.
  </Step>

  <Step title="Authenticate">
    After saving, click **Authenticate** on the Danube server entry. This opens the Danube OAuth authorization page. Paste your **Danube API key** and click **Authorize**.
  </Step>

  <Step title="Verify Connection">
    The Danube server should now show as connected in your MCP Servers list. Tools will be available to the Codex agent across all threads.
  </Step>
</Steps>

<Tip>
  Get your API key from the [Danube Dashboard](https://danubeai.com/dashboard/api-keys).
</Tip>

***

## Troubleshooting

<AccordionGroup>
  <Accordion title="Tools not appearing">
    * Verify the server shows as connected in **Settings** → **MCP Servers**
    * Check that the transport is set to **Streamable HTTP**, not STDIO
    * Try clicking **Authenticate** again to re-authorize
  </Accordion>

  <Accordion title="Authentication failed">
    * Verify your API key is correct
    * Generate a new API key from [danubeai.com/dashboard/api-keys](https://danubeai.com/dashboard/api-keys)
    * Ensure your Danube account is active
  </Accordion>

  <Accordion title="Connection timeout">
    * Check your internet connection
    * Test the health check: `curl https://mcp.danubeai.com/mcp/health`
  </Accordion>
</AccordionGroup>
