# Codex for sales outreach
> Use OpenAI Codex as a coding agent on Omentir. Put MCP in config.toml. Keep the token in an env var. Draft in the session. Send from the workspace. Codex is not ChatGPT chat.
- HTML: https://omentir.com/codex-sales-outreach
- Markdown: https://omentir.com/codex-sales-outreach.md

## The job

Codex is OpenAI's coding agent. The CLI and the IDE extension share ~/.codex/config.toml. That file is the connect path. ChatGPT's connector list is not.

- Add mcp_servers.omentir with the hosted MCP URL.
- Set bearer_token_env_var to the variable name, not the token.
- Run /mcp before you ask for a finder.
- Send from Omentir. Do not sign into LinkedIn from Codex.

## The config

Export OMENTIR_API_KEY before you launch Codex. A project-local .codex/config.toml only loads for trusted projects. If tools never appear, start with the global file. The table name needs an underscore: mcp_servers.

```
[mcp_servers.omentir]
url = "https://omentir.com/api/agent/v1/mcp"
bearer_token_env_var = "OMENTIR_API_KEY"
```

## Paste this into Codex

Finish Omentir first. Fetch [agents.md](https://omentir.com/agents.md). Replace the brackets. Keep the last two sentences.

```
You are Codex, running against my repo through Omentir.

My product helps [buyer] get [result]. Best-fit accounts are [company type, size, region]. Strong signals: [signal]. Skip [bad fit].

Work only through the Omentir MCP server named in config.toml. Read https://omentir.com/agents.md if you have not. Start with get_context, then list_agents. If no finder matches this ICP, show me a create_agent config and wait for a yes.

Do not put secrets in config.toml. bearer_token_env_var is the name of an environment variable, not the token.

Pull up to 30 people. For each one write fit 1-5, the evidence, any risk, and a two-sentence draft that cites a real trigger. If a note could fit two buyers, rewrite it.

Do not send. Do not enroll. Do not sign into LinkedIn.
Do not create, delete, or reply unless I ask in this session.
```

## Related

- [Codex outbound](https://omentir.com/use-cases/codex-outbound.md)
- [Codex integration](https://omentir.com/integrations/codex.md)
- [Codex for LinkedIn outreach](https://omentir.com/blogs/codex-linkedin-outreach.md)

## Common questions

**Is Codex the same as ChatGPT?**

No. ChatGPT chat uses Connectors and workspace approval. Codex uses TOML and a Bearer env var. See [Codex or ChatGPT](/help/should-i-use-codex-or-chatgpt-for-sales).

**Can I put the API key in the TOML file?**

You can. You should not. bearer_token_env_var wants the variable name.

**Does Codex keep working after I close it?**

No. Overnight on a shared computer is [Grok Bot](/help/what-is-the-difference-between-grok-bot-and-grok-com).

**Should I pick Cursor instead?**

Pick the agent you already open. Cursor has its own MCP client. Codex shares config.toml across CLI and extension.

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