DingTalk Workspace CLI - Setup Guide¶
Source: dingtalk-real-ai/dingtalk-workspace-cli via skills.sh - 3.8K combined installs across 32 indexed listings; first seen Nov 28 2026 (evening sweep)
GitHub: DingTalk-Real-AI/dingtalk-workspace-cli - 4,200 stars, Apache-2.0 license, branch main, last pushed 2026-11-27; per-product skills live under skills/multi/
Category: Enterprise collaboration CLI - DingTalk workspace automation (chat, docs, AI tables, calendar, todo, mail, approvals) for humans and AI agents
Quality Tier: 🟠 Orange - of the 20 sampled listings, five carry a Snyk Fail cell (dingtalk-doc, dingtalk-aitable, dingtalk-misc, dingtalk-event, dingtalk-shared) and one a Gen Agent Trust Hub Warn (dingtalk-attendance).
DingTalk Workspace CLI (dws) is the officially open-sourced cross-platform command-line tool from DingTalk, published under the dingtalk-real-ai organization. It unifies DingTalk's product suite - chat, docs, AI tables, calendar, todo, mail, approvals, drive, wiki and meeting minutes - into one Go binary built for both human users and AI agent workflows, with 4,200 GitHub stars and an Apache-2.0 license. The skills.sh index lists 32 per-product listings at 3,840 combined installs.
This guide covers the official DingTalk Workspace CLI from dingtalk-real-ai and is separate from the third-party DingTalk Skills listing published by breath57, a different project that wraps DingTalk operations for agents over curl. The dws CLI ships its agent skills in two layouts: a multi mode of per-product skills (the default) and a legacy mono mode with one all-in-one dws skill.
Installation¶
Install the CLI on macOS and Linux with the one-line installer, or on Windows with the PowerShell script:
curl -fsSL https://raw.githubusercontent.com/DingTalk-Real-AI/dingtalk-workspace-cli/main/scripts/install.sh | sh
irm https://raw.githubusercontent.com/DingTalk-Real-AI/dingtalk-workspace-cli/main/scripts/install.ps1 | iex
npm and Homebrew are also supported:
npm install -g dingtalk-workspace-cli
brew tap DingTalk-Real-AI/dingtalk-workspace-cli https://github.com/DingTalk-Real-AI/dingtalk-workspace-cli.git
brew install dingtalk-workspace-cli
Then install the agent skills and sign in:
npx skills add DingTalk-Real-AI/dingtalk-workspace-cli -g
dws auth login
Installs and upgrades default to multi (per-product skills). dws skill setup is the power-user, China-mirror and upgrade path, with --mode mono or --mode multi to switch layouts and --target to pick Claude Code, Cursor, Codex, opencode, qoder, zcode or all.
What It Provides¶
| Skill | Installs | Use For |
|---|---|---|
| dingtalk-doc | 255 | Online docs (adoc): search, read and write docs, block editing, comments, permissions, media, import/export and sharing. |
| dingtalk-chat | 247 | Group chat and messages: send, receive and search messages, manage groups, bots and webhooks, and stream AI/A2UI cards. |
| dingtalk-aitable | 241 | AI Tables (multi-dimensional): bases, tables, records, fields and views, comments, SQL queries, filters, import/export, dashboards and charts. |
| dingtalk-wiki | 240 | Knowledge bases and spaces: create, find and list wikis, spaces and members, and manage the node tree. |
| dingtalk-minutes | 240 | AI meeting notes: summaries, transcripts, keywords, tags, action items, recordings, mind maps and speaker insights. |
| dingtalk-drive | 239 | Drive storage: list, search, upload, download, copy, move, rename and delete files and folders, plus permissions and local sync. |
| dingtalk-contact | 238 | Directory lookups: user details, departments, roles and email, phone reverse lookup, and self or department member queries. |
| dingtalk-aisearch | 234 | Enterprise people search by name, department, role, duty, supervisor, phone or job number, plus cross-source topic retrieval. |
| dingtalk-calendar | 232 | Calendar and meeting rooms: schedule and find events, book rooms, check free/busy, add attendees, reschedule and cancel. |
| dingtalk-todo | 231 | Todos: create, remind, assign and complete tasks, plus recurring, batch and overdue handling. |
| dingtalk-mail | 230 | Mail: read, write, search, reply and forward, plus unread lists and attachments. |
| dingtalk-misc | 220 | Catch-all: OA approvals, contracts, attendance, live, DING messages, whiteboards, mind maps, sheets, Agoal goals, reports, raw API and open platform apps. |
| dingtalk-event | 220 | Event send plus real-time subscription to IM, OA approval, VoIP, todo, calendar, interactive-card, friend and minutes events. |
| dingtalk-shared | 212 | Shared router: resolves ambiguous DWS requests, cross-product orchestration, URL prechecks and product-boundary disambiguation. |
| dingtalk-tag | 152 | Digital employees: create, query, update, publish and delete natural-language digital employees, capability resources and local profiles. |
| dingtalk-aicard | 128 | AI Cards (A2UI): create, edit and validate card JSON, charts, components and cloud templates. |
| dingtalk-skill | 27 | Skill setup: install, search and manage DWS agent skills and the skill marketplace across Claude Code, Cursor, Codex and other agents. |
| dingtalk-devdoc | 24 | Search the Open Platform docs and diagnose API errors. |
| dingtalk-attendance | 24 | Attendance: clock-in records, shifts, summaries and group rules (read-only). |
The remaining 13 indexed listings range from 2 to 23 installs.
Why This Matters for Hermes Agents¶
DingTalk Workspace CLI is one of the most complete examples of a product suite expressed as agent skills, with the whole DingTalk surface - chat, docs, tables, calendar, todo, mail, approvals, drive, wiki and minutes - reachable from one binary. It is AI-native by design: structured JSON output, --dry-run previews, --yes for non-interactive runs and --jq for token-lean field extraction are all aimed at agent callers rather than human typists. The dws schema command exposes the full command contract, so an agent can discover commands, parameters and safety semantics at runtime instead of guessing flags. The multi layout keeps each per-product skill's context small, while the legacy mono layout with references and 13 ready-made Python scripts shows how to package cross-product workflows. For a Hermes builder the security model is the most instructive part: OAuth device-flow auth, encrypted token storage, a domain allowlist and full audit on every call show how to wrap an enterprise API behind an agent-facing CLI without exposing credentials. The install surface is worth copying too - one curl installer, npm and Homebrew, plus a skill setup command that owns, backs up and upgrades agent-directory copies.
Usage¶
| You say | What happens |
|---|---|
| "Search engineering contacts" | Uses dws contact user search --query to find users by name or department. |
| "Book a meeting with the design team tomorrow" | Uses dws calendar to check free/busy and schedule an event with attendees. |
| "Summarize my unread mail" | Uses dws mail to list unread messages and read their contents. |
| "Create a todo for the quarterly report" | Uses dws todo task create with a title and executors. |
| "Find the Q3 docs and export them" | Uses dws doc search then dws doc export. |
| "Listen for messages mentioning me" | Uses dws event +listen-im --kind at-me to stream events as NDJSON. |
| "Call an OpenAPI the product commands do not cover" | Uses dws api with a --dry-run first to preview the request. |
Verification¶
The per-product skills live under skills/multi/
curl -sL https://raw.githubusercontent.com/DingTalk-Real-AI/dingtalk-workspace-cli/main/skills/multi/dingtalk-doc/SKILL.md
After installing, confirm the CLI version and auth state, or clone to inspect the skill layout:
dws --version
dws auth status --readonly --format json
git clone --depth 1 https://github.com/DingTalk-Real-AI/dingtalk-workspace-cli.git /tmp/dws
ls /tmp/dws/skills/multi/
Security¶
skills.sh verdicts for sampled skills (verified Nov 28 2026) - re-check the security pages on skills.sh before production use:
| Skill | Gen Agent Trust Hub | Socket | Snyk |
|---|---|---|---|
| dingtalk-doc | Pass | Pass | Fail |
| dingtalk-chat | Pass | Pass | Warn |
| dingtalk-aitable | Pass | Warn | Fail |
| dingtalk-wiki | Pass | Pass | Warn |
| dingtalk-minutes | Pass | Pass | Pass |
| dingtalk-drive | Pass | Pass | Warn |
| dingtalk-contact | Pass | Pass | Pass |
| dingtalk-aisearch | Pass | Pass | Warn |
| dingtalk-calendar | Pass | Pass | Warn |
| dingtalk-todo | Pass | Pass | Warn |
| dingtalk-mail | Pass | Pass | Warn |
| dingtalk-misc | Pass | Warn | Fail |
| dingtalk-event | Pass | Pass | Fail |
| dingtalk-shared | Pass | Pass | Fail |
| dingtalk-tag | Pass | Pass | Pass |
| dingtalk-aicard | Pass | Pass | Pass |
| dingtalk-skill | Pass | Pass | Warn |
| dingtalk-devdoc | Pass | Pass | Pass |
| dingtalk-attendance | Warn | Pass | Pass |
| dingtalk-sheet | Pass | Pass | Pass |
This guide is Orange because five of the 20 sampled listings carry a Snyk Fail cell and one carries a Gen Agent Trust Hub Warn; 12 of the 32 indexed listings were not sampled. The README documents a security-by-design posture for the CLI itself: encrypted token storage, a domain allowlist and full audit on every API call.
Integration with CorpusIQ¶
CorpusIQ is the connector layer that lets AI assistants read the systems a business already runs on - accounting, payments, CRM, email, files and analytics - and answer with the source named. It is read-only by design: it retrieves data and never writes to, or acts in, a connected system, which is what makes it safe to point at live accounts.
This page is part of the CorpusIQ directory, the reference we maintain for the MCP server and agent-skill ecosystem. Run alongside CorpusIQ, a third-party server like this one can be combined with a company's own business data in a single answer.
Limitations¶
- Snapshot data, verified Nov 28 2026: 3,840 combined installs across 32 indexed listings; 4,200 GitHub stars; Apache-2.0 license; last pushed 2026-11-27. Counts drift over time.
- The project is in a co-creation phase and requires enterprise admin authorization; CLI access must be enabled for your organization before most commands work.
- Only 20 of the 32 indexed listings carry security verdicts, and five of those carry a Snyk Fail cell.
- 13 of the 32 indexed listings sit below 24 installs, a long tail of low-adoption skills.
- Source builds require Go 1.26+ and, on supported macOS, Linux and Windows hosts, a C compiler for the SafeChat backend; musl distributions such as Alpine are not supported.
- Some per-product SKILL.md descriptions are written in Chinese, so non-Chinese readers may need to lean on the English command help (dws
--help).
Related¶
- WeCom CLI Skills - Enterprise WeChat Agent Suite Setup
- Lark & Feishu Skills - Office Suite Automation Setup
- ClawDBot Feishu Suite Setup Guide
Skills Catalog | Skills Marketplace
Pro Tips¶
- Prefer npx skills add DingTalk-Real-AI/dingtalk-workspace-cli -g for the default multi layout; use dws skill setup for China mirrors, upgrades or the legacy mono layout.
- Run a --dry-run before any mutating command; --yes is for automation only, after you have confirmed the targets.
- Use dws schema "
" --compact to discover a command's parameters and safety semantics before calling it, and --jq to keep agent context small. - Keep the installer's confirmation prompt for first-time global installs; the -y flag can overwrite same-named files without consent.
- The CLI auto-corrects common agent mistakes (camelCase flags, sticky arguments, typos), so feed it natural flag spellings and let dws normalize them.
← Skills Catalog | Skills Marketplace → Powered by CorpusIQ