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

# Codex CLI

> Connect the gork-mcp server to OpenAI Codex CLI.

<Steps>
  <Step title="Get an API key">
    Generate a key in the [Console](https://gork.email/dashboard). Keys start with `gork_live_`.
  </Step>

  <Step title="Add the server config">
    Add a `[mcp_servers.gork]` section to your Codex `config.toml`:
  </Step>
</Steps>

```toml theme={null}
[mcp_servers.gork]
command = "npx"
args = ["-y", "-p", "@gork/sdk", "gork-mcp"]
env = { GORK_API_KEY = "gork_live_YOUR_KEY" }
```

<Steps>
  <Step title="Restart Codex">
    Restart the Codex CLI so it loads the new MCP server.
  </Step>

  <Step title="Verify">
    Ask Codex: *"List my inboxes."* It should call `gork_list_inboxes` and show your addresses.
  </Step>
</Steps>

<Note>
  Override the API base by adding `GORK_BASE_URL = "https://..."` to the `env` map if needed.
</Note>
