Skip to content

Lark Agents Bridge

Bridge Feishu/Lark messenger with the local Agents/CLI

Install: npm i -g lark-agents-bridge

Works with Codex · 20 GitHub stars

Install

$npm i -g lark-agents-bridge

Install command taken from the project's README or registry entry. Always review code before running it.

lark-agents-bridge

A local Feishu / Lark bot that forwards chat messages to your local coding agent CLI — Codex, Claude Code, Qwen Code, Kimi Code, CodeBuddy, or DeepSeek Harness, switchable from the chat itself. It is designed for people who already run an agent on their own machine and want to drive it from Feishu or Lark chats.

中文 README

This project was adapted from the architecture of zarazhangrui/feishu-claude-code-bridge, with the agent layer generalized into pluggable adapters and the local state directory renamed to ~/.feishu-codex-bridge (kept for continuity).

Status

This is an open-source alpha extracted from a personal deployment. It is useful for personal or small-team use, but you should review the security model and access-control settings before inviting it into large groups.

The bridge itself needs no API keys: every agent runs through its own login or credentials, set up with that agent's own tooling before the bridge starts.

What's new in v0.3.0

  • Manage multiple Feishu / Lark bot applications from one running bridge and one local agent login.
  • Enroll a new application by QR code, bind an existing App ID and Secret, or switch profiles directly from /account.
  • Switch without a blind reconnect: the bridge validates and connects the replacement first, updates the original card with a final success or failure state, and keeps the current bot online if handoff fails.
  • Isolate encrypted secrets, administrators, chat sessions, named workspaces, and agent-visible lark-cli profiles by bot application.
  • Secure manually bound applications with the one-time /claim <code> administrator handoff.
  • Improve Windows background startup and recovery with a more reliable Task Scheduler launcher and crash watchdog.

Features

  • Send Feishu / Lark messages to a local agent CLI (Codex by default; Claude Code, Qwen Code, Kimi Code, CodeBuddy, and DeepSeek Harness also supported).
  • Keep separate agent sessions per chat or topic.
  • Stream replies as lightweight markdown cards or send one final text reply.
  • Render common LaTeX formulas from agent replies as readable Unicode math in Feishu/Lark.
  • Use /new [name] to create a new group chat and inherit the current workspace.
  • Use /reset to clear the current chat session.
  • Switch and save workspaces with /cd and /ws.
  • Download images and files from chat and pass their local paths to the agent.
  • Configure access control, reply mode, concurrency, run idle timeout, and agent reasoning effort from /config.
  • Manage multiple bot application profiles and switch the active bot from /account.
  • Run in the foreground or as an OS-managed background process.

Agents

The bridge spawns a local agent CLI; preferences.agent.type in config.json (or the first-run wizard) picks which:

Similar plugs

Orca is the ADE for working with a fleet of parallel agents. Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

PluginDev tools+6,803 this week

CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies

Documented system prompts from Anthropic - Claude Fable 5.1, Opus 5.5, Claude Design, Claude Code. OpenAI - ChatGPT GPT-6-Astra, Codex. Google - Gemini 3.8 Flash, 3.1 Pro…

Explore related