/install feishu-agent
Feishu Agent Skill
Feishu (Lark) CLI agent - Provides calendar, todo, and contact management capabilities for AI assistants.
Installation
# Install via clawhub
clawhub install feishu-agent
# Or run directly with bunx
bunx @teamclaw/feishu-agent \x3Ccommand>
# Or install globally via bun
bun add -g @teamclaw/feishu-agent
feishu-agent \x3Ccommand>
Quick Start
-
Setup - Configure Feishu app credentials:
feishu-agent setup -
Authenticate - OAuth 2.0 authorization:
feishu-agent auth -
Start using - Check your calendar:
feishu-agent calendar events
Capabilities
- 📅 Calendar: List calendars, view events, create/delete events with automatic conflict detection
- ✅ Todo: Manage tasks via Feishu Bitable
- 👥 Contacts: Search and list users from organization
- 🔐 Auth: OAuth 2.0 authentication with automatic token refresh
Commands
Setup & Auth
| Command | Description |
|---|---|
feishu-agent setup |
Interactive setup wizard (App credentials + OAuth + Bitable) |
feishu-agent auth |
OAuth 2.0 authorization to get user_access_token |
feishu-agent whoami |
Show current user and authorization status |
feishu-agent config list |
View global configuration |
Calendar Management
| Command | Description |
|---|---|
feishu-agent calendar |
List all calendars (primary, subscribed) |
feishu-agent calendar events |
List events in primary calendar |
feishu-agent calendar create --summary "Meeting" --start "2026-03-05 14:00" --end "2026-03-05 15:00" |
Create a new event (auto-checks conflicts) |
feishu-agent calendar create --summary "Meeting" --start "..." --end "..." --attendee user_id |
Create event with attendees |
feishu-agent calendar delete --event-id=evt123 |
Delete an event |
Other Features
| Command | Description |
|---|---|
feishu-agent todo list |
List todos from Bitable |
feishu-agent todo create --title "Task" --priority "High" |
Create a todo |
feishu-agent todo done --record-id=rec123 |
Mark todo as done |
feishu-agent contact list |
List users in department |
feishu-agent contact search "John" |
Search users by name/email |
Setup Flow
Option 1: Interactive Setup (Recommended)
feishu-agent setup
This wizard will:
- Prompt for App ID and App Secret
- Open browser for OAuth 2.0 authorization
- Save tokens to
~/.feishu-agent/config.json - Optionally fetch Bitable schema
Option 2: Manual Configuration
# Step 1: Set app credentials
feishu-agent config set appId cli_xxxxx
feishu-agent config set appSecret xxxxx
# Step 2: Authorize with user account
feishu-agent auth
Configuration
Global config is stored in ~/.feishu-agent/config.json:
{
"appId": "cli_xxxxx",
"appSecret": "xxxxx",
"userAccessToken": "xxxxx",
"refreshToken": "xxxxx"
}
Required Feishu App Permissions
In Feishu Developer Console, enable:
calendar:calendar- View and manage user calendarscalendar:event- Manage events in calendarscontact:user.base:readonly- Read user contact infobitable:app- Access Bitable data (for todo feature)
Redirect URI must be configured: http://localhost:3000/callback
Use Cases for AI Agents
Schedule a Meeting
feishu-agent calendar create \
--summary "Team Standup" \
--start "2026-03-05 10:00" \
--end "2026-03-05 10:30" \
--attendee user_id_1 \
--attendee user_id_2
Note: The command automatically checks for time conflicts using the FreeBusy API. If a conflict is detected, the event creation will fail with a description of the busy time slot.
Check Daily Schedule
feishu-agent calendar events
Manage Tasks
feishu-agent todo create --title "Review PR #123" --priority "High"
feishu-agent todo list
feishu-agent todo done --record-id rec_xxx
Troubleshooting
"User authorization required"
- Run
feishu-agent authto authorize
"Token expired"
- Run
feishu-agent authagain to refresh
"Time conflict detected"
- The requested time slot is already busy
- Choose a different time or check your calendar with
feishu-agent calendar events
"Permission denied"
- Check app permissions in Feishu Developer Console
License
MIT
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install feishu-agent - 安装完成后,直接呼叫该 Skill 的名称或使用
/feishu-agent触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Feishu Agent 是什么?
Feishu (Lark) CLI agent - Provides calendar, todo, and contact management capabilities for AI assistants. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 526 次。
如何安装 Feishu Agent?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install feishu-agent」即可一键安装,无需额外配置。
Feishu Agent 是免费的吗?
是的,Feishu Agent 完全免费(开源免费),可自由下载、安装和使用。
Feishu Agent 支持哪些平台?
Feishu Agent 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Feishu Agent?
由 Yang Jun(@boyd4y)开发并维护,当前版本 v1.0.14。