Lark CLI Control Lark Platform with AI Agent Friendly Commands
L

Lark CLI Control Lark Platform with AI Agent Friendly Commands

Lark CLI Control Lark Platform with AI Agent Friendly Commands

CLI
14,920 stars
N/A forks
N/A contributors

README

Project documentation from GitHub

Lark CLI: Control Your Lark Platform Without Touching the UI

If you've ever had to automate Slack, Teams, or any enterprise messaging platform, you know the pain of juggling API tokens, webhook configurations, and rate limits. Lark (formerly Feishu) just made that a whole lot smoother with their official CLI.

No more context switching between browser tabs and terminal. No more digging through API docs just to create a bot or post a message. Lark CLI puts the entire Lark platform at your fingertips from the command line. And the best part? It's designed to be AI agent friendly, meaning you can pipe commands directly into your automation workflows or LLM-powered scripts.

What It Does

Lark CLI is a command-line tool that lets you interact with the Lark platform (messaging, calendars, documents, bots, etc.) directly from your terminal. You can:

  • Create and manage bots
  • Send messages to users, groups, or channels
  • Manage documents and spreadsheets
  • Control calendar events
  • Handle approval workflows
  • And pretty much anything else you'd do through the Lark API

Under the hood, it wraps Lark's OpenAPI into clean, discoverable CLI commands. So instead of crafting HTTP requests with bearer tokens, you just type lark bot create or lark message send.

Why It's Cool

Three things stand out to me:

  1. AI Agent Friendly – This isn't just marketing fluff. The commands are structured to be easily consumed by language models and automation scripts. You can feed the help output directly into an LLM and it'll understand how to chain commands. Perfect for building internal tools or AI-powered bots.

  2. No Complex Auth – Lark CLI handles OAuth token management for you. One-time setup, then you're good to go. No more refreshing tokens or storing secrets in environment variables.

  3. Discoverable DX – The commands follow a predictable pattern. lark help shows you everything. lark [resource] help shows you subcommands. It's the kind of design that makes you go "oh, that makes sense" instead of "where did they hide that flag?"

How to Try It

Getting started takes about 30 seconds:

# Install via npm or yarn
npm install -g @larksuiteoapi/cli # Or if you're on macOS with Homebrew
brew update && brew install larksuite/tap/lark # Set up your Lark app credentials
lark config set app_id YOUR_APP_ID app_secret YOUR_APP_SECRET # List available commands
lark help # Send a mes

Did you like this issue?

Join our weekly newsletter

Related Projects

Love discovering amazing projects?

Help us continue bringing you the best open-source discoveries every week.

Back to Projects
Last updated: Apr 26, 2026