@huangyun_122: This open-source library Lark CLI perfectly layers knowledge ingestion, assembly, and distribution: 1/ OpenClaw, Codex, CC conversation history enters the Lark knowledge base via SKILL 2/ Lark CLI connects to Agent, further digests the ingested knowledge base documents, and pushes them into the vector database 3/ To…

X AI KOLs Timeline Tools

Summary

Lark CLI is an open-source command-line tool designed for human and AI agents, providing 200+ commands and 26 AI Skills across 18 business domains to streamline knowledge ingestion, assembly, and distribution.

Lark CLI is an open-source library that perfectly layers knowledge ingestion, assembly, and distribution: 1/ OpenClaw, Codex, CC conversation history enters the Lark knowledge base via SKILL 2/ Lark CLI connects to Agent, further digests the ingested knowledge base documents, and pushes them into the vector database 3/ The vector database is grafted onto the consulting and writing interface, becoming the top of the feed chain, and distributed, forming a perfect loop https://t.co/233bPaOgWM
Original Article
View Cached Full Text

Cached at: 06/18/26, 02:06 AM

The open-source Feishu CLI library perfectly layers the knowledge ingestion → assembly → distribution pipeline:

  1. OpenClaw, Codex, and CC conversation histories are ingested into Feishu via SKILL.
  2. The Feishu CLI connects to Agents, which further digest the ingested knowledge base documents and embed them into the vector store.
  3. The vector store is then grafted onto advisory and writing interfaces, becoming the top of the feed chain for distribution — a complete closed loop. https://t.co/233bPaOgWM

larksuite/cli Source: https://github.com/larksuite/cli

