---
title: "Telegram MCP for Codex: answer Telegram chats · Spaces"
description: "Connect Codex to Telegram with Spaces: it reads and answers your Telegram chats from your own account, inside Telegram’s limits. Free to start."
url: https://www.spacesos.com/agents/codex/telegram
---

# Telegram MCP for Codex

Yes. Spaces is the messaging layer for AI agents, and it works as a Telegram MCP server for Codex. Add Spaces to Codex, connect your own Telegram account, and Codex can read and answer your Telegram chats, with 256 Telegram tools, inside Telegram’s limits. Codex never sees your Telegram password.

[Start free](https://app.spacesos.com/signup) [Telegram API for AI agents](https://www.spacesos.com/telegram-api)

## What Codex can do on Telegram

- Read and answer Telegram chats, with photos, voice notes and files
- Start a chat with someone who expects to hear from you
- Star, pin, edit or delete messages, and react with an emoji
- Schedule messages and run automations

Every Telegram tool is listed on [Telegram for AI agents](https://www.spacesos.com/channels/telegram).

## Connect Codex to Telegram

1. Run the command below once. It is saved in ~/.codex/config.toml for every Codex client.
2. Run codex mcp login spaces and sign in to Spaces in the browser.
3. Connect your Telegram account in Spaces. Link your Telegram account with a QR code in the Telegram app, or sign in with a code sent to your phone.

```
codex mcp add spaces --url https://api.spacesos.com/mcp
codex mcp login spaces
```

Only want Telegram? Use `https://api.spacesos.com/mcp/telegram` as the address instead, and Codex sees only the Telegram tools.

**Check it worked.** Run codex mcp list, or /mcp inside Codex. Spaces is listed with its tools.

Steps checked against [Codex MCP docs](https://developers.openai.com/codex/mcp) on 3 Nov 2026. Full Codex setup: [Connect Codex to Spaces](https://www.spacesos.com/agents/codex).

## Answer Telegram without being asked

A chat app answers when you ask it to. To have chats answered within minutes, let your agent listen for new messages: it calls wait_for_events in a loop, or you register a URL with create_event_webhook, or create a trigger. Spaces shows on Your agent whether each agent listens or only acts when asked.

FAQ

## Questions, *answered.*

**Still have a question?** Ask your AI agent: it can read our docs. Or browse every answer.[All answers](https://www.spacesos.com/answers)

### Is there a Telegram MCP server for Codex?

Yes. Spaces is the messaging layer for AI agents, and it works as a Telegram MCP server for Codex. Add Spaces to Codex, connect your own Telegram account, and Codex can read and answer your Telegram chats, with 256 Telegram tools, inside Telegram’s limits. Codex never sees your Telegram password.

### Do I need the Telegram API or an approval to use Telegram with Codex?

No. Link your Telegram account with a QR code in the Telegram app, or sign in with a code sent to your phone. Spaces handles the connection, so there is no developer app to set up and nothing for Codex to approve on the Telegram side.

### Can Codex only use Telegram and nothing else?

Yes. Use https://api.spacesos.com/mcp/telegram as the address instead of https://api.spacesos.com/mcp, and Codex sees only the Telegram tools. You can also limit which accounts it may use under Your agent in Spaces.

### Will Codex answer Telegram chats on its own?

A chat app answers when you ask it to. To have chats answered within minutes, let your agent listen for new messages: it calls wait_for_events in a loop, or you register a URL with create_event_webhook, or create a trigger. Spaces shows on Your agent whether each agent listens or only acts when asked.

### Can Telegram block my account if Codex sends messages?

Telegram restricts accounts that send too much or too fast. Spaces keeps every action inside Telegram’s limits, paces sends and warms new accounts up, which lowers the risk without removing it. The limits are at /limits/telegram.

### What does it cost?

[Free to start](https://www.spacesos.com/pricing). Reading messages is always free. Codex itself is billed by its own maker.

## Telegram with other AI agents

[Claude Code](https://www.spacesos.com/agents/claude-code/telegram), [Claude](https://www.spacesos.com/agents/claude/telegram), [Cursor](https://www.spacesos.com/agents/cursor/telegram), [ChatGPT](https://www.spacesos.com/agents/chatgpt/telegram), [Grok](https://www.spacesos.com/agents/grok/telegram), [OpenClaw](https://www.spacesos.com/agents/openclaw/telegram), [Hermes](https://www.spacesos.com/agents/hermes/telegram), [Muse](https://www.spacesos.com/agents/muse/telegram), [Grokbot](https://www.spacesos.com/agents/grokbot/telegram), [Claude Duet](https://www.spacesos.com/agents/claude-duet/telegram), [Instinct](https://www.spacesos.com/agents/instinct/telegram), [GitHub Copilot](https://www.spacesos.com/agents/github-copilot/telegram), [n8n](https://www.spacesos.com/agents/n8n/telegram), [Perplexity](https://www.spacesos.com/agents/perplexity/telegram), [Poke](https://www.spacesos.com/agents/poke/telegram), [Mistral Vibe](https://www.spacesos.com/agents/mistral-vibe/telegram), [Copilot Studio](https://www.spacesos.com/agents/copilot-studio/telegram), [Lindy](https://www.spacesos.com/agents/lindy/telegram), [Dust](https://www.spacesos.com/agents/dust/telegram), [Google Antigravity](https://www.spacesos.com/agents/antigravity/telegram), [Devin Desktop](https://www.spacesos.com/agents/devin-desktop/telegram), [Kiro](https://www.spacesos.com/agents/kiro/telegram), [Zed](https://www.spacesos.com/agents/zed/telegram), [Warp](https://www.spacesos.com/agents/warp/telegram), [Amp](https://www.spacesos.com/agents/amp/telegram), [Goose](https://www.spacesos.com/agents/goose/telegram), [Cline](https://www.spacesos.com/agents/cline/telegram), [Junie](https://www.spacesos.com/agents/junie/telegram).

## Codex on other channels

[WhatsApp MCP for Codex](https://www.spacesos.com/agents/codex/whatsapp), [Instagram MCP for Codex](https://www.spacesos.com/agents/codex/instagram), [LinkedIn MCP for Codex](https://www.spacesos.com/agents/codex/linkedin), [Messenger MCP for Codex](https://www.spacesos.com/agents/codex/messenger).

Live in under 60 seconds

## Give Codex your Telegram today.

Connect your Telegram account in a minute. Free to start, no card needed.

For you[Start free, live in 60 seconds](https://app.spacesos.com/signup) No card needed. Connect WhatsApp, Instagram, LinkedIn or Messenger.

For your AI agent

`Set up Spaces for me by following https://www.spacesos.com/agents`

Paste it into Grok, Muse, Claude or ChatGPT. Your agent does the rest.
