QQSafeChat

作者 TheD0ubleC已验证

基于 UI Automation(UIA)的 QQ 聊天机器人完整实现,支持 AI 自动回复与表情包发送。 只需配置 API Key 并绑定 QQ 输入框、聊天列表和发送按钮即可使用。 本项目对 QQ 实现零注入、零内存读写,是目前最安全的 QQ 聊天机器人实现之一。

149
Stars
20
Forks
Python
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/TheD0ubleC/QQSafeChat

快速入门

使用 QQSafeChat 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

QQSafeChat

Logo

介绍与定位

QQSafeChat 是一个基于 Windows UI Automation(UIA)QQ 聊天机器人接入 工具

!!!本项目支持让 AI 发送表情包!!!

为此,创建了一个独立的项目StickerSelector。使用本地微型 AI 模型 m3e-small 根据 AI 生成的表情包描述与多个您添加的表情包及其描述词进行向量空间的位置对比来选取最合适的表情包。


  • 🧀 通过 绑定控件(消息列表 / 输入框 / 发送按钮)实现稳定操作

  • 🧀 非常安全的聊天读取

    • 不注入
    • 不抓协议
    • 不扫描内存
  • 🧀 模拟最真实的人类聊天

    • 模拟打字
    • 正确触发“对方正在输入” 【!!!此功能还未进行测试,即将开放!!!】
    • 消息分段发送
    • 发送表情包

.....懒得写了 将就看看吧 到时候再补

首先只支持 qq9.0 以上

StickerSelector 项目部署、使用方式请去项目仓库

非常重要的事情:

  • 如果出现选择不上组件 选择的是整个窗口(PaneControl)的问题 请点击我
  • 千万不要管理员运行 QQ
  • 运行时请不要让 QQ 窗口被任何东西遮挡 最好关闭系统通知
  • 启动后如果焦点到了其他程序上 消息可能会被中断
  • QQSafeChat本身非常轻量 推荐在至少1.5GB RAM + 1 核心WinServerUbuntu上运行(已包含 QQNT 所需的资源)以防被其他程序获得焦点后中断回复

部署方式: 先安装依赖 我用的是 python3.10.6 作为开发环境 暂时不知道其他环境能不能用 总之最好不要低于这个版本

pip install -r requirements.txt

如果依赖安装没问题 则可以启动

python app.py

没了

运行时:

使用时把那三个要绑定的东西拖到 qq 窗口对应的组件上 alt text

每次启动前都需要右键点击消息区 然后清屏 alt text

推荐用 真实女友-基础 这个人格 我个人感觉是最好的

(我不会写 prompt 都是 ai 写的 但只有那个效果最好 她的分支也还可以 TT)


关于只能选择整个窗口

这个问题一般出现在没有GPU的设备上

QQNT使用的是 Web 桌面框架Electron/Chromium开发的 在无 GPU 的设备上不会默认启用构建Chromium Accessibility 而需要强制开启它 只需要使用--force-renderer-accessibility命令来启动 QQ 即可 比如这样

QQ.exe --force-renderer-accessibility

我推荐在快捷方式后加上这条参数 如需使用 QQ 自启动也需要在自启动快捷方式上增加这条参数

原始 Issue:https://github.com/TheD0ubleC/QQSafeChat/issues/1

常见问题

What is QQSafeChat?

QQSafeChat is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by TheD0ubleC. 基于 UI Automation(UIA)的 QQ 聊天机器人完整实现,支持 AI 自动回复与表情包发送。 只需配置 API Key 并绑定 QQ 输入框、聊天列表和发送按钮即可使用。 本项目对 QQ 实现零注入、零内存读写,是目前最安全的 QQ 聊天机器人实现之一。. It has 149 GitHub stars.

Is QQSafeChat safe to use?

Yes. QQSafeChat passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install QQSafeChat?

Clone the repository with "git clone https://github.com/TheD0ubleC/QQSafeChat" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is QQSafeChat written in?

QQSafeChat is primarily written in Python. It is open-source under TheD0ubleC on GitHub, so you can review or fork the full source.

Are there alternatives to QQSafeChat?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh QQSafeChat against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情