If you find this project useful, please consider giving it a ⭐ — it helps others discover it!
Use AI coding agents (Copilot, Claude, Codex, Gemini…) directly from Feishu/Lark — no server, no webhook, runs on your machine.
Feishu message → WebSocket long connection → ACP agent subprocess → reply back to Feishu
No public endpoint needed. The bridge runs locally and connects out.
- Node.js 20+
- An ACP-compatible agent installed and authenticated (e.g.
gh copilot,claude,gemini) - A Feishu account — personal or enterprise, created automatically on first run via
lark-cli
npx feishu-acp --agent copilotFirst run opens an interactive setup to create or connect your Feishu bot.
| Preset | Agent |
|---|---|
copilot |
GitHub Copilot CLI |
claude |
Claude Code |
codex |
OpenAI Codex CLI |
gemini |
Gemini CLI |
opencode |
OpenCode |
npx feishu-acp agents # list all presetsCustom command also works:
npx feishu-acp --agent "npx my-agent --acp"| Flag | Description | Default |
|---|---|---|
--agent <preset|cmd> |
Agent to run (required) | — |
--cwd <dir> |
Working directory for the agent | process.cwd() |
--setup |
Re-run Feishu bot setup | — |
--idle-timeout <min> |
Session idle timeout in minutes (0 = unlimited) |
1440 |
--max-sessions <n> |
Max concurrent user sessions | 10 |
--hide-thoughts |
Don't forward agent reasoning to Feishu | — |
First run handles this automatically via lark-cli browser OAuth. To set up manually:
- Create a self-built app on Feishu Open Platform
- Enable Bot capability
- Add permissions:
im:message,im:message:send_as_bot,im:message.react:create - Subscribe to event
im.message.receive_v1using long connection mode - Run
npx feishu-acp setup→ choose "existing app"
Credentials are saved to ~/.lark-channel/config.json and auto-loaded on next run.
git clone https://github.com/JiaqiZhang-Dev/lark-acp.git
cd lark-acp
npm install
npm run build # compile TypeScript → dist/
npm run dev # watch mode
node dist/bin/lark-acp.js --agent copilotInspired by wechat-acp — the original project that bridges WeChat to ACP agents. lark-acp brings the same idea to Feishu/Lark.
MIT
