# NoneBot

跨平台 Python 异步聊天机器人框架 / Asynchronous multi-platform chatbot framework written in Python

Repository: https://github.com/nonebot/nonebot2
Canonical: https://ross.abutalabs.com/products/nonebot
Homepage: https://nonebot.dev
Language: Python
License: MIT
License Family: permissive
Topics: nonebot, cqhttp, bot, qq, onebot, nonebot2, fastapi, telegram-bot, mirai-bot, lark-bot, dingtalk-robot, qq-guild, chatbot, python
Last push: 2026-08-26T07:34:20+00:00
Link (homepage): https://nonebot.dev
Link (site_page): https://nonebot.dev/docs/next
Link (site_page): https://nonebot.dev/docs
Link (site_page): https://nonebot.dev/docs/2.4.4
Link (site_page): https://nonebot.dev/docs/2.4.3

## Health v2 (maintenance only)
Score: 87/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 65, longevity 100
- inputs: {"age_days": 2201, "days_push": 7, "days_rel": 154, "gap_med": 82, "n_releases_24m": 6}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7683, forks 663 (observed 2026-08-28T04:10:02.395567+00:00)

## What it is
NoneBot2 is a modern, cross-platform, asynchronous Python chatbot framework with a plugin system, adapter architecture, and built-in dependency injection. It ships with an interactive CLI (nb-cli) and a community plugin/adapter store for platforms like QQ (OneBot), Telegram, DingTalk, Lark, and console.

## Use cases
- build a QQ bot in Python
- create a cross-platform chatbot that works on Telegram and DingTalk
- write modular bot plugins with dependency injection
- scaffold a chatbot project from the command line
- run an async event-driven messaging bot
- install community bot plugins from a store

## When to choose
- you want a Python async framework for chatbots across multiple messaging platforms
- you need a large ecosystem of community plugins and adapters
- you value full type annotations and a clean dependency injection system
- you want an interactive CLI to scaffold and manage bot projects

## When to avoid
- you need a non-Python language or a single-platform bot with minimal dependencies
- you want a hosted/no-code bot builder rather than a code framework
- you need a general-purpose web framework rather than a chatbot framework

## Facets
- artifact type: framework
- maturity: active
- function: web-framework, plugin-system, cli, chatbot, middleware
- domain: chatbots, large-language-models, developer-tools, cross-platform
- platform: python, cross-platform, cli, self-hosted
- tags: nonebot, onebot, qq-bot, telegram-bot, dingtalk, lark, asyncio, dependency-injection, nb-cli, adapter-system, automation, docker

## Member repositories
- nonebot/nonebot2 (main) score 87
- nonebot/nonebot (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:02.395567+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:36:02.036877+00:00, confidence not recorded.
  - readme: https://github.com/nonebot/nonebot2 (fetched 2026-08-28T04:10:02.395567+00:00, sha 3fba4d09d70b)
  - homepage: https://nonebot.dev (fetched 2026-08-29T08:31:46.745162+00:00, sha e4b96786f5f0)
  - site_page: https://nonebot.dev/docs/next (fetched 2026-08-29T08:31:46.754073+00:00, sha 0ecfad40cf30)
  - site_page: https://nonebot.dev/docs (fetched 2026-08-29T08:31:46.755943+00:00, sha 0933639dc2f0)
  - site_page: https://nonebot.dev/docs/2.4.4 (fetched 2026-08-29T08:31:46.757560+00:00, sha d07a2df941db)
  - site_page: https://nonebot.dev/docs/2.4.3 (fetched 2026-08-29T08:31:46.759049+00:00, sha a116240ae984)
  - site_page: https://nonebot.dev/docs/quick-start (fetched 2026-08-29T08:31:46.760522+00:00, sha 906dfc0bb2dc)
  - site_page: https://nonebot.dev/docs/tutorial/application (fetched 2026-08-29T08:31:46.762343+00:00, sha 36d945fb2cde)
  - site_page: https://nonebot.dev/docs/tutorial/fundamentals (fetched 2026-08-29T08:31:46.763929+00:00, sha 040000359d13)
  - site_page: https://nonebot.dev/docs/tutorial/store (fetched 2026-08-29T08:31:46.765401+00:00, sha 53532b276810)
- Data as of 2026-08-30T08:39:29.467469+00:00.
