Connect Local AI Agents (Claude Code, Codex) to DingTalk via Stream Mode
TagTag connects your local agent harnesses to DingTalk using DingTalk’s official Stream Mode WebSocket along with OAuth2 and sessionWebhook replies—completely removing the need for a public server or reverse proxy. Your DINGTALK_ credentials stay isolated in Go outside the LLM.
Multi-Bot group chats
Add multiple DingTalk enterprise bots backed by different harnesses into your team group, @mention the right Bot for code reviews, bug triage, or daily data reports, and isolate owner diagnostics from group members.
@ReportBot Summarize this week’s closed Jira tickets and open blockers
@ReportBot /schedule
Setup & config
Generate manifest →- 1. Create an Internal DingTalk App & Enable Robot
Create an internal enterprise app in DingTalk Open Platform, add the Robot capability, and note your Client ID and Client Secret.
- 2. Switch Message Receiving Mode to Stream Mode
Select Stream Mode instead of HTTP callback so TagTag connects outbound over WebSocket without exposing any local port.
- 3. Register in connectors.json & Run Check
Bind DINGTALK_CLIENT_ID and DINGTALK_CLIENT_SECRET via env_keys and verify with tagtag connector check.
{
"id": "dingtalk:team",
"type": "dingtalk",
"enabled": true,
"bot_id": "pm-bot",
"access": "send",
"env_keys": ["DINGTALK_CLIENT_ID", "DINGTALK_CLIENT_SECRET"],
"config": {}
}Connector recipes
Jira + Grafana + Scheduled Daily Standup in DingTalk
Combine timer, jira, and grafana connectors to deliver concise weekday summaries into your DingTalk group without noisy alert spam.
Verified pitfalls
TagTag hardens DingTalk and WeCom webhook error logging with automatic URL secret redaction.
FAQ
Does DingTalk Stream Mode work behind corporate NAT or office Wi-Fi?
Yes. Because Stream Mode opens a standard outbound WebSocket connection from your laptop, it works behind home and office NATs without port forwarding.