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

# Codex CLI Setup

> Add Slashy MCP to Codex CLI by editing ~/.codex/config.toml.

Codex CLI reads MCP servers from a TOML config file at `~/.codex/config.toml`.

## Setup

<Steps>
  <Step title="Open the Codex config file">
    In your terminal, open the file in your editor:

    ```bash theme={null}
    nano ~/.codex/config.toml
    ```

    If the file does not exist, create it.

    <Frame>
      <img src="https://mintcdn.com/karvixinc/Cf5d-qp20wjPdVvk/images/mcp/codex-edit-config.png?fit=max&auto=format&n=Cf5d-qp20wjPdVvk&q=85&s=5bce81d59293cecbeffb5050dd913025" alt="Terminal editing ~/.codex/config.toml" style={{width: "100%", maxWidth: "800px", margin: "0 auto"}} width="2396" height="356" data-path="images/mcp/codex-edit-config.png" />
    </Frame>
  </Step>

  <Step title="Add the Slashy server">
    Paste this block at the end of the file:

    ```toml theme={null}
    [mcp_servers.slashy]
    url = "https://slashy.ctrlcenter.ai/mcp"
    ```

    Save and exit.

    <Frame>
      <img src="https://mintcdn.com/karvixinc/Cf5d-qp20wjPdVvk/images/mcp/codex-config.png?fit=max&auto=format&n=Cf5d-qp20wjPdVvk&q=85&s=1b63373939d319bba080c51889a74d95" alt="Codex config.toml with Slashy block" style={{width: "100%", maxWidth: "800px", margin: "0 auto"}} width="2614" height="426" data-path="images/mcp/codex-config.png" />
    </Frame>
  </Step>

  <Step title="Start Codex and approve OAuth">
    Run `codex` in your terminal. On first launch, it opens your browser to the Slashy login page. Sign in with Google and click **Allow**.

    <Frame>
      <img src="https://mintcdn.com/karvixinc/Cf5d-qp20wjPdVvk/images/mcp/codex-oauth.png?fit=max&auto=format&n=Cf5d-qp20wjPdVvk&q=85&s=5a10441acced2ba502720217535a5a62" alt="Codex CLI launching + OAuth popup" style={{width: "100%", maxWidth: "700px", margin: "0 auto"}} width="1860" height="1358" data-path="images/mcp/codex-oauth.png" />
    </Frame>
  </Step>

  <Step title="Verify the connection">
    Inside Codex, type `/mcp`. You should see **slashy** listed as connected with its tools visible.

    <Frame>
      <img src="https://mintcdn.com/karvixinc/Cf5d-qp20wjPdVvk/images/mcp/codex-verify.png?fit=max&auto=format&n=Cf5d-qp20wjPdVvk&q=85&s=99de768d37f14bbdb94cb68c005ff24d" alt="Codex /mcp output showing Slashy connected" style={{width: "100%", maxWidth: "800px", margin: "0 auto"}} width="2288" height="384" data-path="images/mcp/codex-verify.png" />
    </Frame>
  </Step>
</Steps>

## What happens after setup

Codex caches the OAuth token in `~/.codex/auth/`. It refreshes automatically on expiry.

## Next steps

<CardGroup cols={2}>
  <Card title="Using Slashy MCP" icon="play" href="/how-to-guides/slashy-mcp-using">
    Email prompts for triage, drafting, follow-ups, and scheduling.
  </Card>

  <Card title="Troubleshooting" icon="wrench" href="/how-to-guides/slashy-mcp-troubleshooting">
    Fixes for OAuth, missing tools, and wrong accounts.
  </Card>
</CardGroup>
