Codex + FirstReply

Your support inbox in Codex

Codex is OpenAI's coding agent for the terminal, the IDE and the ChatGPT desktop app. Add FirstReply once and Codex looks up the conversation behind a bug report, drafts the reply and announces the fix while you work on the code.

  • One command, sign in through the browser
  • The Codex CLI, the IDE extension and the ChatGPT desktop app share the setup
  • An API key works on machines without a browser

How to connect FirstReply to Codex

  1. Add the server

    Run this in your terminal. Codex saves the server in ~/.codex/config.toml, which the Codex CLI, the IDE extension and the ChatGPT desktop app share. Without the terminal: in the ChatGPT desktop app open Settings, then MCP servers, in the IDE extension the gear menu, then MCP servers. Select Add server, enter firstreply as the name, choose Streamable HTTP, paste the address, save and select Restart (Restart extension in the IDE).

    Terminal
    codex mcp add firstreply --url https://mcp.firstreply.ai/
  2. Sign in

    Run this and follow the sign-in in your browser. In a terminal without a local browser add --no-browser, open the printed address in a browser and paste the full redirect URL back into the terminal. In the desktop app and the IDE extension, select Authenticate next to the server. FirstReply shows which app asks for access. If it says the app could not be verified, continue only when you started the connection yourself.

    Terminal
    codex mcp login firstreply
  3. Or use an API key

    To skip the browser sign-in, create a key in FirstReply under Settings, Development, API keys, put it in the environment variable FIRSTREPLY_API_TOKEN where Codex runs and add the server with this command instead of the first one. Codex sends the key as a bearer token. A key acts with the permissions of the workspace owner, so create one just for this.

    Terminal
    codex mcp add firstreply --url https://mcp.firstreply.ai/ \
      --bearer-token-env-var FIRSTREPLY_API_TOKEN
  4. Ask

    Ask in plain words. In the Codex CLI, /mcp lists the server and its tools. According to OpenAI, Codex can ask for approval before tool calls that advertise side effects and always asks before destructive ones. To have it ask before every FirstReply tool that changes something, such as sending a reply, add this line to the [mcp_servers.firstreply] table: the writes mode prompts for every tool that is not marked read-only.

    ~/.codex/config.toml
    default_tools_approval_mode = "writes"

MCP server documentationCodex documentation

Steps compared with the Codex documentation on November 27, 2026. Apps change their menus: if a label differs, the documentation linked above has the current one.

What to ask Codex

Plain sentences are enough. A few to start with:

  • Find this week's conversations that mention the export bug.
  • Summarize what customers reported about the last release.
  • Draft a reply to the latest conversation about the login error: the fix ships tomorrow.
  • Add a knowledge base entry about the new rate limits from docs/api.md.
  • Write a release post for X and LinkedIn from CHANGELOG.md and schedule it for tomorrow at 10.
  • Which customers are waiting for the fix in this branch?

What Codex can do with FirstReply

The same tools for every assistant, checked against the permissions of the person who signed in.

  • Work through the inbox

    List, filter and search conversations across email, chat, WhatsApp and social channels, read a whole thread, assign it, change its priority or close it.

  • Draft replies from your knowledge

    The assistant asks FirstReply for a draft grounded in your knowledge base and shows it to you. It is sent once you agree with the text.

  • Plan and schedule posts

    Write or shorten a post for each network, save it as a draft, schedule it or move it to another time. A person can still change it before it goes out.

  • Report on support and posts

    Response and resolution times, conversations per teammate and category, and views, likes and follower growth per post and channel.

  • Keep the knowledge base current

    Search what the team has documented, add or correct an entry and start the sync of a connected source.

  • Look up contacts and settings

    Find a customer and their history, and manage contacts, categories, reply templates, saved filters and webhooks.

You decide what goes out

An assistant that can answer customers and post in public needs limits. These are built into the server, not left to the prompt.

  • Replies start as drafts

    The assistant gets a draft, not a sent message. The tools that reach a customer are marked as such, so its app can ask you to confirm them first.

  • No post goes out right away

    An assistant can draft and schedule, at least ten minutes ahead. It cannot publish immediately, approve a post or delete one, and where your team requires approval a manager still decides.

  • Your permissions, nothing more

    You sign in with your FirstReply account and the assistant acts as you. What you cannot see or change in the app, it cannot either.

  • Disconnect any time

    Every connected assistant appears under Devices on your profile page. Signing it out there ends its access at once.

Frequently asked questions

Where does Codex store the FirstReply server?
In ~/.codex/config.toml, which the Codex CLI, the IDE extension and the ChatGPT desktop app read, so you set it up once. For one project you can use .codex/config.toml, which Codex only reads in trusted projects. ChatGPT on the web does not read this file: there FirstReply is added as a plugin.
Do I need a FirstReply API key for Codex?
No. codex mcp login signs you in through the browser with your FirstReply account, and Codex acts with your permissions. The API key is the alternative when a browser sign-in is not possible, for example on a remote machine.
Can Codex reply to customers without asking?
Codex always asks before tools that are marked destructive. Set default_tools_approval_mode to writes or prompt for FirstReply so it also asks before sending a reply, then read the draft and confirm. Posts are never published right away: they are saved as drafts or scheduled at least ten minutes ahead.
Is there a FirstReply skill for Codex?
Yes. Codex reads skills from .agents/skills in your repository and from ~/.agents/skills. Run npx skills add https://firstreply.ai --agent codex in a project, or add -g for all of your projects, and the skill sits next to the server and explains to Codex how to use FirstReply's tools.

Codex is a trademark of its owner. FirstReply is not affiliated with it.

Get started today

Stop wasting time and money on manual customer support. Let our AI assistant handle it, starting today.

No credit card required
14-day free trial