builtin Go (infra/connectors/dingtalk) · DingTalk Stream Mode WebSocket

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.

Transport
DingTalk Stream Mode WebSocket
Instance Env Keys
DINGTALK_CLIENT_ID, DINGTALK_CLIENT_SECRET
LLM Isolation
DINGTALK_ stripped from 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.

Product & Ops Group · DingTalk
PMReads local Jira connector

@ReportBot Summarize this week’s closed Jira tickets and open blockers

OwnerInspect group-visible schedules

@ReportBot /schedule

Setup & config

Generate manifest →
  1. 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. 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. 3. Register in connectors.json & Run Check

    Bind DINGTALK_CLIENT_ID and DINGTALK_CLIENT_SECRET via env_keys and verify with tagtag connector check.

connectors.json
{
  "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

Sensitive query strings in sessionWebhook URLs appearing in error logs

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.

See how 7 zero-token slash commands control harnesses in chatSlash commands
Local agents
IM platforms