Skip to content
AstrBot
Main Navigation HomeBlogRoadmapHTTP API

English

简体中文

English

简体中文

Toggle dark mode

Intro & DeployMessaging PlatformsAI IntegrationUsageDevelopment
Sidebar Navigation

Introduction

What is AstrBot

Community

FAQ

Deployment

Script Deployment

Desktop Client

One-click Launcher

Docker

Kubernetes

BT Panel

1Panel

Source Deployment

Other Deployments

CasaOS

Compshare GPU

Community-provided Deployment

Support Us

Messaging Platforms

Quick Start

QQ Official Bot

Websockets

Webhook

OneBot v11

WeCom Application

WeCom AI Bot

WeChat Official Account

Personal WeChat

Lark

DingTalk

Telegram

LINE

Slack

Mattermost

Misskey

Discord

KOOK

Satori

Connect Satori

Using server-satori

Community-provided

Matrix

VoceChat

AI Integration

✨ Model Providers

MiraRouter

NewAPI

ShengSuanYun

AIHubMix

PPIO Cloud

SiliconFlow

TokenPony

302.AI

DeepSeek TTS

DeepSeek STT

Ollama

LMStudio

⚙️ Agent Runners

Built-in Agent Runner

Dify

Coze

Alibaba Bailian

DeerFlow

Usage

WebUI

AstrBot CLI

Built-in Commands

Plugins

Plugins

MCP

Skills

AstrBot Built-in AI

Agent Sandbox

SubAgent Orchestration

Proactive Capabilities

Web Search

SerpApi

DeepSeek Search API

Knowledge Base

Context Compression

Custom Rules

Agent Execution Mode

Unified Webhook Mode

Development

Plugin Development

🌠 Getting Started

Minimal Example

Listen to Message Events

Send Messages

Plugin Configuration

Plugin Views

Overview

Standalone plugin page

Interactive message component

Workbench page

Shared Bridge API

Backend Web APIs

Plugin Internationalization

AI

Models

Agents

Tools

Sessions and Conversations

Other APIs

Storage

HTML to Image

Session Control

Publish Plugin

Plugin Market Specification

Versions

2026-11-25

2026-06-27

Platform Adapter Integration

AstrBot HTTP API

API Scope–Endpoint Reference

AstrBot Configuration File

Others

Diagnostics

Self-hosted HTML to Image

Open Source Summer

OSPP 2025

On this page

AstrBot Plugin Market JSON Specification ​

Specification version: 2026-11-25

Market JSON schema version: 1

1. Scope ​

This document defines the JSON format for AstrBot plugin market sources.

2. Terms ​

  • PluginRecord: One plugin entry in a market source.
  • MarketMetadata: Metadata for the market source itself.
  • plugin_id: The global plugin package identifier.
  • metadata.yaml: The plugin metadata file inside the installed plugin package.

The terms MUST, MUST NOT, SHOULD, SHOULD NOT, and MAY are normative.

3. Document Format ​

A plugin market source MUST be a UTF-8 JSON object.

The root object MUST contain the reserved $meta key.

All root keys other than $meta MUST be one of:

  • a plugin_id string
  • a name string under the compatibility exception in Section 5

Each root key other than $meta MUST map to a PluginRecord object:

json
{
  "$meta": {
    "schema_version": 1,
    "name": "AstrBot Official Plugin Market",
    "version": "2026-11-25",
    "homepage": "https://astrbot.app",
    "repository": "https://github.com/AstrBotDevs/AstrBot_Plugins_Collection"
  },
  "owner/astrbot_plugin_foo": {
    "author": "owner",
    "name": "astrbot_plugin_foo",
    "version": "1.0.0",
    "repo": "https://github.com/owner/astrbot_plugin_foo",
    "desc": "Plugin description"
  },
  "astrbot_plugin_bar": {
    "author": "owner",
    "version": "1.0.0",
    "repo": "https://github.com/owner/astrbot_plugin_bar",
    "desc": "Compatibility record using the root key as name"
  }
}

The root object MUST NOT contain top-level metadata fields outside $meta.

4. Market Metadata ​

$meta MUST NOT be interpreted as a PluginRecord.

