# Open-WebUI plugin protocol (owpp) > Write, test and deploy Open-WebUI plugins (a function plus the tool and skills it installs) from a git repository, with the `owpp` CLI (`uvx owpp`). A plugin is a folder with a plugin.yaml; owpp bundles it into the single file Open-WebUI stores, tests it against a mock Open-WebUI, versions it and deploys it. The whole guide as one text file: https://zmnatz.github.io/open-webui-plugin-protocol/llms-full.txt. An agent skill for working with owpp: https://github.com/zmnatz/open-webui-plugin-protocol/tree/main/skills/owpp. Every command's flags: `uvx owpp --help`. ## Home - [Home](https://zmnatz.github.io/open-webui-plugin-protocol/): A way to write, test and deploy Open-WebUI **plugins** from a git repository: ## Getting started - [Install](https://zmnatz.github.io/open-webui-plugin-protocol/install/): `owpp` is a Python package with one dependency (PyYAML). - [Your first plugin](https://zmnatz.github.io/open-webui-plugin-protocol/getting-started/): From an empty repository to a plugin running in Open-WebUI, deployed from git. - [With an AI agent](https://zmnatz.github.io/open-webui-plugin-protocol/ai-agents/): `owpp` is a command-line tool with plain-text output, so a coding agent (Claude Code, Codex, Cursor and the like) drives it the way a person does: - [FAQ](https://zmnatz.github.io/open-webui-plugin-protocol/faq/): Short answers for newcomers. ## Guide - [Creating a plugin](https://zmnatz.github.io/open-webui-plugin-protocol/creating/): `owpp create` is a wizard that scaffolds a plugin. - [Authoring a plugin](https://zmnatz.github.io/open-webui-plugin-protocol/authoring/) - [Plugin format](https://zmnatz.github.io/open-webui-plugin-protocol/plugin-format/) - [Bundling](https://zmnatz.github.io/open-webui-plugin-protocol/bundling/): Open-WebUI keeps a function or tool as one string of code, so the deploy turns a plugin folder into one file per function and per tool. - [Runtime](https://zmnatz.github.io/open-webui-plugin-protocol/runtime/): `src/owpp/runtime/plugin_runtime.py` is appended to every bundle whose plugin declares a tool or skills. - [Libraries](https://zmnatz.github.io/open-webui-plugin-protocol/libraries/): Libraries are plain Python files in `src/owpp/runtime/lib/`, inserted into a bundle by `include:` (see bundling). - [Tooling and CI](https://zmnatz.github.io/open-webui-plugin-protocol/tooling/): `owpp` is the command-line tool: - [Environment variables](https://zmnatz.github.io/open-webui-plugin-protocol/environment-variables/): These are the environment variables `owpp` reads. - [Adopting it](https://zmnatz.github.io/open-webui-plugin-protocol/adopting/) - [Upgrading owpp](https://zmnatz.github.io/open-webui-plugin-protocol/upgrading/): The runtime and libraries are copied into every bundle, so a new owpp changes the code you deploy. - [Troubleshooting](https://zmnatz.github.io/open-webui-plugin-protocol/troubleshooting/): Each entry starts with what owpp prints, then explains the cause and the fix, and links to the page that covers it in full. ## Testing - [Overview](https://zmnatz.github.io/open-webui-plugin-protocol/testing/): A plugin is tested in three layers, each catching what the one before cannot: - [Writing a test](https://zmnatz.github.io/open-webui-plugin-protocol/testing/writing/) - [Each kind of plugin](https://zmnatz.github.io/open-webui-plugin-protocol/testing/kinds/): Recipes for what each kind of plugin does, with the calls that test it. - [The mock](https://zmnatz.github.io/open-webui-plugin-protocol/testing/mock/): `owpp test` runs each plugin against a **mock Open-WebUI**: - [On a real Open-WebUI](https://zmnatz.github.io/open-webui-plugin-protocol/testing/live/): The mock runs the plugin's code, not Open-WebUI. - [In CI](https://zmnatz.github.io/open-webui-plugin-protocol/testing/ci/): Check and test every pull request, so a change that breaks a plugin, or one with no new version, never reaches the deploy: ## Commands - [owpp list](https://zmnatz.github.io/open-webui-plugin-protocol/commands/list/) - [owpp check](https://zmnatz.github.io/open-webui-plugin-protocol/commands/check/) - [owpp bundle](https://zmnatz.github.io/open-webui-plugin-protocol/commands/bundle/) - [owpp build](https://zmnatz.github.io/open-webui-plugin-protocol/commands/build/) - [owpp deploy](https://zmnatz.github.io/open-webui-plugin-protocol/commands/deploy/) - [owpp test](https://zmnatz.github.io/open-webui-plugin-protocol/commands/test/) - [owpp pull](https://zmnatz.github.io/open-webui-plugin-protocol/commands/pull/) - [owpp version](https://zmnatz.github.io/open-webui-plugin-protocol/commands/version/) - [owpp migrate](https://zmnatz.github.io/open-webui-plugin-protocol/commands/migrate/) - [owpp create](https://zmnatz.github.io/open-webui-plugin-protocol/commands/create/) - [owpp init](https://zmnatz.github.io/open-webui-plugin-protocol/commands/init/) ## Examples - [Overview](https://zmnatz.github.io/open-webui-plugin-protocol/examples/): Working plugins in `examples/plugins/`, each with a README (what it is, how to test it, how to deploy it) and its own unit tests. - [Excalidraw](https://zmnatz.github.io/open-webui-plugin-protocol/examples/excalidraw/): A shared Excalidraw drawing per chat, opened in the Artifacts side panel. - [Inline Visualizer](https://zmnatz.github.io/open-webui-plugin-protocol/examples/inline_visualizer/): Classic298/open-webui-plugins `inline-visualizer-v2`: - [mcpo Sync](https://zmnatz.github.io/open-webui-plugin-protocol/examples/mcpo_sync/): An **event** function that writes the servers an mcpo proxy serves into Open-WebUI as OpenAPI tool servers, so the tool list follows mcpo's config instead of being typed into the admin UI. - [Page Banners](https://zmnatz.github.io/open-webui-plugin-protocol/examples/page_banners/): Shows the banners from Admin Panel > Settings > General > Banners in every chat, at the top of the page or right above the message input. - [Stale Data Dashboard](https://zmnatz.github.io/open-webui-plugin-protocol/examples/stale_data/): An event function that serves a read-only page at `/stale-data` listing chats, notes and files older than `STALE_THRESHOLD_HOURS` (default 1), with owner, size and the chats a file is attached to. - [LiteLLM Model Sync](https://zmnatz.github.io/open-webui-plugin-protocol/examples/litellm_model_sync/): An **event** function that reads each LiteLLM gateway's `/model/info` and writes what it learns into Open-WebUI's model configs. - [Clear thinking tags](https://zmnatz.github.io/open-webui-plugin-protocol/examples/clear_thinking_tags/): **Adapted from Clear thinking tags by Haervwe** (MIT; the licence is in `NOTICE.md`), written to this repository's conventions with the same behaviour: - [Dynamic Vision Router](https://zmnatz.github.io/open-webui-plugin-protocol/examples/vision_router/): **Adapted from Dynamic Vision Router by open-webui and atgehrhardt** (credits to @iamg30 for 0.1.5 to 0.1.7; Open WebUI License, see `NOTICE.md`), written to this repository's conventions with the same behaviour: - [Theme Designer Pro](https://zmnatz.github.io/open-webui-plugin-protocol/examples/theme_designer_pro/): **Adapted from Theme Designer Pro 1.22.0 and its Launcher 2.1.2 by G30**, under the MIT licence (the notice is in `NOTICE.md`). ## Review - [Reviewing a change](https://zmnatz.github.io/open-webui-plugin-protocol/reviewing/): How a person checks a pull request or a release before it reaches an Open-WebUI instance. - [Test catalogue](https://zmnatz.github.io/open-webui-plugin-protocol/reference/test-catalogue/): Every unit test of the example plugins: - [Screenshots](https://zmnatz.github.io/open-webui-plugin-protocol/reference/screenshots/): The plugins on a real Open-WebUI, taken by `tools/screenshots/run.py`: - [Taking screenshots](https://zmnatz.github.io/open-webui-plugin-protocol/screenshots/): The unit tests run against a mock. ## Project - [Changelog](https://zmnatz.github.io/open-webui-plugin-protocol/project/changelog/) - [Contributing](https://zmnatz.github.io/open-webui-plugin-protocol/contributing/): What a change to this repository includes, so that the person who reviews it can follow and repeat it. - [Security](https://zmnatz.github.io/open-webui-plugin-protocol/project/security/): Please report it privately, not in a public issue: - [License](https://zmnatz.github.io/open-webui-plugin-protocol/project/license/): MIT License - [Notice](https://zmnatz.github.io/open-webui-plugin-protocol/project/notice/): `src/owpp/runtime/lib/shared_assets.py` and `src/owpp/runtime/lib/live_reload.py` are the reference implementation of the Shared Assets Protocol by Classic298, vendored unmodified, under this licence: