Documentation

Codex in Slack

There are three ways to connect Codex and Slack, and they run in different places: OpenAI's ChatGPT app in Slack sends work to Codex Cloud, Slack's MCP server lets the Codex CLI read and post in Slack, and Molt Code runs the Codex CLI on your own computer when someone tags it in a thread.

The short answer

To tag Codex in a Slack thread and have the work run in OpenAI's cloud, use OpenAI's ChatGPT app for Slack. You mention @ChatGPT (it used to be @Codex), and repository work goes to a Codex Cloud task in an environment your workspace has shared.

To have Codex in your terminal search, read and post Slack messages, add Slack's MCP server to the Codex CLI. That gives Codex Slack as a tool. It doesn't make Codex answer when someone tags it in Slack.

To tag Codex in Slack and have the Codex CLI do the work on your own Mac or Linux computer, with the login, checkouts and tools already there, use Molt Code. Write @Molt @codex and the request, and the answer comes back in the same thread.

ChatGPT in Slack, for Codex Cloud

This is OpenAI's own Slack app. What it does, per OpenAI's docs:

  • How you start it Mention @ChatGPT in an enabled public or private channel. OpenAI says that if you used @Codex before, you start new requests with @ChatGPT once your admin enables the ChatGPT app.
  • Setup A ChatGPT workspace owner or admin sets up the Slack deployment, and your Slack workspace's app policies apply. Sending work to Codex needs Codex Cloud in the workspace and a published environment shared with the workspace.
  • Where the work runs In a separate Codex Cloud task, run as the person who asked. ChatGPT picks from the workspace-shared cloud environments you can access; personal cloud environments aren't part of this flow.
  • What comes back The result is posted in the thread. The person who asked can open the task with Follow along; the channel reply doesn't give everyone in the channel access to the task.
  • Channels Slack Connect channels shared with another organization aren't supported by this flow.

Sources: OpenAI: Use ChatGPT in Slack and OpenAI: Set up and manage @ChatGPT in Slack and Microsoft Teams. OpenAI moved the mention from @Codex to @ChatGPT recently, so check those pages for changes.

Slack's MCP server in the Codex CLI

This goes the other way: Codex calls Slack. Slack's guide adds the server with one command, then Codex asks you to sign in to Slack with OAuth:

codex mcp add --transport http slack https://mcp.slack.com/mcp

codex mcp list should then show slack as connected. Slack's MCP server gives an agent tools to search Slack, read channel history and send messages, among others. A workspace admin has to approve the MCP integration first (Slack: connect the MCP server to agent harnesses, Slack MCP server overview).

Use it when Codex should pull context out of Slack or post a summary when it finishes. It runs wherever you run Codex, and only while you do; nobody in Slack can hand Codex a task through it.

Molt Code: the Codex CLI on your computer, tagged from Slack

  • How you start it Mention the Molt bot and name the agent: @Molt @codex and the request. Naming two agents, such as @claude-code and @codex, starts a run for each in the same thread.
  • Where the work runs On your team's Mac or Linux computers, or Molt headless on a Linux server, in the checkout that is already there. A channel can be routed to an agent and up to four computers. The computer has to be on.
  • Login and model billing Codex uses the login it already has on that computer: a ChatGPT sign-in or an API key. Molt does not proxy your model calls. You can keep several Codex accounts and pick one per agent; see Multiple Claude Code and Codex Accounts.
  • Config and MCP servers Molt runs Codex with the config in that computer's Codex home, so MCP servers you added with codex mcp add, Slack's included, stay on. Agents set to a read-only permission mode run without them.
  • What comes back A run card in the thread shows the computer and the progress. The answer lands in the thread under the agent's name, with what changed, what it found and what it verified, and Open in Molt shows every command the run made.
  • Channels The bot answers in the public and private channels it has been invited to. Direct messages and Slack Connect channels are ignored.

The full walkthrough, including who may tag the bot and guests, is Claude Code and Codex in Slack.

Side by side

  • Who starts the work ChatGPT app: people in an enabled channel who have connected their ChatGPT account, with @ChatGPT. Slack MCP server: you, in your own Codex session. Molt Code: anyone allowed in the channel, with @Molt @codex.
  • Where Codex runs ChatGPT app: a Codex Cloud task in a workspace-shared environment. Slack MCP server: wherever you run Codex. Molt Code: the Codex CLI on your team's own computers.
  • What it can reach ChatGPT app: the cloud environment and the repositories you can access. Molt Code: whatever that computer reaches, including local services, a private network and installed tools. Route a channel only to computers you would let an agent use; see Isolation by Machine.
  • Other agents in the thread ChatGPT app: ChatGPT and Codex. Molt Code: Codex, Claude Code, Copilot, Cursor, OpenCode and the other CLIs installed on the computer.

Try Codex in Slack with Molt

  1. Install Molt Code on the computer that should run Codex: macOS (Apple silicon), Linux, or headless on a Linux server. If codex already runs in its terminal, Molt makes an @codex agent for it. See the Quickstart.
  2. Create a shared workspace and open your repository as a project on that computer.
  3. Connect Slack. An owner or admin opens Integrations in the workspace, approves the Slack app and invites the Molt bot to a channel.
  4. Tag Codex. Write @Molt @codex and the request, and watch the run card in the thread.

Which one to pick

Pick the ChatGPT app if your team is on a ChatGPT workspace with Codex Cloud and a shared cloud environment has what the work needs. Add Slack's MCP server if you want Codex to read or post in Slack while you work with it. Pick Molt Code if the work needs the computers you already have, if Codex should use the login on that computer, or if you want Codex and Claude Code answering in the same thread. They are separate Slack apps with separate mentions, so one Slack can have both.

Questions

Is there a Codex Slack integration?

Yes. OpenAI's ChatGPT app for Slack takes repository work when you mention @ChatGPT and runs it as a Codex Cloud task, then posts the result in the thread. Molt Code's Slack bot runs the Codex CLI on your own computer instead, when you write @Molt @codex.

Is it @Codex or @ChatGPT in Slack now?

OpenAI's docs say to mention @ChatGPT. If you used @Codex before, you start new requests with @ChatGPT once your admin enables the ChatGPT app.

How do I connect the Codex CLI to Slack?

For Codex to read and post in Slack, add Slack's MCP server with codex mcp add --transport http slack https://mcp.slack.com/mcp and sign in when Codex asks. For people in Slack to hand work to the Codex CLI on your computer, connect Slack to a Molt Code workspace and tag @Molt @codex.

Does Codex in Slack run on my own computer?

Not with OpenAI's app: its Slack flow runs work in a Codex Cloud environment shared with the workspace. With Molt Code, the Codex CLI runs on your team's Mac or Linux computer, or Molt headless on a Linux server, with the login already on it.

Can Codex and Claude Code answer in the same Slack thread?

Yes, with Molt Code. Name both agents in one message to start a run for each, or tag one, then the other, in the same thread. Each answers under its own name.

What does it cost?

The Molt Code desktop app is free. Slack connects to a shared workspace, and plans for shared workspaces start at $12 a month. Invited members never pay. Codex itself uses its own ChatGPT plan or API key.

Get started

Ready to try it yourself?

Free forever. Uses your existing API keys. Runs locally on your machine.

  • free forever
  • no account required
  • uses your existing API keys
  • macOS, Linux, iPhone & iPad