Skip to main content

Open-WebUI plugin protocol

Write, test and deploy Open-WebUI plugins from a git repository.

A plugin is a folder: a function (the parent), plus an optional tool and skills that are installed when the function is enabled and removed when it is disabled. Shared libraries cover what every plugin ends up re-implementing: HTTP routes that survive reloads, scheduled jobs that run on one worker, data stored with a chat, static files. A CLI (owpp) checks, bundles and deploys them, from a laptop or a GitHub Action.

plugins/excalidraw/
  plugin.yaml          function + tool + libraries, in one manifest
  function.py          class Filter: serves the editor, adds it to replies
  tool.py              class Tools: lets the model read and change the drawing
  shared.py            code both need
  templates/viewer.html   the page, kept out of Python strings
  README.md            what it is, how to test it, how to deploy it
# plugin.yaml
protocol: "0.2"
function:
  title: Excalidraw
  version: 3.1.0
  global: true
tool:
  id: excalidraw
  include: [chat_data]
  access: public
include: [routes, chat_data]
uvx owpp list
#  excalidraw              filter (global)
#  mcpo_sync               event
uvx owpp check                       # bundle, compile, report undefined names
uvx owpp version                     # every plugin's versions (and its tool's and skills')
uvx owpp version excalidraw minor    # a new version, with a CHANGELOG.md entry
uvx --from 'owpp[test]' owpp test    # each plugin's tests/, against a mock Open-WebUI
uvx owpp deploy --only excalidraw --dry-run
uvx owpp sync                        # move plugins taken from git to their latest commit, for review
uvx owpp deploy --dry-run --sync     # what that would change on the live instance, by version

Why

Open-WebUI stores each function and tool as one code blob, edited in the admin UI. That makes it hard to review changes, share code between plugins, keep a tool in step with the function it belongs to, or pin third-party code. This project:

  • bundles a folder into the single file Open-WebUI stores, in a fixed order, with vendored libraries and code pulled from any git repo at a pinned commit;
  • makes the function the parent: its tool and skills come and go with it;
  • deploys from git, updating only what it created (an ownership marker), never hand-made functions.

Install

Requires uv (it brings its own Python) and git (for remote sources). Nothing to install: uvx runs owpp straight from PyPI. To have it on your PATH, uv tool install owpp (or pipx install owpp). See install and getting started.

uvx owpp create                      # a wizard: asks what the plugin is, writes plugins/<id>/
uvx owpp check
OPEN_WEBUI_URL=https://chat.example.com OPEN_WEBUI_API_KEY=sk-... uvx owpp deploy --dry-run
# or OPEN_WEBUI_USERNAME + OPEN_WEBUI_PASSWORD, OPEN_WEBUI_OIDC_TOKEN, or nothing: docs/tooling.md#signing-in

Deploy from GitHub Actions

- uses: actions/checkout@v5
- uses: zmnatz/open-webui-plugin-protocol@v0.2.1
  with:
    url: https://chat.example.com
    api-key: ${{ secrets.OPEN_WEBUI_API_KEY }}
    plugins-dir: plugins

Documentation

Published at https://zmnatz.github.io/open-webui-plugin-protocol/, built from docs/ (uv run --group docs python tools/build_docs.py serve to preview it).

Install requirements, uvx, pinning, the test extra
Getting started from an empty repository to a plugin deployed from CI
With an AI agent the owpp agent skill, owpp create --spec, llms.txt
Overview concepts, guarantees, status
Creating a plugin the owpp create wizard: code written here, installers, plugins from git
Authoring guide function types, conventions, checklist
Plugin format plugin.yaml reference
Bundling exactly what gets deployed; git sources
Runtime install/remove of tools and skills, parent valves
Libraries core, routes, jobs, events, chat_data, static, templates, assets, Shared Assets
Testing unit tests per plugin, the mock Open-WebUI, owpp test
Tooling CLI, deploy settings, ownership marker, GitHub Action, tests
Adopting new repositories, migrating existing functions
Upgrading moving to a new owpp, owpp migrate, what changed in 0.2
Security the trust model, what owpp limits, known limits, how to report

Examples

examples/plugins/: excalidraw (filter + tool + page), mcpo_sync (scheduled event), stale_data (admin dashboard), inline_visualizer (third-party tool and skill from a pinned commit), page_banners (a variant of Better Banners: its script and stylesheet are files in assets/), litellm_model_sync (scheduled event that writes Open-WebUI's model configs from a LiteLLM gateway).

Status

0.2.1, written against Open-WebUI v0.13.4. The bundler, runtime and libraries are tested against stubbed Open-WebUI modules, and each example plugin has unit tests run against a mock Open-WebUI (owpp test). The examples have been deployed and photographed on a real Open-WebUI v0.13.4 (screenshots), but that run is started by hand, not part of CI. See status and limits.

Development

uv sync
uv run pytest                        # owpp's tests and every example plugin's tests/
uv run owpp test --dir examples/plugins
uv run ruff check . && uv run ruff format --check .
uv run owpp check --dir examples/plugins

Licence

MIT (LICENSE). Vendored third-party code (Classic298's Shared Assets Protocol, BSD-3-Clause): NOTICE.md.

This project contains no Open WebUI code: it talks to Open WebUI's API and produces plugins that run inside it. It is an independent project, not affiliated with or endorsed by Open WebUI Inc.; "Open WebUI" is used only to say what it works with. Open WebUI itself is under the Open WebUI License.

Metadata

Release files for owpp 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for owpp 0.2.1
File Size Uploaded Provenance Actions
owpp-0.2.1.tar.gz 954.1 kB Without provenance Details for owpp-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for owpp 0.2.1
File Interpreter ABI Platform Actions
owpp-0.2.1-py3-none-any.whl Python 3 none any Details for owpp-0.2.1-py3-none-any.whl

Total release size: 1.1 MB

Release files / owpp-0.2.1.tar.gz

Download URL owpp-0.2.1.tar.gz
Size 954.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b5cbdf49539e5295ae487df29d8277b76c6ed7b032db8a789ed838eb7c882ef1
BLAKE2b-256 checksum
How to use checksums
eda5e3205da42cfec8b19f406c8ff373fa16731ad1da77fe4200230e35dc69f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / owpp-0.2.1-py3-none-any.whl

Download URL owpp-0.2.1-py3-none-any.whl
Size 131.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dd0a25aa03b29829b8b558204553fcd0d85ea924c98a0ba03401cdf83806f77f
BLAKE2b-256 checksum
How to use checksums
89e07f2b1000d9aff16f626aba3d113192b701edcf2f3377a7b832e15232ae10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for owpp 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page