# How do I connect Codex to Omentir?
> Add a streamable HTTP MCP server in ~/.codex/config.toml. Point url at the Omentir MCP endpoint. Put the token name in bearer_token_env_var, not the token itself. Then run /mcp.
- HTML: https://omentir.com/help/how-do-i-connect-codex-to-omentir
- Markdown: https://omentir.com/help/how-do-i-connect-codex-to-omentir.md

Codex does not use the ChatGPT connector UI for this path. Configuration lives in ~/.codex/config.toml, or in a project .codex/config.toml if that repo is trusted. The table name is mcp_servers, with an underscore. mcp-servers is ignored.

Create a revocable API key on the API keys page. Export it as an environment variable before you launch Codex. Add an mcp_servers.omentir table with url https://omentir.com/api/agent/v1/mcp and bearer_token_env_var set to OMENTIR_API_KEY. That field is the name of the variable. Do not paste the token, and do not write $OMENTIR_API_KEY.

Finish Omentir first: LinkedIn connected, [My Product](/features/my-product) written. Start a Codex session and run /mcp. If the server is missing, the env var was empty at launch, the project file was not trusted, or the table name is wrong.

The CLI and the IDE extension share the same config file. ChatGPT chat is still the connector product. Do not mix those. Fetch [agents.md](https://omentir.com/agents.md) before you let Codex create a finder.

Codex should never sign into LinkedIn. Caps and send stay in Omentir. Longer walkthrough: [Codex for LinkedIn outreach](/blogs/codex-linkedin-outreach). Integration notes: [Codex integration](/integrations/codex).

## Related

- [Can I use Codex for LinkedIn outreach?](https://omentir.com/help/can-i-use-codex-for-linkedin-outreach.md)
- [Should I use Codex or ChatGPT for sales?](https://omentir.com/help/should-i-use-codex-or-chatgpt-for-sales.md)
- [How do I connect Cursor to Omentir?](https://omentir.com/help/how-do-i-connect-cursor-to-omentir.md)

## Frequently asked questions

**Can I paste the token into config.toml?**

You can. You should not. The file is easy to commit. Use bearer_token_env_var with the variable name.

**Is this the same as connecting ChatGPT?**

No. ChatGPT chat uses Settings, Connectors, and workspace approval. Codex uses TOML and a Bearer env var.

**Does project-local config always load?**

Only for trusted projects. If tools never appear, try the global ~/.codex/config.toml first.

**Does Codex get my LinkedIn password?**

No. It calls Omentir tools. LinkedIn stays connected inside Omentir.

[Create an Omentir account](https://omentir.com/signup). Pro is $49/month.
