← 返回 Skills 市场
cindypapa

Hermes Feishu Guide

作者 Cindypapa · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ⚠ suspicious
84
总下载
0
收藏
1
当前安装
2
版本数
在 OpenClaw 中安装
/install hermes-feishu-guide
功能描述
Hermes Agent 飞书 Bot 本地部署指南(WebSocket 模式)。包含 Kimi API 配置、WebSocket vs Webhook 对比、环境变量配置等完整步骤。适合本地机器部署,不需要公网域名。
使用说明 (SKILL.md)

Hermes 飞书 Bot 本地部署指南

概述

Hermes Agent 从 v0.6.0 开始支持飞书(Feishu/Lark)平台。飞书国内版支持 WebSocket 模式,不需要公网域名,直接本地运行。

前置准备

1. 飞书开放平台创建应用

  • 创建企业自建应用
  • 获取 App ID 和 App Secret
  • 启用 Bot 能力
  • 开通权限:im:messageim:message:send_as_botim:message:group_at_msg(群聊@消息)

2. Kimi API Key

  • 获取 Moonshot API Key
  • 注意模型名称:kimi-k2.5(不是 moonshotai/Kimi-K2.5

一键安装

curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash
source ~/.zshrc

配置环境变量

编辑 ~/.hermes/.env

KIMI_CN_API_KEY=sk-xxx
FEISHU_APP_ID=cli_xxx
FEISHU_APP_SECRET=xxx
FEISHU_CONNECTION_MODE=websocket
FEISHU_GROUP_POLICY=open        # 群聊策略:open/allowlist/disabled
GATEWAY_ALLOW_ALL_USERS=true

群聊策略说明

说明
open ✅ 响应任何用户的 @提及
allowlist ⚠️ 只响应 FEISHU_ALLOWED_USERS 白名单用户
disabled ❌ 忽略所有群聊消息

⚠️ 重要:默认值是 allowlist,如果不在白名单,群聊 @机器人不会响应!单聊不受此限制。

启动网关

hermes gateway start
hermes gateway status

验证连接

tail -50 ~/.hermes/logs/gateway.log

看到 connected to wss://msg-frontier.feishu.cn/ws/v2... 表示成功。

WebSocket vs Webhook

对比项 WebSocket Webhook
需要公网域名
需要 HTTPS 证书
飞书国内版
Lark 国际版

常见问题

Q: Kimi API 认证失败

检查模型名称,去掉 moonshotai/ 前缀,使用 kimi-k2.5

Q: 群聊 @机器人没反应

检查 FEISHU_GROUP_POLICY 配置:

  • 默认是 allowlist,需要改成 open
  • 或添加用户到 FEISHU_ALLOWED_USERS

Q: 单聊可以,群聊不行

这是群聊策略限制,单聊绕过策略检查。添加 FEISHU_GROUP_POLICY=open 即可。

排障经验

Kimi API Key 认证失败

模型名称写错:moonshotai/Kimi-K2.5 → 正确是 kimi-k2.5

群聊 @机器人无响应

默认 FEISHU_GROUP_POLICY=allowlist,改成 open

参考

安全使用建议
Key things to consider before proceeding: - The SKILL.md asks you to run a remote installer with `curl ... | bash`. Do NOT run that blindly — inspect the script at the GitHub URL first (or clone the repo and review code) before executing. - The guide requires sensitive credentials (FEISHU_APP_ID/FEISHU_APP_SECRET and KIMI_CN_API_KEY). Treat these as secrets: use least-privilege keys, rotate them if exposed, and avoid pasting them into shared terminals or logs. - The registry metadata does not declare those required env vars; this mismatch reduces transparency. Confirm you understand what credentials are needed and why before installing. - If you must install, prefer a manual install (download and inspect files, run in a restricted environment or container) rather than piping a remote script to the shell. - Consider keeping FEISHU_GROUP_POLICY on allowlist until you trust the deployment; setting it to open will let the bot respond to any group mention. - If you are not familiar with the NousResearch/hermes-agent repo, verify the publisher and repository integrity (stars, recent commits, official docs) before trusting the installer.
功能分析
Type: OpenClaw Skill Name: hermes-feishu-guide Version: 1.1.0 The bundle is a legitimate deployment guide for the Hermes Agent Feishu Bot. It provides standard installation steps using a script from the official NousResearch GitHub repository and instructions for configuring environment variables. No malicious intent, data exfiltration, or prompt injection attempts were found in SKILL.md or _meta.json.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
The README content matches the stated purpose (local Hermes Feishu WebSocket deployment) and legitimately requires Feishu App ID/Secret and a Kimi/Moonshot API key. However, the registry metadata claims no required environment variables or credentials while the instructions explicitly require and show storing sensitive secrets (FEISHU_APP_SECRET, KIMI_CN_API_KEY). That metadata/instruction mismatch is unexpected and reduces transparency.
Instruction Scope
Runtime instructions tell the operator to run a one-line installer fetched from raw.githubusercontent.com (curl -fsSL ... | bash) and to create ~/.hermes/.env containing API keys/secrets. Aside from those, the steps are scoped to starting the gateway and checking local logs. The main concern is the broad discretion granted by piping a remote script to the shell and the requirement to place secrets in a local env file (which is normal for this product but should be clearly declared in the skill metadata).
Install Mechanism
There is no formal install spec in the skill metadata, but the SKILL.md explicitly instructs running a remote install script via curl | bash from raw.githubusercontent.com/NousResearch/hermes-agent. While GitHub raw is a common host, executing remote scripts without review is high-risk; the skill should declare the install or at least list the exact URL and recommend reviewing the script before executing.
Credentials
The instructions require multiple sensitive values (KIMI_CN_API_KEY, FEISHU_APP_ID, FEISHU_APP_SECRET) and recommend configuration options that affect bot behavior (FEISHU_GROUP_POLICY, GATEWAY_ALLOW_ALL_USERS). Those items are proportionate to deploying a chat bot, but they are not declared in the skill metadata. The missing declaration of required secrets reduces transparency and could cause accidental secret exposure if users follow the installer without review. Also the guide suggests making the group policy 'open' which increases exposure.
Persistence & Privilege
The skill does not request always: true and does not itself persist in the agent. The instructions show installing and running a local Hermes gateway service (hermes gateway start), which is appropriate for the stated purpose. This creates a persistent local process, but that behavior aligns with a deploy guide rather than requiring elevated platform privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install hermes-feishu-guide
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /hermes-feishu-guide 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
- Added configuration and documentation for FEISHU_GROUP_POLICY to control group chat behavior. - Updated required permission list to include im:message:group_at_msg for group @mentions. - Clarified group chat strategy, including default value, allowlist usage, and open mode. - Added troubleshooting and usage tips specific to group chat issues. - Version bumped to 1.1.0.
v1.0.0
- Initial release: local deployment guide for Hermes Agent Feishu Bot (WebSocket mode). - Covers setup on Feishu Open Platform, API key configuration, and required environment variables. - Explains one-command installation and gateway startup/verification steps. - Includes a WebSocket vs Webhook comparison table. - Provides troubleshooting for common issues such as API authentication and message delivery.
元数据
Slug hermes-feishu-guide
版本 1.1.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 2
常见问题

Hermes Feishu Guide 是什么?

Hermes Agent 飞书 Bot 本地部署指南(WebSocket 模式)。包含 Kimi API 配置、WebSocket vs Webhook 对比、环境变量配置等完整步骤。适合本地机器部署,不需要公网域名。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 84 次。

如何安装 Hermes Feishu Guide?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install hermes-feishu-guide」即可一键安装,无需额外配置。

Hermes Feishu Guide 是免费的吗?

是的,Hermes Feishu Guide 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Hermes Feishu Guide 支持哪些平台?

Hermes Feishu Guide 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Hermes Feishu Guide?

由 Cindypapa(@cindypapa)开发并维护,当前版本 v1.1.0。

💬 留言讨论