← 返回
数据分析 Key 中文

Feishu Agent

Feishu (Lark) CLI agent - Provides calendar, todo, and contact management capabilities for AI assistants
飞书CLI代理 - 为AI助手提供日历、待办及联系人管理能力。
boyd4y
数据分析 clawhub v1.0.14 1 版本 100000 Key: 需要
★ 0
Stars
📥 845
下载
💾 37
安装
1
版本
#calendar#feishu#lark#latest#mcp#todo

概述

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 <command>

# Or install globally via bun
bun add -g @teamclaw/feishu-agent
feishu-agent <command>

Quick Start

  1. Setup - Configure Feishu app credentials:

```bash

feishu-agent setup

```

  1. Authenticate - OAuth 2.0 authorization:

```bash

feishu-agent auth

```

  1. Start using - Check your calendar:

```bash

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

CommandDescription
----------------------
feishu-agent setupInteractive setup wizard (App credentials + OAuth + Bitable)
feishu-agent authOAuth 2.0 authorization to get user_access_token
feishu-agent whoamiShow current user and authorization status
feishu-agent config listView global configuration

Calendar Management

CommandDescription
----------------------
feishu-agent calendarList all calendars (primary, subscribed)
feishu-agent calendar eventsList 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_idCreate event with attendees
feishu-agent calendar delete --event-id=evt123Delete an event

Other Features

CommandDescription
----------------------
feishu-agent todo listList todos from Bitable
feishu-agent todo create --title "Task" --priority "High"Create a todo
feishu-agent todo done --record-id=rec123Mark todo as done
feishu-agent contact listList 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:

  1. Prompt for App ID and App Secret
  2. Open browser for OAuth 2.0 authorization
  3. Save tokens to ~/.feishu-agent/config.json
  4. 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 calendars
  • calendar:event - Manage events in calendars
  • contact:user.base:readonly - Read user contact info
  • bitable: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 auth to authorize

"Token expired"

  • Run feishu-agent auth again 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

版本历史

共 1 个版本

  • v1.0.14 当前
    2026-03-30 01:40 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 368 📥 140,435
data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 165 📥 59,994
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 65,104