DEDUPED Hot AI repos, turned into use cases Get the Monday 5

How to run two Feishu apps for two teams in one process with Octop Gateway

Register two channels of the same kind with separate credentials and keep them isolated.

Short answer: Run pip install octop-gateway in a Python 3.12+ environment; then create two FeishuConfig objects, one for each team's app_id and app_secret; create one ChannelManager with a shared processor and call add_feishu_channel once for each config. All steps.

Credentials. Each team's Feishu app secret must be stored separately so one team's credentials are not exposed to the other.

Who it is forAn operator supporting two internal teams that each need their own Feishu app and bot.

The problemRunning two bots in separate processes doubles deployment work, and mixing them in one channel leaks context between teams.

The outcomeOne process with two Feishu channels, each isolated by its channel_id and tied to its own app credentials.

What you need first

  • Python 3.12+
  • Credentials for each platform you connect, such as a Telegram bot token, Feishu app ID and secret, or a Discord bot token
  • Access to the developer portal of each platform you use
  • A processor function that reads InboundMessage and yields MessageEvent objects

Steps

  1. Run pip install octop-gateway in a Python 3.12+ environment.
  2. Create two FeishuConfig objects, one for each team's app_id and app_secret.
  3. Create one ChannelManager with a shared processor and call add_feishu_channel once for each config.
  4. Send a test message to each team's bot and check the replies come from the matching channel.

Prompt for your agent

In the TencentCloud/octop-gateway repo, create one ChannelManager with two Feishu channels using credentials for <team A> and <team B> from environment variables. Expected output: two channels running side by side with distinct channel_id values. Verify that a message to team A's bot never appears on team B's channel.

Caveat. The README says channels are isolated by channel_id, but it does not describe how to set a custom channel_id, so check the generated ids in the startup logs.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for TencentCloud/octop-gateway and "Run two Feishu apps for two teams in one process"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer