-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
zh dev star plugin publish
github-actions[bot] edited this page Jul 28, 2026
·
5 revisions
在编写完插件后,你可以选择将插件发布到 AstrBot 的插件市场,让更多用户使用你的插件。
AstrBot 使用 GitHub 托管插件,因此你需要先将插件代码推送到之前创建的 GitHub 插件仓库中。
你可以前往 AstrBot 插件发布页面 发布你的插件,发布插件需要注册 AstrBot Cloud 账号。
以下是一个完整的插件元数据示例(metadata.yaml),系统会自动解析这些信息:
name: astrbot_plugin_example # 插件标识符,英文,唯一
display_name: 示例插件名称 # 插件展示名称
# short_desc: 一句话介绍你的插件功能 # (可选)紧凑 UI 使用的短描述
desc: 详细描述插件的功能、特性、使用方法等信息。 # 详细描述插件的信息
可以写多行文本,支持 Markdown 格式。
version: 1.0.0 # 插件版本号(遵循语义化版本规范)
author: 作者名称 # 作者名称
repo: https://github.com/your-name/repo # 插件仓库地址
# astrbot_version: ">=4.17.0" # (可选)支持的 AstrBot 版本范围
# support_platforms: # (可选)支持的平台适配器列表
# - aiocqhttp
# - qq_official
# social_link: https://github.com/your-web # (可选)你的个人网站、GitHub 主页等
# tags: # (可选)标签列表,用于插件市场分类和搜索
# - example::: warning 大小限制 发布到插件市场的插件压缩包(zip)大小不得超过 16MB。
如果超过此限制,CI/CD 流水线将自动拒绝该发布请求。 ::: details 为确保你的插件能顺利通过审核和发布,建议采取以下措施:
- 压缩图片等静态资源:对插件中的图片、音频等资源文件进行压缩,减小体积。
-
清理不必要的文件:避免将
.git目录、__pycache__、node_modules、开发用配置文件等非必需文件提交到插件仓库中。建议在仓库根目录添加.gitignore来排除它们。 - 优化依赖体积:如果插件包含体积较大的依赖库,可考虑精简或按需引入。
-
使用
.gitattributes或发布分支:通过只包含发布所需文件的策略来减小 zip 包体积。
如果插件确实因业务需要无法压缩到 16MB 以内,可以联系维护者手动 bypass 此限制。 :::
- 首页
- 文档入口
- Top Level
- community events
- deploy
- dev
- others
- platform
- 接入 OneBot v11 协议实现
- 接入钉钉 DingTalk
- 接入 Discord
- 接入 Kook
- 接入飞书
- 接入 LINE
- 接入 Matrix
- 接入 Mattermost
- 接入 Misskey 平台
- 接入 QQ 官方机器人平台
- 通过 QQ官方机器人 接入 QQ (Webhook)
- 通过 QQ官方机器人 接入 QQ (Websockets)
- 接入 Satori 协议
- 接入 server-satori (基于 Koishi)
- 接入 Slack
- 接入消息平台
- 接入 Telegram
- 接入 VoceChat
- AstrBot 接入企业微信
- 接入企业微信智能机器人平台
- AstrBot 接入微信公众平台
- 接入个人微信
- providers
- use
- Home
- Docs Entry
- Top Level
- config
- deploy
- Deploy AstrBot on 1Panel
- Deploy AstrBot on BT Panel
- Deploy AstrBot on CasaOS
- Deploy AstrBot from Source Code
- Community-Provided Deployment Methods
- Deploy via Compshare
- Deploy with AstrBot Desktop Client
- Deploy AstrBot with Docker
- Deploy AstrBot with Kubernetes
- Deploy AstrBot with AstrBot Launcher
- Other Deployments
- Package Manager Deployment (uv)
- Installation via System Package Manager
- Preface
- dev
- AstrBot Configuration File
- API Scope–Endpoint Reference
- AstrBot HTTP API
- AstrBot Plugin Market JSON Specification
- Developing a Platform Adapter
- plugin
- AI
- Text to Image
- Handling Message Events
- Plugin Configuration
- Plugin Internationalization
- Plugin Pages
- Sending Messages
- Session Control
- Minimal Example
- Plugin Storage
- AstrBot Plugin Development Guide 🌠
- Publishing Plugins to the Plugin Marketplace
- ospp
- others
- platform
- Connect OneBot v11 Protocol Implementations
- Connect to DingTalk
- Connecting to Discord
- Connect to KOOK
- Connecting to Lark
- Connecting to LINE
- Connecting to Matrix
- Connecting to Mattermost
- Connecting to Misskey Platform
- Connect QQ Official Bot
- Connect QQ via QQ Official Bot (Webhook)
- Connect QQ via QQ Official Bot (Websockets)
- Connect to Satori Protocol
- Connect server-satori (Koishi)
- Connecting to Slack
- Messaging Platforms
- Connecting to Telegram
- Connect to VoceChat
- Connect AstrBot to WeCom
- Connect to WeCom AI Bot Platform
- Connect AstrBot to WeChat Official Account Platform
- Connect Personal WeChat
- providers
- Connect 302.AI
- Agent Runners
- Built-in Agent Runner
- Connect to Coze
- Connect to Alibaba Cloud Bailian Application
- Connect to DeerFlow
- Connect to Dify
- Connect AIHubMix
- coze
- dashscope
- dify
- 大语言模型提供商
- NewAPI
- Connect PPIO Cloud
- Connect LM Studio to Use DeepSeek-R1 and Other Models
- Integrating Ollama
- Connect ShengSuanYun
- Connecting to SiliconFlow
- Connecting Model Services
- Connecting to TokenPony
- use
- Agent Runner
- Agent Sandbox Environment ⛵️
- astrbot sandbox
- CLI Commands
- Docker-based Code Interpreter
- Built-in Commands
- Computer Use
- Context Compression
- Custom Rules
- Function Calling
- AstrBot Knowledge Base
- MCP
- AstrBot Star
- Proactive Capabilities
- Anthropic Skills
- Agent Handoff and SubAgent
- Unified Webhook Mode
- Web Search
- WebUI