lark-cli License: MIT (https://opensource.org/licenses/MIT)

Go Version (https://go.dev/) npm version (https://www.npmjs.com/package/@larksuite/cli) 中文版 | English

The official Lark/Feishu (https://www.larksuite.com/) CLI tool, maintained by the larksuite (https://github.com/larksuite) team — built for humans and AI Agents. 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.

Install · AI Agent Skills · Auth · Commands · Advanced · Security · Contributing

Why lark-cli?

  • Agent-Native Design — 24 structured Skills out of the box, compatible with popular AI tools — Agents can operate Lark with zero extra setup
  • Wide Coverage — 18 business domains, 200+ curated commands, 26 AI Agent Skills
  • AI-Friendly & Optimized — Every command is tested with real Agents, featuring concise parameters, smart defaults, and structured output to maximize Agent call success rates
  • Open Source, Zero Barriers — MIT license, ready to use, just npm install
  • Up and Running in 3 Minutes — One-click app creation, interactive login, from install to first API call in just 3 steps
  • Secure & Controllable — Input injection protection, terminal output sanitization, OS-native keychain credential storage
  • Three-Layer Architecture — Shortcuts (human & AI friendly) → API Commands (platform-synced) → Raw API (full coverage), choose the right granularity

Features

CategoryCapabilities
📅 CalendarView, create and update events, invite attendees, find meeting rooms, RSVP to invitations, check free/busy & time suggestions
💬 MessengerSend/reply messages, create and manage group chats, view chat history & threads, search messages, download media
📄 DocsCreate, read, update, and search documents, read/write media & whiteboards
📁 DriveUpload and download files, search docs & wiki, manage comments
📝 MarkdownCreate, fetch, patch, and overwrite Drive-native .md files
📊 BaseCreate and manage tables, fields, records, views, dashboards, workflows, forms, roles & permissions, data aggregation & analytics
📈 SheetsCreate, read, write, append, find, and export spreadsheet data
🖼️ SlidesCreate and manage presentations, read presentation content, and add or remove slides
✅ TasksCreate, query, update, and complete tasks; manage task lists, subtasks, comments & reminders
📚 WikiCreate and manage knowledge spaces, nodes, and documents
👤 ContactSearch users by name/email/phone, get user profiles
📧 MailBrowse, search, read emails, send, reply, forward, manage drafts, watch new mail
🎥 MeetingsSearch meeting records, query meeting minutes artifacts and recordings
🕐 AttendanceQuery personal attendance check-in records
✍️ ApprovalQuery approval tasks, approve/reject/transfer tasks, cancel and CC instances
🎯 OKRQuery, create, update OKRs; manage objective & key results, alignments, indicators and progress.
📋 ProjectMeegle — manage work items, schedules, and data via the standalone meegle-cli (https://github.com/larksuite/meegle-cli) (install separately)
🔗 AppsCreate Spark/Miaoda apps, publish HTML/static sites, run cloud generation, and manage access scope

Installation & Quick Start

Requirements

Before you start, make sure you have:

  • Node.js (npm/npx)
  • Go v1.23+ and Python 3 (only required for building from source)

Quick Start (Human Users)

Note for AI assistants: If you are an AI Agent helping the user with installation, jump directly to Quick Start (AI Agent), which contains all the steps you need to complete.

Install

Choose one of the following methods:

Option 1 — From npm (recommended):

npx @larksuite/cli@latest install

Option 2 — From source: Requires Go v1.23+ and Python 3.

git clone https://github.com/larksuite/cli.git
cd cli
make install
# Install CLI SKILL (required)
npx skills add larksuite/cli -y -g

Configure & Use

# 1. Configure app credentials (one-time, interactive guided setup)
lark-cli config init
# 2. Log in (--recommend auto-selects commonly used scopes)
lark-cli auth login --recommend
# 3. Start using
lark-cli calendar +agenda

Quick Start (AI Agent)

The following steps are for AI Agents. Some steps require the user to complete actions in a browser.

Step 1 — Install

npx @larksuite/cli@latest install

Step 2 — Configure app credentials

Run this command in the background. It will output an authorization URL — extract it and send it to the user. The command exits automatically after the user completes the setup in the browser.

lark-cli config init --new

Step 3 — Login

Same as above: run in the background, extract the authorization URL and send it to the user.

lark-cli auth login --recommend

Step 4 — Verify

lark-cli auth status

Agent Skills

SkillDescription
lark-sharedApp config, auth login, identity switching, scope management, security rules (auto-loaded by all other skills)
lark-calendarCalendar events (create/update), agenda view, free/busy queries, time suggestions, room finding, RSVP replies
lark-imSend/reply messages, group chat management, message search, upload/download images & files, reactions
lark-docCreate, read, update, search documents (Markdown-based)
lark-driveUpload, download files, manage permissions & comments
lark-markdownCreate, fetch, patch, and overwrite Drive-native Markdown files
lark-sheetsCreate, read, write, append, find, export spreadsheets
lark-slidesCreate and manage presentations, read presentation content, and add or remove slides
lark-baseTables, fields, records, views, dashboards, data aggregation & analytics
lark-taskTasks, task lists, subtasks, reminders, member assignment
lark-mailBrowse, search, read emails, send, reply, forward, draft management, watch new mail
lark-contactSearch users by name/email/phone, get user profiles
lark-wikiKnowledge spaces, nodes, documents
lark-eventReal-time event subscriptions (WebSocket), regex routing & agent-friendly format
lark-vcSearch meeting records, query meeting minutes (summary, todos, transcript)
lark-whiteboardWhiteboard/chart DSL rendering
lark-minutesMinutes metadata & AI artifacts (summary, todos, chapters); upload audio/video to create minutes, download media
lark-openapi-explorerExplore underlying APIs from official docs
lark-skill-makerCustom skill creation framework
lark-attendanceQuery personal attendance check-in records
lark-approvalQuery approval tasks, approve/reject/transfer tasks, cancel and CC instances
lark-workflow-meeting-summaryWorkflow: meeting minutes aggregation & structured report
lark-workflow-standup-reportWorkflow: agenda & todo summary
lark-okrQuery, create, update OKRs; manage objective & key results, alignments and indicators.

Authentication

CommandDescription
auth loginOAuth login with interactive selection or CLI flags for scopes
auth logoutSign out and remove stored credentials
auth statusShow current login status and granted scopes
auth checkVerify a specific scope (exit 0 = ok, 1 = missing)
auth scopesList all available scopes for the app
auth listList all authenticated users
# Interactive login (TUI guides domain and permission level selection)
lark-cli auth login

# Filter by domain
lark-cli auth login --domain calendar,task

# Recommended auto-approval scopes
lark-cli auth login --recommend

# Exact scope
lark-cli auth login --scope "calendar:calendar:read"

# Agent mode: return verification URL immediately, non-blocking
lark-cli auth login --domain calendar --no-wait

# Resume polling later
lark-cli auth login --device-code

# Identity switching: execute commands as user or bot
lark-cli calendar +agenda --as user
lark-cli im +messages-send --as bot --chat-id "oc_xxx" --text "Hello"

Three-Layer Command System

The CLI provides three levels of granularity, covering everything from quick operations to fully custom API calls:

1. Shortcuts

Prefixed with +, designed to be friendly for both humans and AI, with smart defaults, table output, and dry-run previews.

lark-cli calendar +agenda
lark-cli im +messages-send --chat-id "oc_xxx" --text "Hello"
lark-cli docs +create --api-version v2 --doc-format markdown --content $'Weekly Report\n# Progress\n- Completed feature X'

Run lark-cli --help to see all shortcut commands.

2. API Commands

Auto-generated from Lark OAPI metadata, curated through evaluation and quality gates — 100+ commands mapped 1:1 to platform endpoints.

lark-cli calendar calendars list
lark-cli calendar events instance_view --params '{"calendar_id":"primary","start_time":"1700000000","end_time":"1700086400"}'

3. Raw API Calls

Call any Lark Open Platform endpoint directly, covering 2500+ APIs.

lark-cli api GET /open-apis/calendar/v4/calendars
lark-cli api POST /open-apis/im/v1/messages --params '{"receive_id_type":"chat_id"}' --data '{"receive_id":"oc_xxx","msg_type":"text","content":"{\"text\":\"Hello\"}"}'

Advanced Usage

Output Formats

--format json        # Full JSON response (default)
--format pretty      # Human-friendly formatted output
--format table       # Readable table
--format ndjson      # Newline-delimited JSON (for piping)
--format csv         # Comma-separated values

Pagination

--page-all           # Auto-paginate through all pages
--page-limit 5       # Max 5 pages
--page-delay 500     # 500ms between page requests

Dry Run

For commands that may have side effects, preview the request with –dry-run first:

lark-cli im +messages-send --chat-id oc_xxx --text "hello" --dry-run

Schema Introspection

Use schema to inspect any API method’s parameters, request body, response structure, supported identities, and scopes:

lark-cli schema
lark-cli schema calendar.events.instance_view
lark-cli schema im.messages.delete

Security & Risk Warnings (Read Before Use)

This 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 you authorize Lark/Feishu permissions, the AI Agent will act under your user identity within the authorized scope, which may lead to high-risk consequences such as leakage of sensitive data or unauthorized operations. Please use with caution.

To reduce these risks, the tool enables default security protections at multiple layers. However, these risks still exist. We strongly recommend that you do not proactively modify any default security settings; once relevant restrictions are relaxed, the risks will increase significantly, and you will bear the consequences.

We recommend using the Lark/Feishu bot integrated with this tool as a private conversational assistant. Do not add it to group chats or allow other users to interact with it, to avoid abuse of permissions or data leakage.

Please fully understand all usage risks. By using this tool, you are deemed to voluntarily assume all related responsibilities.

Star History

Star History Chart (https://star-history.com/#larksuite/cli&Date)

Contributing

Community contributions are welcome! If you find a bug or have feature suggestions, please submit an Issue (https://github.com/larksuite/cli/issues) or Pull Request (https://github.com/larksuite/cli/pulls). For major changes, we recommend discussing with us first via an Issue.

Before opening a PR, see AGENTS.md for the local build, test, and PR checklist used by contributors and AI agents.

License

This project is licensed under the MIT License. When running, it calls Lark/Feishu Open Platform APIs. To use these APIs, you must comply with the following agreements and privacy policies:

  • Feishu User Terms of Service (https://www.feishu.cn/terms)
  • Feishu Privacy Policy (https://www.feishu.cn/privacy)
  • Feishu Open Platform App Service Provider Security Management Specifications (https://open.feishu.cn/document/uAjLw4CM/uMzNwEjLzcDMx4yM3ATM/management-practice/app-service-provider-security-management-specifications)
  • Lark User Terms of Service (https://www.larksuite.com/user-terms-of-service)
  • Lark Privacy Policy (https://www.larksuite.com/privacy-policy)

Similar Articles

@jakevin7: Today I had AI autonomously handle the entire workflow inside Lark. Lark is seriously packed with features now. Agents can directly generate drag-and-drop, editable flowcharts within documents. After meetings, to-dos from Miaoji automatically convert into Lark tasks. Installed with a single command, all 15 business domains (IM, Calendar, Email, Approval, Cloud Docs, Bitable, etc.) are fully ready…

X AI KOLs Following

Users leverage AI agents in Lark to automate collaborative workflows, such as generating flowcharts in documents and converting meeting to-dos into tasks. lark-cli has been integrated with OpenCLI, supporting multi-agent handoff workflows for data querying and report generation.

@jiayuan_jy: .@MulticaAI now supports integration with Feishu! Scan the QR code to connect your Claude Code, Codex, Hermes Agent, Pi, OpenClaw, and more directly into Feishu. Probably the simplest way on the market to integrate multiple agents into Feishu. Other IM tools are expected to be released in the coming period. https://t.co/Jya51EdZYM

X AI KOLs Timeline

MulticaAI now supports integration with Feishu, offering the simplest way to connect multiple AI agents (like Claude Code, Codex, Hermes Agent, etc.) via a one-click scan, with support for other IM tools coming soon.

@ruanyf: Recently, multiple domestic office platforms have released open-source CLI toolkits for agent invocation. Among them, Feishu offers the most comprehensive features, with the highest project scale and Star count. In just over 40 days since release, it has already surpassed 10,000 Stars. Below is a brief introduction to my experience using it to integrate agents and try office automation.

X AI KOLs Timeline

Domestic office platforms like Feishu have released open-source CLI toolkits for agent invocation. Feishu has the most features and the highest Star count, surpassing 10,000 Stars in just over 40 days.

@sitinme: Not just "have AI summarize a book", but go further: turning a book or a document package into a Skill that an AI Agent can repeatedly call. This idea is worth discussing. Previously, after buying and reading a book, when I later wanted to find a certain knowledge point, I couldn't find it after flipping through for a long time; asking AI might make things up; throwing the entire PD…

X AI KOLs Timeline

Introduces a tool called book-to-skill that converts books or document packages into AI Agent callable Skills. It supports PDF and other formats, generates SKILL.md and chapter indexes, avoiding loading the full context at once.