{"id":22802880,"url":"https://github.com/yxw21/qqchatgpt","last_synced_at":"2026-05-15T13:31:39.113Z","repository":{"id":131641787,"uuid":"580822707","full_name":"yxw21/qqchatgpt","owner":"yxw21","description":"qq chatgpt 机器人","archived":false,"fork":false,"pushed_at":"2023-02-01T06:43:34.000Z","size":76,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-17T16:29:53.748Z","etag":null,"topics":["bot","chatgpt","golang","gtp3","qq","qq-bot"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yxw21.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-21T14:38:18.000Z","updated_at":"2023-02-16T08:37:40.000Z","dependencies_parsed_at":"2023-09-15T09:46:09.069Z","dependency_job_id":null,"html_url":"https://github.com/yxw21/qqchatgpt","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/yxw21/qqchatgpt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yxw21%2Fqqchatgpt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yxw21%2Fqqchatgpt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yxw21%2Fqqchatgpt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yxw21%2Fqqchatgpt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yxw21","download_url":"https://codeload.github.com/yxw21/qqchatgpt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yxw21%2Fqqchatgpt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33068360,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","chatgpt","golang","gtp3","qq","qq-bot"],"created_at":"2024-12-12T09:07:37.485Z","updated_at":"2026-05-15T13:31:39.096Z","avatar_url":"https://github.com/yxw21.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 支持的功能\n1. 私聊回复\n2. 群里@回复\n3. 好友请求处理\n\n# 使用\n建议先在本地运行程序扫码登录之后默认会生成`qq.token`和`device.json`，将这两个文件上传到服务器再运行程序。不然扫码会提示当前设备网络不稳定或处于复杂网络环境.\n\n### 直接下载二进制文件运行\n需要安装[依赖](https://github.com/yxw21/qqchatgpt#%E4%BE%9D%E8%B5%96)\n并且提供一些[环境变量](https://github.com/yxw21/qqchatgpt#%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F)\n然后运行\n```\n./qqchatgpt\n```\n\n### 使用docker\n\n参考 https://hub.docker.com/r/yxw21/qqchatgpt\n\n# QQ登录流程\n如果提供了`QQ_UIN`和`QQ_PASSWORD`会先尝试使用qq和密码登录，遇到有验证消息或其他原因不能成功登录的会使用二维码扫码登录。\n\n没有提供`QQ_UIN`和`QQ_PASSWORD`会使用二维码扫码登录。\n\n# CHATGPT登录流程\n如果提供了`QQ_CHAT_GPT_USERNAME`和`QQ_CHAT_GPT_PASSWORD`会自动登录获取`AccessToken`。\n\n`QQ_CHAT_GPT_USERNAME`、`QQ_CHAT_GPT_PASSWORD`和`QQ_CHAT_GPT_ACCESS_TOKEN`必须提供一项\n\n# 依赖\n### Xvfb\n  \nUbuntu or Debian\n```\napt update\napt install xvfb\n```\nCentOS\n```\nyum update\nyum install xorg-x11-server-Xvfb\n```\nAlpine\n```\napk update\napk add xvfb\n```\n### Chrome\n\nUbuntu or Debian\n```\nwget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb\napt install ./google-chrome-stable_current_amd64.deb\n```\nCentOS\n```\nwget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm\nyum localinstall -y google-chrome-stable_current_x86_64.rpm\n```\nAlpine\n```\napk add chromium\n```\n\n\n# 环境变量\n建议同时提供`QQ_CHAT_GPT_USERNAME`、`QQ_CHAT_GPT_PASSWORD`、`QQ_CHAT_GPT_ACCESS_TOKEN`。\n\n如果只提供用户名和密码登录账号可能需要一些时间。可能是几十秒，也有可能是几分钟（受网络影响）。如果同时提供`QQ_CHAT_GPT_ACCESS_TOKEN`可以避免等待登录。\n\n在`QQ_CHAT_GPT_ACCESS_TOKEN`即将到期前的6个小时就开始自动刷新token。\n\n### QQ_UIN (可选)\nQQ号\n### QQ_PASSWORD (可选)\nQQ密码\n### QQ_CHAT_GPT_USERNAME (可选)\nopenai用户名\n### QQ_CHAT_GPT_PASSWORD (可选)\nopenai密码\n### QQ_CHAT_GPT_ACCESS_TOKEN (可选)\n大概7天过期\n1. 登录 https://chat.openai.com\n2. 访问 https://chat.openai.com/api/auth/session\n### QQ_CHAT_GPT_POLICY (可选)\n好友添加策略\n\n同意好友添加请求\n```\nQQ_CHAT_GPT_POLICY = agree\n```\n拒绝好友添加请求\n```\nQQ_CHAT_GPT_POLICY = reject\n```\n不处理好友添加请求\n```\nQQ_CHAT_GPT_POLICY = ignore\n```\n当验证消息与给定的正则表达式匹配时才会同意添加\n```\nQQ_CHAT_GPT_POLICY = agree,123456\n```\n远程验证（GET请求`http://example.com/验证信息`），响应状态码为201同意添加\n```\nQQ_CHAT_GPT_POLICY = agree,https://example.com\n```\n### QQ_PROXY（可选）\n浏览器代理，出现too many request时可以选择更换服务器ip，或者设置代理\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyxw21%2Fqqchatgpt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyxw21%2Fqqchatgpt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyxw21%2Fqqchatgpt/lists"}