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.3"
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 pull                        # move plugins taken from git to their latest commit, for review
uvx owpp deploy --dry-run --latest     # 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.

When it is worth it over pasting functions into the admin UI, and when it is not: why this.

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/commands/deploy.md#signing-in

The deploy reads the instance and the credentials from the environment: OPEN_WEBUI_URL, then OPEN_WEBUI_API_KEY, OPEN_WEBUI_USERNAME and OPEN_WEBUI_PASSWORD, OPEN_WEBUI_OIDC_TOKEN, or nothing (signing in). Every variable: environment variables.

Deploy from GitHub Actions

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

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 the CLI, a page per command (deploy settings, signing in, pull, versions), 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), clear_thinking_tags (outlet filter, adapted from Haervwe's), vision_router (inlet filter, adapted from open-webui's Dynamic Vision Router).

Status

0.4.0, 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), and checked there on every change by an end-to-end run with aimock as its models (the live suite). 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). Third-party code: Classic298's Shared Assets Protocol (vendored, BSD-3-Clause), the page_banners example (a variant of Classic298's Better Banners) and the clear_thinking_tags (Haervwe, MIT) and vision_router (open-webui, Open WebUI License) examples. Notices and licences: 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.4.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.4.0
File Size Uploaded Provenance Actions
owpp-0.4.0.tar.gz 1.1 MB Without provenance Details for owpp-0.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 1.2 MB

Release files / owpp-0.4.0.tar.gz

Download URL owpp-0.4.0.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
22644d73d2ef5943b5d8ef6f980aac8c2f2d8c1fe7b0555662d3924c58b515dc
BLAKE2b-256 checksum
How to use checksums
2a3b747e81da2f283e78464d6a7a7ff76b40d27e6a58194ce43380841e23641a
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.4.0-py3-none-any.whl

Download URL owpp-0.4.0-py3-none-any.whl
Size 144.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
163d62643a22adae0d9482a25a5941a78b001e9a71241277659869e6344c5d41
BLAKE2b-256 checksum
How to use checksums
4f27f8d3897a6d0cf0d6ada00d2a0d12778c5cc549126bf5892b3b281169705f
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.4.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