ChatMate for Codex

Connect Telegram to Codex.

Use messages and files from the chats connected to your personal ChatMate bot to update code and docs. Codex in the ChatGPT desktop app uses your ChatGPT plugin; in the CLI and IDE extension, add ChatMate with one command.

Codex CLI in a terminal: the owner asks it to answer the partner’s API questions that Mila collected in a Telegram group. Codex finds the messages, reads the thread and writes the answers into docs/faq.md.

Add with
ChatGPT Plugins, or codex mcp add
Works in
Codex CLI, IDE extension, ChatGPT desktop app
Sign-in
With Telegram in the browser

Connect Codex.

Codex in the ChatGPT desktop app shares plugins with ChatGPT, so ChatMate added to ChatGPT is already there. The CLI and the IDE extension keep their own servers in ~/.codex/config.toml.

First, your personal bot

Codex reads Telegram through your own ChatMate bot. Create it in @chatmate_agent and connect the chats you want. It takes a couple of minutes in Telegram and is done once for every AI.

How to create the bot and connect chats
  1. Desktop app: add ChatMate to ChatGPT

    Plugins+Add custom MCP server

    Skip this if ChatMate is already in ChatGPT. Otherwise name it ChatMate, paste the address, choose OAuth, press Create as a plugin and sign in with Telegram. Codex in the desktop app uses the same plugin.

    MCP server URL
    https://www.getchatmate.com/api/connector/mcp
  2. CLI and IDE extension: add the server

    Run this in a terminal. Codex saves ChatMate to ~/.codex/config.toml, which the CLI and the IDE extension share, and opens the sign-in in your browser.

    Terminal
    codex mcp add chatmate --url https://www.getchatmate.com/api/connector/mcp
  3. Sign in with Telegram

    Sign in with Telegram and allow access. If the browser didn’t open, start the sign-in again; on a remote machine add --no-browser.

    Terminal
    codex mcp login chatmate
  4. Start a new session and ask

    Codex loads servers and plugins when a session starts. In the CLI, /mcp lists chatmate. Then ask: “Mila collected the partner’s API questions in Telegram. Answer them in docs/faq.md.”

What works in Codex.

Codex reads the chats you connected, from the moment you connected them and up to 30 days back.

  • Questions and specs from chats

    A partner’s questions in a group, a teammate’s notes in a private chat: Codex finds them and works from the original wording.

  • Files people sent

    Logs, PDFs and screenshots from connected chats, opened when the task needs them.

  • A reply in Telegram

    Ask Codex to tell the person when the change is in. With the approval mode below, it asks before anything goes out.

  • Added once in ChatGPT

    The ChatMate plugin you added in ChatGPT also works in Codex inside the ChatGPT desktop app, with the same sign-in.

Questions about Codex.

More answers in Help
Is this the same as adding ChatMate to ChatGPT?

In the ChatGPT desktop app, yes: Codex there shares plugins with ChatGPT, so the ChatMate plugin works in both. The CLI and the IDE extension keep their own list in ~/.codex/config.toml; add ChatMate there with codex mcp add.

How do I make Codex ask before sending to Telegram?

In the CLI and the IDE extension, add default_tools_approval_mode = "writes" under [mcp_servers.chatmate] in ~/.codex/config.toml. Codex then asks before every tool that isn’t marked read-only, and sending is one of them. In the desktop app, Codex applies its own approval policy to plugin tools.

Where did the Codex app go?

In July 2026 OpenAI moved it into the new ChatGPT desktop app. Update the app and Codex is inside, with your ChatGPT plugins and the same MCP servers as the CLI.

Do I need an api_id or a Telegram session?

No. Codex never logs in to Telegram. Your personal ChatMate bot receives the chats you connect, and Codex signs in to ChatMate with OAuth.

How do I remove it?

Remove the plugin in ChatGPT, or run codex mcp remove chatmate in the CLI. To disconnect the grant itself, open Profile in your bot or on the site.

Plug your chats into your AI.

Works with ChatGPT, Claude and other AIs.

Start in Telegram
QR code that opens @chatmate_agent in Telegram
Open on your phone