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

# Connect Codex

> Add Goosy Bear to Codex with a TOML entry that names the variable holding your key.

Codex names the environment variable that holds your key, so the config file
never contains a credential.

<Steps>
  <Step title="Create a key">
    On **Settings → API & MCP**, create a key and copy it — it is shown once.
  </Step>

  <Step title="Put the key in your shell profile">
    Then open a new terminal so the variable is set.

    ```bash theme={null}
    export GOOSY_API_KEY="<paste the key you copied when you minted it>"
    ```
  </Step>

  <Step title="Add the server">
    Add this to `~/.codex/config.toml`:

    ```toml theme={null}
    [mcp_servers.goosy]
    url = "https://app.goosybear.ai/api/mcp/mcp"
    bearer_token_env_var = "GOOSY_API_KEY"
    ```
  </Step>

  <Step title="Check it">
    Start Codex and ask it which Goosy tools are available.
  </Step>
</Steps>

<Note>
  `bearer_token_env_var` names the **variable**, never the key — Codex reads the
  value from your environment.
</Note>


## Related topics

- [FAQ](/help/faq.md)
- [Quickstart](/quickstart.md)
- [Goosy Bear documentation](/index.md)
