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
- Run
pip install octop-gatewayin a Python 3.12+ environment. - 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.
- 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
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer