Skip to content

Dearli666/cludeboat

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ClawdBot Bridge

License: MIT Go Version

连接飞书等国内 IM 平台与 ClawdBot AI Agent 的桥接服务。

前置要求

  • ClawdBot Gateway 正在本地运行(默认端口 18789,配置在 ~/.clawdbot/clawdbot.json
  • 飞书企业自建应用的 App ID 和 App Secret

安装

预编译二进制

Linux (amd64)

curl -sLO https://github.com/wy51ai/moltbotCNAPP/releases/latest/download/clawdbot-bridge-linux-amd64 && mv clawdbot-bridge-linux-amd64 clawdbot-bridge && chmod +x clawdbot-bridge

Linux (arm64)

curl -sLO https://github.com/wy51ai/moltbotCNAPP/releases/latest/download/clawdbot-bridge-linux-arm64 && mv clawdbot-bridge-linux-arm64 clawdbot-bridge && chmod +x clawdbot-bridge

macOS (arm64 / Apple Silicon)

curl -sLO https://github.com/wy51ai/moltbotCNAPP/releases/latest/download/clawdbot-bridge-darwin-arm64 && mv clawdbot-bridge-darwin-arm64 clawdbot-bridge && chmod +x clawdbot-bridge

macOS (amd64 / Intel)

curl -sLO https://github.com/wy51ai/moltbotCNAPP/releases/latest/download/clawdbot-bridge-darwin-amd64 && mv clawdbot-bridge-darwin-amd64 clawdbot-bridge && chmod +x clawdbot-bridge

Windows (amd64)

Invoke-WebRequest -Uri https://github.com/wy51ai/moltbotCNAPP/releases/latest/download/clawdbot-bridge-windows-amd64.exe -OutFile clawdbot-bridge.exe

也可以直接从 Releases 页面手动下载。

从源码编译

git clone https://github.com/wy51ai/moltbotCNAPP.git
cd moltbotCNAPP
go build -o clawdbot-bridge ./cmd/bridge/

使用

首次启动

传入飞书凭据,会自动保存到 ~/.clawdbot/bridge.json

./clawdbot-bridge start fs_app_id=cli_xxx fs_app_secret=yyy

日常管理

凭据保存后,直接使用:

./clawdbot-bridge start     # 后台启动
./clawdbot-bridge stop      # 停止
./clawdbot-bridge restart   # 重启
./clawdbot-bridge status    # 查看状态
./clawdbot-bridge run       # 前台运行(方便调试)

可选参数

参数 说明 默认值
fs_app_id 飞书 App ID
fs_app_secret 飞书 App Secret
agent_id ClawdBot Agent ID main
thinking_ms 显示"思考中"延迟(毫秒),0 为禁用 0

查看日志

tail -f ~/.clawdbot/bridge.log

开发

# 前台运行(日志直接输出到终端)
./clawdbot-bridge run

# 编译所有平台
./scripts/build.sh

贡献

欢迎提交 Issue 和 Pull Request!

许可证

MIT License - 详见 LICENSE 文件

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Go 88.5%
  • Shell 6.9%
  • Makefile 4.6%