openclaw连接飞书机器人
【代码】openclaw连接飞书机器人。
·
zl@zldeMacBook-Pro ~ % openclaw config
🦞 OpenClaw 2026.3.8 (3caab92)
Built by lobsters, for humans. Don't question the hierarchy.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
██░▄▄▄░██░▄▄░██░▄▄▄██░▀██░██░▄▄▀██░████░▄▄▀██░███░██
██░███░██░▀▀░██░▄▄▄██░█░█░██░█████░████░▀▀░██░█░█░██
██░▀▀▀░██░█████░▀▀▀██░██▄░██░▀▀▄██░▀▀░█░██░██▄▀▄▀▄██
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
🦞 OPENCLAW 🦞
┌ OpenClaw configure
│
◇ Existing config detected ─────────╮
│ │
│ workspace: ~/.openclaw/workspace │
│ model: minimax-cn/MiniMax-M2.5 │
│ gateway.mode: local │
│ gateway.port: 18789 │
│ gateway.bind: loopback │
│ │
├────────────────────────────────────╯
│
◇ Where will the Gateway run?
│ Local (this machine)
│
◇ Select sections to configure
│ Channels
│
◇ Channel status ────────────────────────────╮
│ │
│ Telegram: needs token │
│ WhatsApp (default): not linked │
│ Discord: needs token │
│ Slack: needs tokens │
│ Signal: needs setup │
│ signal-cli: missing (signal-cli) │
│ iMessage: needs setup │
│ imsg: missing (imsg) │
│ IRC: not configured │
│ Google Chat: not configured │
│ LINE: not configured │
│ Feishu: install plugin to enable │
│ Google Chat: install plugin to enable │
│ Nostr: install plugin to enable │
│ Microsoft Teams: install plugin to enable │
│ Mattermost: install plugin to enable │
│ Nextcloud Talk: install plugin to enable │
│ Matrix: install plugin to enable │
│ BlueBubbles: install plugin to enable │
│ LINE: install plugin to enable │
│ Zalo: install plugin to enable │
│ Zalo Personal: install plugin to enable │
│ Synology Chat: install plugin to enable │
│ Tlon: install plugin to enable │
│ │
├─────────────────────────────────────────────╯
│
◇ Channels
│ Configure/link
│
◇ How channels work ──────────────────────────────────────────────────────╮
│ │
│ DM security: default is pairing; unknown DMs get a pairing code. │
│ Approve with: openclaw pairing approve <channel> <code> │
│ Public DMs require dmPolicy="open" + allowFrom=["*"]. │
│ Multi-user DMs: run: openclaw config set session.dmScope │
│ "per-channel-peer" (or "per-account-channel-peer" for multi-account │
│ channels) to isolate sessions. │
│ Docs: │
│ channels/pairing │
│ │
│ Telegram: simplest way to get started — register a bot with @BotFather │
│ and get going. │
│ WhatsApp: works with your own number; recommend a separate phone + │
│ eSIM. │
│ Discord: very well supported right now. │
│ IRC: classic IRC networks with DM/channel routing and pairing │
│ controls. │
│ Google Chat: Google Workspace Chat app with HTTP webhook. │
│ Slack: supported (Socket Mode). │
│ Signal: signal-cli linked device; more setup (David Reagans: "Hop on │
│ Discord."). │
│ iMessage: this is still a work in progress. │
│ LINE: LINE Messaging API webhook bot. │
│ Feishu: 飞书/Lark enterprise messaging with doc/wiki/drive tools. │
│ Nostr: Decentralized protocol; encrypted DMs via NIP-04. │
│ Microsoft Teams: Bot Framework; enterprise support. │
│ Mattermost: self-hosted Slack-style chat; install the plugin to │
│ enable. │
│ Nextcloud Talk: Self-hosted chat via Nextcloud Talk webhook bots. │
│ Matrix: open protocol; install the plugin to enable. │
│ BlueBubbles: iMessage via the BlueBubbles mac app + REST API. │
│ Zalo: Vietnam-focused messaging platform with Bot API. │
│ Zalo Personal: Zalo personal account via QR code login. │
│ Synology Chat: Connect your Synology NAS Chat to OpenClaw with full │
│ agent capabilities. │
│ Tlon: decentralized messaging on Urbit; install the plugin to enable. │
│ │
├──────────────────────────────────────────────────────────────────────────╯
│
◇ Select a channel
│ Feishu/Lark (飞书)
│
◇ Install Feishu plugin?
│ Download from npm (@openclaw/feishu)
Downloading @openclaw/feishu…
Extracting /var/folders/8_/c1xll36d4nndbc_vvc562yvc0000gn/T/openclaw-npm-pack-2Dwxpy/openclaw-feishu-2026.3.11.tgz…
WARNING: Plugin "feishu" contains dangerous code patterns: Environment variable access combined with network send — possible credential harvesting (/var/folders/8_/c1xll36d4nndbc_vvc562yvc0000gn/T/openclaw-plugin-6P5YWE/extract/package/src/client.test.ts:74); Environment variable access combined with network send — possible credential harvesting (/var/folders/8_/c1xll36d4nndbc_vvc562yvc0000gn/T/openclaw-plugin-6P5YWE/extract/package/src/client.ts:12)
Installing to /Users/zl/.openclaw/extensions/feishu…
Installing plugin dependencies…
23:35:37 [plugins] plugins.allow is empty; discovered non-bundled plugins may auto-load: feishu (/Users/zl/.openclaw/extensions/feishu/index.ts). Set plugins.allow to explicit trusted ids.
│
◇ Feishu credentials ────────────────────────────────────────────────╮
│ │
│ 1) Go to Feishu Open Platform (open.feishu.cn) │
│ 2) Create a self-built app │
│ 3) Get App ID and App Secret from Credentials page │
│ 4) Enable required permissions: im:message, im:chat, │
│ contact:user.base:readonly │
│ 5) Publish the app or add it to a test group │
│ Tip: you can also set FEISHU_APP_ID / FEISHU_APP_SECRET env vars. │
│ Docs: feishu │
│ │
├─────────────────────────────────────────────────────────────────────╯
│
◇ How do you want to provide this App Secret?
│ Enter App Secret
│
◇ Enter Feishu App Secret
│ fdgfbggfdjhh
│
◇ Enter Feishu App ID
│ hhdhfgffdvbhtsh
[info]: [ 'client ready' ]
│
◇ Feishu connection test ───────────────────────────╮
│ │
│ Connected as ou_d8b3a87f287a240efbb8e04ce4e4b354 │
│ │
├────────────────────────────────────────────────────╯
│
◇ Feishu connection mode
│ WebSocket (default)
│
◇ Which Feishu domain?
│ Feishu (feishu.cn) - China
│
◇ Group chat policy
│ Open - respond in all groups (requires mention)
│
◇ Select a channel
│ Finished
│
◇ Selected channels ──────────────────────────────────────────╮
│ │
│ Feishu — 飞书/Lark enterprise messaging. Docs: │
│ feishu │
│ │
├──────────────────────────────────────────────────────────────╯
│
◇ Configure DM access policies now? (default: pairing)
│ Yes
│
◇ Feishu DM access ──────────────────────────────────────────────────────╮
│ │
│ Default: pairing (unknown DMs get a pairing code). │
│ Approve: openclaw pairing approve feishu <code> │
│ Allowlist DMs: channels.feishu.dmPolicy="allowlist" + │
│ channels.feishu.allowFrom entries. │
│ Public DMs: channels.feishu.dmPolicy="open" + │
│ channels.feishu.allowFrom includes "*". │
│ Multi-user DMs: run: openclaw config set session.dmScope │
│ "per-channel-peer" (or "per-account-channel-peer" for multi-account │
│ channels) to isolate sessions. │
│ Docs: │
│ channels/pairing │
│ │
├─────────────────────────────────────────────────────────────────────────╯
│
◇ Feishu DM policy
│ Open (public inbound DMs)
Config warnings:
- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (/Users/zl/.openclaw/extensions/feishu/index.ts)
Config overwrite: /Users/zl/.openclaw/openclaw.json (sha256 552f3ad7e1db813794a542b00d04c7717b7c819f8fe3daa2cd061790a4d4e01e -> b4fcbbf87e6bfe6d995164994af9e7bbcb92004573c94600783e8e928438ec63, backup=/Users/zl/.openclaw/openclaw.json.bak)
Updated ~/.openclaw/openclaw.json
│
◇ Select sections to configure
│ Continue
Config warnings:\n- plugins.entries.feishu: plugin feishu: duplicate plugin id detected; later plugin may be overridden (/Users/zl/.openclaw/extensions/feishu/index.ts)
│
◇ Control UI ────────────────────────────────────╮
│ │
│ Web UI: http://127.0.0.1:18789/ │
│ Gateway WS: ws://127.0.0.1:18789 │
│ Gateway: reachable │
│ Docs: https://docs.openclaw.ai/web/control-ui │
│ │
├─────────────────────────────────────────────────╯
│
└ Configure complete.
更多推荐


所有评论(0)