$meta MUST be a MarketMetadata object.

MarketMetadata MUST contain:

FieldTypeRequirement
schema_versionintegerMarket JSON schema version. MUST be 1 for this specification.

MarketMetadata MAY contain:

FieldTypeRequirement
namestringHuman-readable market source name.
versionstringMarket source data version. MUST NOT be used as the schema version.
homepagestringHTTPS homepage URL.
repositorystringHTTPS repository URL for the market source data.
descriptionstringMarket source description.
updated_atstringISO 8601 timestamp.
categoriesobject[]The source's category definitions in filter display order.

$meta MUST NOT be used for:

  • plugin identity
  • install source resolution
  • update source resolution
  • plugin security validation

4.1. Marketplace Categories ​

$meta.categories is optional. Each market source can define its own categories. Each category definition in the array has the following fields.

FieldTypeRequirement
idstringRequired. MUST match [a-z0-9][a-z0-9_]* and be unique within the source. It SHOULD remain stable.
display_namestringRequired. MUST be non-empty after trimming. Used as the default display name.
i18nobjectOptional. Keys SHOULD be BCP 47 locale tags. Each locale object provides a non-empty display_name.
json
{
  "$meta": {
    "schema_version": 1,
    "categories": [
      {
        "id": "utility",
        "display_name": "Utilities",
        "i18n": {
          "zh-CN": { "display_name": "实用工具" },
          "ja-JP": { "display_name": "ユーティリティ" }
        }
      }
    ]
  },
  "owner/astrbot_plugin_example": {
    "author": "owner",
    "name": "astrbot_plugin_example",
    "version": "1.0.0",
    "repo": "https://github.com/owner/astrbot_plugin_example",
    "desc": "Example plugin",
    "category": "utility"
  }
}

A plugin record may use category to reference one category ID from the same source using an exact match. The WebUI uses the first non-empty label in this order. It tries the current locale, then its base language, then the default display_name. For example, zh-CN falls back to zh, then to the default name. Locale tags are matched case-insensitively.

The category filter row always shows All and the total plugin count. Additional filters correspond to valid categories referenced by at least one plugin. Plugins without a category or with an unknown category ID remain available in the full list.

When adding or updating an index entry, market source maintainers should read the category declared in the plugin's metadata.yaml. If the ID is defined in the source, they should copy it to the plugin record's category field. Market sources can define their own categories or use the recommended IDs. Recommended categories in the plugin development guide

5. Plugin Identity ​

plugin_id is defined as:

text
metadata.author + "/" + metadata.name

For every PluginRecord:

  • The root key SHOULD equal ${author}/${name}.
  • The root key MAY equal name under the compatibility exception below.
  • author MUST equal metadata.yaml.author.
  • name MUST equal metadata.yaml.name.
  • plugin_id MUST be globally unique across the AstrBot plugin ecosystem.
  • Two plugin_id values that are equal after lowercase normalization MUST NOT both exist.
  • repo MUST NOT be used as plugin identity.
  • root_dir_name, local directory names, display names, and registry names MUST NOT be used as plugin identity.

author and name:

  • MUST be non-empty strings.
  • MUST be trimmed.
  • MUST NOT contain /.
  • MUST NOT contain ASCII control characters.
  • SHOULD be stable package identity values, not display names.

5.1. Name Key Compatibility Exception ​

A root key MAY equal metadata.yaml.name instead of ${author}/${name}.

When this exception is used:

  • The root key MUST NOT contain /.
  • author MUST be present.
  • name MAY be omitted.
  • If name is present, it MUST equal the root key.
  • The root key MUST equal metadata.yaml.name.
  • Consumers MUST construct plugin_id as ${author}/${root_key}.

6. Required Fields ​

Each PluginRecord MUST contain:

FieldTypeRequirement
authorstringPlugin author namespace. MUST match metadata.yaml.author.
namestringPlugin package name. MUST match metadata.yaml.name. MAY be omitted only when the root key equals metadata.yaml.name.
versionstringPlugin version. MUST match metadata.yaml.version.
repostringHTTPS GitHub repository URL used for source attribution and installation.
descstringDefault plugin description.

7. Optional Fields ​

