DingTalk-Real-AI/dingtalk-workspace-cli

DingTalk Workspace is an officially open-sourced cross-platform CLI tool from DingTalk. It unifies DingTalk’s full suite of product capabilities into a single package, is designed for both human users and AI agent scenarios.

What it solves

This project provides a command-line interface (CLI) for interacting with DingTalk enterprise workspaces. It is designed to bridge the gap between human users and AI agents, allowing both to perform tasks like searching contacts, managing calendars, accessing documents, and creating tasks directly from the terminal.

How it works

It functions as a bridge that authenticates with DingTalk via an OAuth device-flow. Once authenticated, it exposes various enterprise services (such as Drive, Calendar, and Todo) as CLI commands. It supports structured JSON output, making it suitable for integration into AI agent workflows. It includes a "Skill" system that allows agents to execute specific tasks, with options for both mono-skill (single entry point) and multi-skill (per-product) configurations.

Who it’s for

It is for developers, enterprise admins, and AI agent builders who need to programmatically access or automate workflows within a DingTalk enterprise environment.

Highlights

  • Agent-Ready: Provides structured JSON responses and built-in skill sets for seamless integration with AI agents.
  • Zero-Trust Security: Implements OAuth device-flow authentication, domain allowlisting, and least-privilege scoping to ensure secure data access.
  • Flexible Output: Supports multiple output formats including table, JSON, and raw data for easy parsing.
  • Multi-Profile Support: Allows users to stay logged into multiple DingTalk accounts and organizations simultaneously.
  • Enterprise Control: Includes administrative features for managing CLI access across an entire organization.

Related

  • Project
  • Project
  • Project
  • Project
  • Project