Claude Skill
oujingzhou/openmozi
Ultra-lightweight Clawdbot/Moltbot for Chinese LLMs with native support for Lark, DingTalk, WeCom, and QQ. Built with TypeScript for seamless integration.
Overview
Repository
Install this Skill
npm install -g mozi-botRegistry
npm install -g mozi-botgit clone https://github.com/King-Chau/mozi.gitdocker run -d -p 3000:3000 mozi-bot:latest start --web-onlydocker run -d -p 3000:3000 \
Summary
Mozi is an ultra-lightweight Clawdbot/Moltbot designed for Chinese large language models (LLMs). It provides seamless integration with popular Chinese communication platforms including Lark (Feishu), DingTalk (Dingding), WeCom (Enterprise WeChat), and QQ.
支持国产大模型与飞书、钉钉、QQ、企业微信的Clawdbot/Moltbot
Key features
- Ultra-lightweight architecture
- Native support for Chinese LLMs
- Multi-platform integration (Lark, DingTalk, QQ, WeCom)
- TypeScript implementation
- Clawdbot/Moltbot functionality
Use cases
- Building chatbots for Chinese enterprise communication
- Integrating LLMs with DingTalk workflows
- Creating QQ group automation bots
- Developing Feishu/Lark applications with AI capabilities
- WeCom business process automation
README excerpt
<p align="center"> <img src="./docs/images/mascot.svg" width="80" alt="Mozi Mascot" /> </p> <p align="center"> <a href="./README_EN.md">English</a> | 中文 </p> <table align="center"> <tr> <td align="center"><sub>飞书 机器人</sub></td> <td align="center"><sub>QQ 机器人</sub></td> <td align="center"><sub>钉钉机器人</sub></td> </tr> <tr> <td><img src="./docs/images/feishu.jpg" width="400" alt="飞书 机器人" /></td> <td><img src="./docs/images/qq.jpg" width="400" alt="QQ 机器人" /></td> <td><img src="./docs/images/dingding.jpg" width="400" alt="钉钉机器人" /></td> </tr> </table> **支持国产大模型和国产通讯软件的智能助手框架** OpenMozi 是一个轻量级的 AI 助手框架,专注于国产生态。基于 [pi-coding-agent](https://github.com/nicemicro/pi-coding-agent) 构建 Agent 运行时(内置会话管理、上下文压缩、工具执行),使用 [pi-ai](https://github.com/nicemicro/pi-ai) 作为统一的多模型调用层(支持 25+ 提供商),原生支持 Function Calling,并支持 QQ、飞书、钉钉、企业微信等通讯平台。 ## 核心特性 | 模块 | 目录 | 职责 | |------|------|------| | **Agent** | `src/agents/` | 核心消息循环、会话管理(基于 pi-coding-agent) | | **Providers** | `src/providers/` | 模型解析与映射层(基于 pi-ai,支持 25+ 提供商) | | **Tools** | `src/tools/` | 工具注册、参数校验、执行引擎,支持自定义扩展 | | **Skills** | `src/skills/` | 技能系统,通过 SKILL.md 注入专业知识和自定义行为 | | **Channels** | `src/channels/` | 通道适配器,统一消息格式,支持长连接 | | **Sessions** | `src/sessions/` | 会话持久化,支持内存/文件存储,Transcript 记录 | | **Gateway** | `src/gateway/` | HTTP/WebSocket 服务,路由分发 | ### 上下文压缩策略 基于 [pi-coding-agent](https://github.com/nicemicro/pi-coding-agent) 内置的智能压缩系统: 1. **自动压缩** — 当上下文接近 Token 限制时自动触发 2. **摘要生成** — 将早期对话压缩为摘要,保留关键信息 3. **会话持久化** — 支持 JSONL 格式会话存储和恢复 4. **分支管理** — 支持会话分支和历史回溯 ## 核心特性 - **多模型支持** — 基于 pi-ai 统一调用层,支持 DeepSeek、豆包、DashScope (Qwen)、智谱AI、Kimi、阶跃星辰、MiniMax,以及 OpenAI/Anthropic/OpenRouter/Groq 等 25+ 提供商 - **多平台通道** — QQ、飞书、钉钉、企业微信,统一的消息处理接口 - **Function Calling** — 基于 pi-coding-agent 的 Agent 运