FieldTypeRequirement
display_namestringHuman-readable plugin name.
short_descstringShort description for compact UI.
download_urlstringHTTPS ZIP download URL. Installed package identity MUST still match author/name.
changelog_urlstringChangelog URL for the version in this record. See section 7.3.
logostringHTTPS image URL or relative static asset path.
tagsstring[]Tag list.
categorystringReference to one category ID in the same source's $meta.categories.
support_platformsstring[]Supported platform keys.
astrbot_versionstringAstrBot version requirement expression.
social_linkstringAuthor or project HTTPS URL.
contributorsobject[]Contributors in display order. Each entry needs a non-empty string name and may include a public email string at contact.email and an HTTPS URL at contact.homepage. The detail page falls back to author if there are no valid entries.
linksobjectOptional HTTPS URLs at homepage, issues, documentation, and community, plus an optional funding object. Its keys github, afdian, open_collective, buy_me_a_coffee, patreon, and ko_fi each take one HTTPS URL. custom takes an ordered list of HTTPS URLs.
updated_atstringISO 8601 timestamp.
i18nobjectLocalized display fields.
pinnedbooleanMarket recommendation flag.
starsintegerNon-negative star count or ranking signal.
download_countintegerNon-negative download count.

7.1. Repository URL ​

repo MUST be one of:

text
https://github.com/{owner}/{repository}
https://github.com/{owner}/{repository}.git
https://github.com/{owner}/{repository}/tree/{branch}

owner, repository, and branch MUST match:

text
[A-Za-z0-9_-]+

repo MUST NOT be:

  • an HTTP URL
  • an SSH URL
  • a non-GitHub URL
  • a GitHub Enterprise URL
  • a GitHub file, release, pull request, issue, or subdirectory URL

download_url MAY point to any HTTPS ZIP URL.

7.2. Localized Fields ​

i18n keys SHOULD be BCP 47 locale tags.

Each locale object MAY contain:

json
{
  "display_name": "Localized name",
  "desc": "Localized description",
  "short_desc": "Localized short description"
}

7.3. Changelog URL ​

changelog_url MUST be an absolute HTTPS URL. An anonymous GET MUST return UTF-8 Markdown with a Content-Type of text/markdown or text/plain. The document server MUST allow dashboards hosted on other origins to read the response via CORS.

The document MUST correspond to the version of the same plugin record and MAY include changelog entries up through that version. When publishing a new version, the market source SHOULD update version and changelog_url together. The source SHOULD omit the field when the document is unavailable. Consumers SHOULD let users read the changelog before confirming an update. Users can still confirm an update if the changelog fails to load.

8. Reserved Fields ​

Market sources MUST NOT use these fields inside PluginRecord objects:

FieldReason
plugin_idDerived from author/name.
market_plugin_idRuntime/client compatibility field, not market data.
market_plugin_identifierDeprecated runtime/client compatibility field.
root_dir_nameLocal installation field.
local_plugin_nameLocal installation field.
install_methodLocal installation field.
registry_urlLocal installation field.
registry_nameLocal installation field.
installed_atLocal installation field.

Consumers MUST NOT use reserved fields for plugin identity.

The root key $meta is reserved for MarketMetadata.

9. Deprecated Fields ​

These fields MAY be accepted by clients during migration, but new market sources MUST NOT emit them:

Deprecated FieldReplacement
support_platformsupport_platforms
platformsupport_platforms

10. Unknown Fields ​

Consumers MAY preserve unknown fields.

Consumers MUST NOT use unknown fields for:

  • plugin identity
  • install source resolution
  • update source resolution
  • security validation

11. Validation Rules ​

