# go-cqhttp

cqhttp的golang实现，轻量、原生跨平台.

Repository: https://github.com/Mrs4s/go-cqhttp
Canonical: https://ross.abutalabs.com/products/go-cqhttp
Language: Go
License: AGPL-3.0
License Family: copyleft
Topics: bot, qqbot, qqrobot, coolq, coolq-http-api
Last push: 2026-07-10T11:59:26+00:00

## Health v2 (maintenance only)
Score: 64/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 91, release rhythm 8, longevity 100
- inputs: {"age_days": 2233, "days_push": 54, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 10638, forks 1584 (observed 2026-08-28T04:10:43.609804+00:00)

## What it is
go-cqhttp is a lightweight, natively cross-platform Golang implementation of the OneBot v11 (CQHTTP) standard for QQ bots, built on MiraiGo. It exposes HTTP API, HTTP POST reporting, and forward/reverse WebSocket interfaces for controlling a QQ bot account.

## Use cases
- build a QQ chatbot in any language via HTTP or WebSocket
- run a self-hosted QQ bot daemon on Linux or Windows
- receive QQ group and private message events via reverse WebSocket
- send group messages, replies, and merged forwards programmatically
- migrate an existing CoolQ / coolq-http-api bot to a native Go binary

## When to choose
- you need a lightweight single-binary QQ bot protocol implementation compatible with OneBot v11
- you want cross-platform deployment without the Java Mirai runtime
- you have existing CQHTTP-based bot code that needs a backend

## When to avoid
- you are starting a new QQ bot today - the project is unmaintained due to QQ protocol changes and developers are directed to headless NTQQ alternatives
- you need official or supported QQ API access
- you target platforms other than QQ

## Facets
- artifact type: application
- maturity: abandoned
- function: chatbot, websocket, http-server, api-framework
- domain: messaging-platforms, chatbots, developer-tools
- platform: windows, cross-platform, go
- tags: qq, onebot, cqhttp, bot-framework, protocol-implementation, automation, linux, macos

## Member repositories
- Mrs4s/go-cqhttp (main) score 64
- Mrs4s/MiraiGo (backend) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:43.609804+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:18:27.103059+00:00, confidence not recorded.
  - readme: https://github.com/Mrs4s/go-cqhttp (fetched 2026-08-28T04:10:43.609804+00:00, sha df6e68580a3f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
