Install
openclaw skills install feishu-agentFeishu (Lark) CLI agent - Provides calendar, todo, and contact management capabilities for AI assistants
openclaw skills install feishu-agentFeishu (Lark) CLI agent - Provides calendar, todo, and contact management capabilities for AI assistants.
# Install via clawhub
clawhub install feishu-agent
# Or run directly with bunx
bunx @teamclaw/feishu-agent <command>
# Or install globally via bun
bun add -g @teamclaw/feishu-agent
feishu-agent <command>
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
| 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 |
| 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 |
| 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 |
feishu-agent setup
This wizard will:
~/.feishu-agent/config.json# 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
Global config is stored in ~/.feishu-agent/config.json:
{
"appId": "cli_xxxxx",
"appSecret": "xxxxx",
"userAccessToken": "xxxxx",
"refreshToken": "xxxxx"
}
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
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.
feishu-agent calendar events
feishu-agent todo create --title "Review PR #123" --priority "High"
feishu-agent todo list
feishu-agent todo done --record-id rec_xxx
"User authorization required"
feishu-agent auth to authorize"Token expired"
feishu-agent auth again to refresh"Time conflict detected"
feishu-agent calendar events"Permission denied"
MIT