A market source is valid only if all rules pass:

  1. The root JSON value is an object.
  2. $meta is present.
  3. $meta is an object.
  4. $meta.schema_version is the integer 1.
  5. Every root key other than $meta is either a plugin_id or a name key.
  6. Every root value other than $meta is a PluginRecord object.
  7. Every record contains all required fields except name MAY be omitted when the root key is a name key.
  8. Every required string field is non-empty after trimming.
  9. author and present name values do not contain /.
  10. The root key equals ${author}/${name} exactly, or the root key equals name exactly under the compatibility exception.
  11. No two IDs are equal after lowercase normalization.
  12. repo is an HTTPS GitHub repository URL.
  13. If present, download_url is an HTTPS URL.
  14. If present, tags is an array of strings.
  15. If present, support_platforms is an array of strings.
  16. If present, stars is a non-negative integer.
  17. If present, download_count is a non-negative integer.
  18. If present, updated_at is an ISO 8601 timestamp.
  19. If present, $meta.homepage is an HTTPS URL.
  20. If present, $meta.repository is an HTTPS URL.
  21. If present, $meta.updated_at is an ISO 8601 timestamp.
  22. The package resolved from repo or download_url contains metadata.yaml.
  23. metadata.yaml.author equals author.
  24. metadata.yaml.name equals name.
  25. metadata.yaml.version equals version.
  26. If present, changelog_url meets the requirements of section 7.3.

12. Installation Rules ​

For market installation:

  1. The client sends the selected plugin_id and registry source to the backend.
  2. The backend resolves the PluginRecord from that registry source by plugin_id.
  3. The backend installs using download_url when available; otherwise it installs using repo.
  4. After installation, the backend reads the installed metadata.yaml.
  5. The installed metadata.yaml.author/name MUST equal the selected plugin_id.
  6. If identity validation fails, installation MUST fail.
  7. A successful market install MAY persist repo, download_url, registry information, and install time in local state.
  8. When a plugin references a valid category, the category field in the same installation record stores a snapshot containing id, display_name, and optional i18n. The field is omitted when the reference cannot be resolved.

12.1. WebUI Installation Links ​

The WebUI in AstrBot v4.30.0 and later supports opening the market plugin installation flow through URL parameters. Market websites can let users configure their own WebUI address and generate a link such as:

text
https://bot.example/#/extension/plugins?market_plugin_id=owner%2Fastrbot_plugin_foo&registry_url=https%3A%2F%2Fmarket.example%2Fplugins.json
  • market_plugin_id: Required. The author/name identifier defined in Section 5, matching the target market record's plugin identity.
  • registry_url: Optional. The full HTTPS URL of the market source JSON. Omitting it uses the default market source.

The parameters belong to the query string after #/extension/plugins, and their values MUST be URL-encoded. They are WebUI navigation parameters, MUST NOT be included in PluginRecord, and MUST NOT be combined with the direct repository installation parameter install_url.

If the target source has not been added, the WebUI first asks the user to confirm adding it, then previews the plugin and waits for installation confirmation. Installation follows the rules in this section, including preferring download_url and validating package identity.

13. Update Rules ​

For market-installed plugins:

  1. Update checks MUST use the registry source recorded at installation time.
  2. Update checks MUST resolve the market record by plugin_id.
  3. Version comparison MUST use the installed metadata version and the market record version.
  4. Update execution MUST use the resolved market record repo/download_url.
  5. Regular plugin updates preserve the category snapshot in the installation record.

For non-market installs:

  1. URL installs, Git installs, and upload installs MUST NOT be treated as market installs.
  2. They MAY persist plugin_id from installed metadata.yaml.
  3. They MUST NOT enable market update checks unless explicitly bound to a market source.

14. Source Binding Rules ​

When binding an installed non-market plugin to a market source:

  1. The installed plugin identity MUST be read from installed metadata.yaml.
  2. Candidate market records MUST have the same plugin_id.
  3. Candidate market records SHOULD have the same repository identity.
  4. Binding MUST persist the selected registry source and plugin_id.
  5. Market source binding stores a category snapshot from the selected source using the installation rules.

15. Compatibility ​

Consumers MAY read legacy market sources during migration.

For legacy sources:

  • Consumers MAY accept sources without $meta.schema_version during migration.
  • Consumers SHOULD construct plugin_id from author/name.
  • Consumers SHOULD reject entries without author or name for market installation.
  • Consumers MAY use legacy root keys for display only.
  • Consumers MUST NOT use legacy root keys as plugin identity unless the key equals ${author}/${name}.

New market sources MUST include $meta.schema_version.

Edit this page on GitHub

Last updated:

Pager
PreviousVersions
Next2026-06-27

Deployed on Rainyun Logo