# Codex for LinkedIn 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 and it should not hold LinkedIn.
- HTML: https://omentir.com/blogs/codex-linkedin-outreach
- Markdown: https://omentir.com/blogs/codex-linkedin-outreach.md

- Category: Playbooks

- Published: August 27, 2026

- Updated: August 27, 2026

- Read time: 8 min read

OpenAI Codex is a coding agent, not a LinkedIn client. If you already run it against the repo, the same session can talk to  [Omentir](https://omentir.com/index.md)  over MCP, score a batch, and leave drafts. It should not hold a LinkedIn password. It should not invent a campaign while you are midway through a refactor.

This is not the ChatGPT connector. ChatGPT uses Settings, Connectors, and workspace approval. Codex reads  ~/.codex/config.toml. Mixing those paths is how people paste a token into a chat UI, or wait for an OAuth screen that never appears.

## Why the TOML file matters

The CLI and the IDE extension share the same file. Get the table name wrong (mcp-servers instead of mcp_servers) and Codex ignores the block. If you paste the actual token into bearer_token_env_var, Codex treats that string as a variable name and auth fails. Put OMENTIR_API_KEY there, and export the key before you launch. Then run /mcp in the session. If the server is missing, fix that before you invent a second connect path.

A project-local `.codex/config.toml` only loads for trusted projects. If tools never appear, start with the global file. Setup:  [Codex integration](https://omentir.com/integrations/codex.md) .

## The config Codex expects

Create a revocable key. Export it as OMENTIR_API_KEY. Point url at  CODEX_MCP_URL. Keep send behind review.

## A first Codex job

Finish Omentir first. Fetch  [agents.md](https://omentir.com/agents.md) . Start with get_context and list_agents. If you want a new finder, ask it to show the config and wait. Replace the brackets. Keep the last two sentences.

## Not ChatGPT chat

If you wanted a conversation this afternoon with no repo open, use the  [ChatGPT integration](https://omentir.com/integrations/chatgpt.md) . If you wanted the editor instead of Codex, use  [Cursor for LinkedIn outreach](https://omentir.com/blogs/cursor-linkedin-outreach.md) . Overnight research is  [Grok Bot](https://omentir.com/blogs/grok-bot-linkedin-sales.md) .

## When to stay in the browser

You are not in Codex. The product story is still a slogan. You cannot give the list fifteen minutes. Start in Overview. Codex earns the key when that agent is already in the repo.

## FAQs

## Frequently asked questions

**Is Codex the same as ChatGPT for outbound?**

No. ChatGPT chat uses Connectors and workspace approval. Codex uses config.toml and a Bearer env var. Same Omentir tools. Different machine.

**Where does the MCP config live?**

Usually ~/.codex/config.toml. A project .codex/config.toml only loads for trusted projects. The table name is mcp_servers, with an underscore.

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

bearer_token_env_var wants the variable name, not the token. Pasting the key into the file is how it lands in git.

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

No. Overnight on a shared computer is Grok Bot, a different product.

**Should I use Cursor instead?**

Use Cursor if that is already the editor. Use Codex if you already run the Codex CLI or extension. Do not run both on day one.

**Do I need Codex if I already use Omentir?**

No. Overview already finds people and drafts notes. Add Codex if that agent is already in the repo.

## Paste-ready job

```
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.

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

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