Larksuite's Lark CLI Gives AI Agents 200+ Commands to Run Your Workplace
Larksuite's official CLI brings 200+ commands and 26 AI Agent Skills to Lark/Feishu, letting agents send messages, manage calendars, and edit docs from the terminal
Takeaways
- Official release: Larksuite shipped lark-cli, an open-source Go CLI covering 200+ commands across 18+ Lark/Feishu business domains.
- Agent-native: 26 structured AI Agent Skills ship out of the box, tested with real agents to maximize call success rates.
- Three-layer architecture: Shortcuts (
+prefix), API commands (1:1 endpoint mapping), and raw API access (2,500+ endpoints). - Free and MIT-licensed: Install via
npm install -g @larksuite/cliwith no cost and no commercial restrictions. - Security guardrails built in: Input injection protection, OS keychain credential storage, and explicit warnings about agent identity risks.
- Best used as a delivery layer: Ideal for CI/CD pipelines, agent output delivery, and terminal automation — not for real-time agent reasoning over Lark data.
Most AI agents are great at reasoning but terrible at actually doing things inside your company's collaboration tools. They can plan a meeting but can't check your calendar. They can draft a doc but can't publish it. Lark CLI, the official open-source command-line tool from the Larksuite team, is built to close exactly that gap , giving both humans and AI agents a structured, terminal-native interface into the entire Lark/Feishu platform.
What it is and what it covers
The tool is maintained by the larksuite team and covers core business domains including Messenger, Docs, Base, Sheets, Slides, Calendar, Mail, Tasks, Meetings, Markdown, and more, with 200+ commands and 26 AI Agent Skills. Written in Go, it compiles to a single binary with zero runtime dependencies and cross-platform support. The MIT license means there are no commercial restrictions on how you use it.
Business domains covered include Calendar, Messenger, Docs, Base, Sheets, Slides, Tasks, Wiki, Contacts, Mail, Meetings, Attendance, Approval, and OKR. That's a remarkably complete surface area for a v1 CLI tool , most enterprise platform CLIs ship with a fraction of this coverage.
The three-layer command system
The design philosophy here is worth understanding. Rather than a flat list of API wrappers, the CLI is organized into three distinct layers of abstraction, each targeting a different caller:
- Shortcuts , Prefixed with
+, these are high-level, opinionated commands with smart defaults, table output, and dry-run previews. Designed for humans typing in a terminal or agents that need simple, reliable calls. - API Commands , Auto-generated from Lark's Open API metadata, curated through quality gates, mapping 1:1 to platform endpoints. Over 100 commands at this layer.
- Raw API , Direct access to any of the 2,500+ Lark Open Platform endpoints, for when you need full control.
This layering is smart. An agent can use lark-cli im +messages-send --chat-id oc_xxx --text "Hello" without knowing anything about the underlying API shape, while a developer debugging a specific endpoint can drop down to lark-cli api GET /open-apis/calendar/v4/calendars directly.
Agent Skills: the real differentiator
The concept of "Skills" here refers to structured instruction documents , essentially prompt-level specifications that tell an AI agent how to use the CLI correctly. Every command is tested with real agents, featuring concise parameters, smart defaults, and structured output to maximize agent call success rates. This is a meaningful distinction from just wrapping an API: the team has done the work of figuring out what actually causes agents to fail and tuned the interface accordingly.
The 26 Skills span the full platform surface:
lark-im, Send/reply messages, manage group chats, search, upload/download fileslark-calendar, Events, agenda view, free/busy queries, time suggestionslark-doc, Create, read, update, search documents (Markdown-based)lark-base, Tables, fields, records, views, dashboards, analyticslark-mail, Browse, search, read, send, reply, forward, watch new maillark-event, Real-time WebSocket event subscriptions with regex routinglark-workflow-meeting-summary, Meeting minutes aggregation and structured report generationlark-skill-maker, A framework for creating custom skills
Authentication uses OAuth 2.0 with user and bot identity switching via --as user / --as bot, and the lark-event Skill supports WebSocket-based real-time event subscriptions with regex routing and agent-friendly NDJSON output.
Getting started in three steps
Licensed under MIT, it can be installed via npm in a single step and takes just 3 steps from setup to the first API call. For human users:
# 1. Install
npm install -g @larksuite/cli
# 2. Configure credentials (one-time, interactive)
lark-cli config init
# 3. Login and start using
lark-cli auth login --recommend
lark-cli calendar +agendaFor AI agents, the README includes a dedicated quick-start section.
The setup command runs in the background, outputs an authorization URL, and the command exits automatically after the user completes setup in the browser.
The agent can then verify with lark-cli auth status and start calling Skills immediately.
Where it fits , and where it doesn't
Primary use cases include AI agents automating enterprise workflows, developers using the terminal to interact with Lark APIs for debugging and batch processing, enterprise IT admins managing users and permissions at scale, and CI/CD pipelines invoking Lark APIs for notifications and report generation.
That said, the tool is explicit about its limits. For teams using Claude Code or similar tools, the practical split is: use MCP-based Lark integration when you need the agent to actively query and reason over Lark data during execution; use lark-cli for terminal-side notification and output delivery after the agent finishes its work. It's a delivery layer, not an orchestration layer.
Security is a first-class concern
The tool can be invoked by AI agents to automate operations on the Lark/Feishu Open Platform, and carries inherent risks such as model hallucinations, unpredictable execution, and prompt injection. After authorization, the AI agent acts under your user identity within the authorized scope, which may lead to consequences such as leakage of sensitive data or unauthorized operations.
To reduce these risks, the tool enables default security protections at multiple layers, and the team strongly recommends not modifying any default security settings , once restrictions are relaxed, the risks increase significantly. The tool uses OS-native keychain storage for credentials and includes input injection protection and terminal output sanitization by default.
The broader point here is that this tool represents a shift in how enterprise software vendors think about AI integration. Rather than building a chatbot on top of their platform, Larksuite is shipping a CLI that's explicitly designed to be called by agents , with structured outputs, agent-specific quick-start docs, and security guardrails baked in from day one. As more platforms follow this pattern, the terminal becomes the universal integration layer for agentic workflows.