Connect Claude Code, Codex & Any Local Agent to Feishu (Lark) Without a Public IP
TagTag connects your local CLI agents (Codex, Claude Code, AGY) directly to Feishu / Lark using Feishu’s official WebSocket long connection—so your machine never exposes an inbound port. Each Bot maps to its own Feishu bot identity, supports text, images, post attachments, quoted replies, interactive trace cards, and works alongside other Bots in the same group chat.
Multi-Bot group chats
Invite multiple TagTag Bots into the same Feishu group (for example, a Coding Bot running Claude Code and an Ops Bot running Codex). Mention whichever Bot you want directly with @, and use 7 zero-token slash commands like @Bot /model harness codex or @Bot /trace. Sensitive views (/trace prompt, /trace raw) are automatically routed only to the owner’s private chat.
@CodeBot Check why the Feishu inbound media test timed out on main
@CodeBot /model harness codex
@OpsBot Summarize today’s Sentry alerts and Grafana spikes
Setup & config
Generate manifest →- 1. Create a Feishu Custom App & Enable Bot
Open Feishu Open Platform, create a custom enterprise app, enable the Bot capability, and copy your App ID and App Secret.
- 2. Subscribe Events via Long Connection (WebSocket)
Under Events & Callbacks, choose WebSocket Long Connection (no request URL needed) and subscribe to im.message.receive_v1. Grant im:message, im:message:send_as_bot, im:message.group_at_msg:readonly, im:message.p2p_msg:readonly, and im:resource:upload.
- 3. Register Multiple Instances & Verify Without Spending Tokens
Add one or more Feishu instances (e.g. feishu:default, feishu:dev) in connectors.json and run tagtag connector check to verify connectivity before starting any LLM.
{
"id": "feishu:default",
"type": "feishu",
"enabled": true,
"bot_id": "dev-assistant",
"access": "send",
"env_keys": ["FEISHU_APP_ID", "FEISHU_APP_SECRET"],
"config": {
"domain": "feishu"
}
}Connector recipes
Feishu Bitable + Morning Digest
Pair the feishu-bitable connector (reusing local lark-cli with zero extra keys) with feishu:default as default_target to summarize weekly tables directly into your group.
GitHub + Sentry + Grafana → Feishu Group
Ingest alerts locally via zero-dependency poll plugins, let your Bot deduplicate and diagnose against your local repo, and post one concise summary to Feishu.
Verified pitfalls
TagTag routes lark-oapi logs through a custom stderr logger (feishuSDKLogger) and redacts AppSecret automatically.
TagTag deduplicates post text segments and downloads inbound image attachments cleanly before passing context to the Bot.
FAQ
Can one TagTag instance connect multiple Feishu Bots?
Yes. Connector definitions and instances are separated in TagTag—you can configure feishu:default, feishu:dev, or separate Bots in connectors.json, each with isolated credentials and sessions.
Does the underlying Claude Code or Codex process see FEISHU_APP_SECRET?
No. TagTag strips FEISHU_ and LARK_ prefixes (along with 23 other credential groups) from every harness subprocess.