Skip to main content
← All Telegram MCP connectors

opencode · SST

opencode Telegram MCP - give your terminal agent your inbox

Add Entergram as an MCP server in opencode, SST’s open-source terminal AI agent, and let it work your real Telegram account - surface missed messages, chase leads that went cold, and act on chats from the command line.

MCP server URL https://mcp.entergram.com/mcp

opencode loads MCP servers from its config file. Register Entergram’s as a remote MCP server and SST’s open-source agent can work your real personal Telegram account in the terminal - scoped by OAuth, with no bot account and no API keys.

Paste-ready configuration

Paste-ready configuration
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "entergram": {
      "type": "remote",
      "url": "https://mcp.entergram.com/mcp",
      "enabled": true
    }
  }
}

Connect opencode in 3 steps

Works with the opencode TUI and CLI.

  1. 01

    Copy your MCP URL in Entergram

    Copy your endpoint from Entergram under Settings → Workspace → Connectors → MCP. opencode reads it out of opencode.json, so you'll paste it into a file rather than a prompt.

  2. 02

    Add the server in opencode.json

    In your opencode.json, add Entergram under "mcp" as a remote server pointing at the Entergram MCP URL: https://mcp.entergram.com/mcp.

  3. 03

    Authorize and run

    Start opencode, log in with your Entergram account, and click Allow access to grant scoped access. opencode can then read and act on your Telegram account in its sessions.

Ask opencode things you could never ask Telegram

With your personal account connected, opencode can act across every chat from the terminal. Try prompts like:

  • “Open an incident channel and pull in whoever is on call.”
  • “Post the deploy summary to the customer updates channel.”
  • “How many tickets are still open before I cut the release?”
  • “Find chats mentioning the migration and summarize the concerns.”
  • “Add a note to that thread with the rollback plan.”
  • “Who in the beta group has not replied to the upgrade notice?”

What opencode can do with your Telegram

  • -Drive Telegram entirely from the keyboard
  • -Announce a deploy to a customer channel post-ship
  • -Open an incident channel and invite responders
  • -Count open tickets before cutting a release
  • -Configure globally or per project via opencode.json
  • -Run non-interactively for scripted jobs

opencode + Telegram FAQ

How does opencode connect to MCP servers?
opencode reads MCP servers from its config file. Add Entergram as a remote server with the MCP URL and authorize via OAuth.
Is this a Telegram bot?
No. There is no bot token anywhere in this setup - the hosted MCP server acts as your own Telegram account, which is why it can read history a bot never could.
Is it secure?
Yes. OAuth 2.0 with scoped permissions; you decide what opencode can access and can revoke it at any time.
Can opencode run multi-step Telegram actions?
Yes. As an autonomous terminal agent, opencode can chain steps in one run - read unanswered chats, draft replies and open tickets - pausing for your approval before anything is sent.

opencode Telegram MCP - give your terminal agent your inbox