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
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 --from 'owpp[test]' owpp test    # each plugin's tests/, against a mock Open-WebUI
uvx owpp deploy --only excalidraw --dry-run

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).

uvx owpp init hello --type event     # scaffold plugins/hello/
uvx owpp check
OPEN_WEBUI_URL=https://chat.example.com OPEN_WEBUI_API_KEY=sk-... uvx owpp deploy --dry-run

Deploy from GitHub Actions

- uses: actions/checkout@v5
- uses: zmnatz/open-webui-plugin-protocol@v0.1.0
  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).

Overview concepts, guarantees, status
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
Decisions the calls made for 0.1.0 and what is not done yet
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.1.0, released 2026-11-19, 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 decisions.

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.1.0

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.1.0
File Size Uploaded Provenance Actions
owpp-0.1.0.tar.gz 881.0 kB Without provenance Details for owpp-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 965.5 kB

Release files / owpp-0.1.0.tar.gz

Download URL owpp-0.1.0.tar.gz
Size 881.0 kB
Tags Source
SHA-256 checksum
How to use checksums
00474ad7c9c575c267132b47ecbe7367e3e1432169d2e6dc00f872c698675bde
BLAKE2b-256 checksum
How to use checksums
aaa2c680646237ec23ec897610d9fc4c09bd29ca425782042ffeef89009ce36a
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.1.0-py3-none-any.whl

Download URL owpp-0.1.0-py3-none-any.whl
Size 84.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
64d5258e57991433783578529cb46329a90d0073fb6e0fc252d830358baeefe6
BLAKE2b-256 checksum
How to use checksums
6c9ef7076199412c50a0c917bb7072cb4c2af77b9bdd9b228805958a559c1748
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.1.0

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