Back to all workflow recipes
DingTalk Stream Mode·dingtalk + jira·Zero Public IP

Zero-Public-IP DingTalk Enterprise Bot Powered by Your Local AI Coding CLI

DIRECT ANSWER & GUARDRAILS

DingTalk’s official Stream Mode dials out from your Mac over WebSocket—zero public IP or ICP domain required. TagTag handles OAuth2 token refresh, sessionWebhook URL secret redaction (BUG-03), and strips `DINGTALK_*` keys before launching your CLI agent.

Recommended Harness
Codex CLI (`codex`) or Claude Code CLI (`claude`)
AccessGuardSink
DingTalk: outbound Stream Mode · Jira: readonly
Stripped Prefixes
DINGTALK_*, JIRA_*

What It Looks Like in Chat

Engineer

@dev-bot check Jira ENG-402 and list which local API handlers need validation updates.

@dev-bot (Claude Code)

Checked ENG-402 against local workspace: 3 handlers affected (`orders.go`, `refunds.go`, `webhooks.go`). Reply `@dev-bot patch` to prepare a draft diff locally.

Setup Steps

1. Switch DingTalk app receiving mode to Stream Mode

Create an internal enterprise app, enable Robot capability, select Stream Mode, and copy `ClientID` + `ClientSecret`.

2. Run zero-send health check

Verify credentials without spamming your real DingTalk work group using `tagtag connector check`.

Sanitized Config & Zero-Token Check

connectors.json (zero secrets embedded)
[
  {
    "id": "dingtalk:eng",
    "type": "dingtalk",
    "enabled": true,
    "bot_id": "dev-bot",
    "access": "send",
    "env_keys": ["DINGTALK_CLIENT_ID", "DINGTALK_CLIENT_SECRET"],
    "config": {}
  }
]
Zero-token dry-run verification
tagtag connector check --data-dir "$TAGTAG_HOME" --env-file .env --json dingtalk:eng
Local agents
IM platforms