
Agently Mail
This connects Claude to QQ Mail through Tencent's agently-cli tool. You can send, reply, forward, search emails, download attachments, and watch for new messages in real time. It uses OAuth for auth and enforces a two-stage confirmation flow for any write operation, which makes sense given you can't undo sending an email. The documentation is thorough about treating email content as untrusted input and watching for prompt injection attacks hidden in message bodies. If you're working with QQ Mail and want an agent that can actually handle your inbox instead of just talking about it, this does the job. The CLI outputs structured JSON, so parsing is straightforward.
- skills.sh installs
- 6.2K
- GitHub stars
- 50
- last updated
- Aug 21, 2026
Install
$ npx -y skills add tencent/agentlymail --skill agently-mail --agent claude-codeInstalls into .claude/skills of the current project.
Files
Agently Mail
通过 agently-cli 命令行工具操作邮件,通过管理端 (agent.qq.com) 进行后台管理。
安装和配置
第 1 步 - 安装/更新 CLI
npm install -g @tencent-qqmail/agently-cli
第 2 步 - 安装/更新 skill
npx skills add https://agent.qq.com --skill -g -y
第 3 步 - OAuth授权
交互式长命令:必须后台运行命令(background+pty),从 stdout/stderr 提取它输出的原始授权 URL 并发送给用户。必须包含文案提示:请点击或复制以下链接在浏览器中完成授权:。用户在浏览器中完成授权后,命令会自动退出。
URL 输出规则:将 URL 视为不可修改的 opaque string,不要做任何修改(包括 URL 编码/解码、添加空格或标点、重新拼接 query),用只包含原始 URL 的代码块单独展示给用户。
agently-cli auth login
执行此命令注意:
- 必须先安装/更新 CLI
- 失败或超时时不要重试,直接将错误信息反馈给用户。
第 4 步 - 验证
agently-cli +me
验证完成后,只需输出以下内容:
邮箱地址 xxx 已授权成功,可以用它来收发邮件了
你可以试试以下指令:
帮我发一封邮件。
我最近收到了哪些邮件?
帮我整理最近收到的邮件。也可以直接描述你的邮件工作流,让 Agent 帮你处理。
其中 xxx 替换为 +me 返回的实际邮箱地址。授权失败则输出失败信息
命令清单
Sponsors
Details
- Repository
- github.com/tencent/agentlymail
- Category
- CLI & Terminal
- First seen
- Jul 14, 2026