Files
LangBot/docs/en/plugin/plugin-intro.mdx
dfa3c743c5 fix(plugins): show installed version and upgrade from plugin detail page (#3083)
- Core: list/get plugin info now report the install_source recorded by Core.
  Shared runtime slots (Cloud) built their container inside the plugin
  process and echoed an empty install_source, so the WebUI never detected
  marketplace updates nor showed the source badge on Cloud. Internal
  `_`-prefixed install_info keys are no longer returned.
- WebUI: update detection pages through the whole marketplace catalog
  instead of the first 100 plugins (Space now lists 104).
- WebUI: plugin detail page shows the installed version badge and, for
  marketplace installs with a newer listed version, an "Update to vX"
  button that runs the existing upgrade task with progress.

LANG-586

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-18 19:18:42 +08:00

56 lines
2.8 KiB
Plaintext

---
title: "LangBot Plugins"
---
LangBot is composed of various internal components such as Large Language Model tools, commands, messaging platform adapters, LLM requesters, and more. To meet extensibility and flexibility requirements, we have implemented a production-grade plugin system.
Plugins are managed uniformly by the Plugin Runtime. Most plugins use a dedicated runtime; a release with a valid artifact-bound certificate may qualify for [cross-tenant shared execution](/en/plugin/certified-plugins) in LangBot Cloud. Review alone is not certification.
<img width="600" src="/images/zh/plugin/dev/plugin_system_arch.png" />
## Plugin Structure
Plugins can provide the following components based on their specific functionality:
- Event Handlers: Listen to events during pipeline execution and modify context or pipelines.
- Commands: Triggered by user command messages starting with `!` (or other configured prefixes).
- Tools: Called by LLMs during execution of LangBot's built-in Local Agent.
- Knowledge Engines: Manage document indexing and retrieval for knowledge bases.
More component types will be supported for plugin implementation in the future.
## Installing Plugins
Currently supports uploading plugin packages and installing plugins from the plugin marketplace.
In LangBot's plugin management page, click the top-right corner to choose the installation method.
<img width="600" src="/images/zh/plugin/install_method.png" />
Click `Upload Local`, select `.lbpkg` files shared by others or downloaded from the Marketplace to install plugins.
Or click the Plugin Marketplace tab, select a plugin, and click install.
<img width="600" src="/images/zh/plugin/install_from_marketplace.png" />
After installing plugins, you need to select the plugin in your pipeline configuration page.
<img width="600" src="/images/zh/plugin/pipeline_extensions.png" />
## Plugin Management
### Plugin Configuration
Some plugins may require you to fill in specific configuration items (please refer to the plugin README instructions). Click on the plugin card to enter the plugin details page and obtain and input the required information as prompted.
<img width="600" src="/images/zh/plugin/plugin_config.png" />
### Updating Plugins
Only plugins installed from the plugin marketplace can be updated. The plugin detail page shows the installed version next to its title; when the marketplace has a newer version, an "Update to vX.Y.Z" button appears at the top right of the detail page. You can also update from the plugin menu in the installed list.
<img width="600" src="/images/zh/plugin/update_plugin.png" />
## Plugin Marketplace
The plugin marketplace can be accessed from LangBot's internal `Plugin Management` page, or you can visit the standalone site [LangBot Plugin Marketplace](https://space.langbot.app/market).