What Open WebUI functions do and when a shared deployment needs them
Functions are the right tool when an administrator must apply one rule to every conversation, such as a policy check or a redaction step, or when a team wants to offer a custom model endpoint alongside the models already connected. Open WebUI supports three function types. A pipe presents a custom model to users in the model selector and handles the requests sent to it. A filter runs on messages as they move through the system, which is where policy and redaction logic usually sits. An action adds a button that users can press on a message to trigger a defined operation. Each type is useful, but each also moves logic out of the standard product and into code your organization must own, test and maintain.
The critical fact is that Functions run arbitrary Python on the server, not in the user's browser. A function therefore has the same reach as the Open WebUI process: the environment variables it can read, the files and databases mounted into its container, and the network destinations it can contact. Before enabling any function, decide who may create, import or edit one. In a shared deployment, an editable function is effectively a change to production code. Check the project's documentation to confirm which admin roles can manage Functions and whether any setting limits that to administrators only, and verify the answer on a staging instance before you depend on it.
This page covers the review controls that should exist before a function reaches users: where the code comes from, who reviews and approves it, how changes are tested outside production, which secrets and network paths it can reach, and how its activity is logged. These controls matter most for filters, because a filter can see and change the content of every message in its scope. Plan them as part of the rollout, before the first function is enabled. If Open WebUI already runs in production, open the function list in the admin panel and confirm that each entry has a named owner and a reviewed version. The Open WebUI features documentation describes the current function options.
Pipes, filters and actions compared: which function type fits which job
This table compares the three Open WebUI function types by what they change, where they run, the typical job they fit and the main risk each one adds. Read each row against the job you need done, then check the exact hook names and parameters in the current features documentation before you write code. The main takeaway is that every function type runs Python on your server, so each one needs the same review before it reaches users.
| Function type | What it changes | Where it runs | Typical job | Main risk |
|---|---|---|---|---|
| Pipe | Adds entries to the model list and handles the request itself, so the function returns the model response | Open WebUI server, in the Python process that handles chat requests | Wrapping a provider or internal API as a selectable model, or routing requests to a service Open WebUI does not support natively | The pipe holds the model's output path, so a faulty or malicious pipe can see prompts, responses and any credentials it reads |
| Filter | Alters the message flow around a request, such as inlet changes before the model call or outlet changes after the response | Open WebUI server, on every chat that uses the attached model or is enabled globally | Policy checks, redaction of personal data, injecting system context or logging request metadata | A filter applies to every matching message, so a logic error can silently change or leak content across many users |
| Action | Adds a user-triggered button or output to a message, and runs only when a user invokes it | Open WebUI server, when the user clicks the action | Exporting a message, creating a ticket from a reply or sending text to an internal system on demand | Users decide when it runs, so it may send data to outside services without the admin reviewing each use |
| Who can add or change it | Admins install functions, and the admin role controls which functions are enabled | Admin panel configuration, reviewed before enabling | Confirm in the current docs which roles can create functions and whether non-admin users can add them | A function written or copied by a user could run code under the server's identity if that role is allowed |
| Access to secrets and data | Depends on the function code and the valves or settings it reads | Server environment, so environment variables and mounted files may be reachable | Calling a provider API key or an internal endpoint from the function | Hard-coded keys, or keys read from the environment, can end up in logs, exports or shared copies of the function |
| Need for code review | Required for all three types because each runs arbitrary Python | Same review path for every type | Review the source, dependencies, outbound calls and settings before enabling | Skipping review for actions because they seem low risk leaves an outbound path open |
| Testing approach | Test each type with inputs that include sensitive examples, errors and large messages | Staging instance with the same version as production | Confirm behavior with a test account before enabling for groups | A function that works in a single chat may fail or slow down under concurrent use |
How to set up and approve a Function in a shared deployment
This sequence moves a Function from request to production in stages, so that no Python code reaches users until someone has read it, tested it against realistic prompts and watched it run for a limited group. Each step ends with a check that the team can record before moving on.
Restrict who can create and import Functions
Start by limiting the Functions permission to a small set of named administrators, since a Function is Python code that runs on the server, not a prompt setting. Confirm in the admin panel that ordinary users and standard groups cannot create, import or edit Functions, then test this by signing in with a non-admin test account. Keep the approved list of administrators in your change record so each later change can be traced to a person.
Review the source in a staging instance
Import the proposed Function into a staging instance that mirrors production configuration, including the same model connections and environment variables, but holds no real user data. Have a reviewer who did not write the code read every line, looking for outbound network calls, file access, logging of message content, hard-coded keys and changes to the message object that the next layer may rely on. The step is complete when the reviewer signs off on a specific version of the source, and that version's hash or copy is stored with the approval.
Test inbound and outbound filtering on the staging instance
Confirm that a filter receives both the user's message before it reaches the model and the model's response before the user sees it. Write a test set that includes ordinary prompts, prompts with personal identifiers, card-like or account-like numbers, secrets pasted into the chat, text split across lines, mixed-case variants, and content in other languages or encodings. Compare the filtered output against the expected result for each case. Record which cases pass, which fail and which the filter cannot see, because the gaps tell you what users must still be told.
Test pipes and actions with representative prompts
Run the pipe with the model names and prompt patterns your users will choose, and check that the pipe returns the expected model list and handles errors from the upstream provider without exposing stack traces or keys. For each action button, confirm which messages it can see, what it writes and whether it sends data outside the instance. Retest after any configuration change, and treat a failed case as a reason to return to the source review rather than patching the test.
Enable the Function for a limited group
Enable the pipe, filter or action and assign it only to a pilot group through the Function's access settings, not to all users. Sign in as one user from the pilot group and one user outside it, and confirm that the pipe appears in the model selector only for the pilot group, and that the filter or action is absent for everyone else. Keep the pilot running long enough for the team to review logs and any user reports, and record what was seen before expanding access.
Review pilot logs and reported issues
Before expanding access, review the server logs and any user feedback for errors, unexpected latency, blocked messages that should have passed and messages that passed when they should have been blocked. Check that the logs do not contain message bodies or credentials that the Function handled. Assign an owner to each finding and decide whether it requires a source change, which would restart the review sequence, or a configuration change. The step closes when the owner records a decision for every open finding.
Promote the approved version to production
Install the exact reviewed version in production, using the same source as the approved staging copy rather than a fresh edit, and confirm the version matches the recorded hash or copy. Repeat the inbound and outbound filter check and the group visibility check in production with test accounts. Record the approver, the date, the version and the group assignments in the change log, and schedule a periodic review of who holds Function permissions and which Functions remain enabled.
Code review controls for Functions that run arbitrary Python
Open WebUI Functions run as Python on the Open WebUI server, so a function has the same reach as the process that runs it. The six controls below cover what happens before a function is installed, how edits are governed, who can change functions, where credentials live, what the server can reach, and how changes are recorded.
Source review before install
Read every function's full source before it is imported, including any helper modules it pulls in. Check for file access, subprocess calls, environment variable reads, outbound HTTP requests and dynamic imports, since a pipe or filter runs with the server's privileges on every message. Treat a function imported from a community listing as untrusted code until a named reviewer has signed off on the exact version being installed.
Pinned versions and change control
Record the version or content hash of each approved function and store the approved source in your own Git repository. Require a review for every edit, because an admin can change active function code in the web interface without a deployment step. Compare the running code against the approved copy on a schedule so silent drift is visible.
Least-privilege admin roles
Function management is an administrator capability, so limit the number of accounts that hold it and keep them separate from day-to-day administration. Give most administrators roles that cannot create or edit functions. Review who holds the role during access reviews, and use the role-based access control and group settings described in the hardening guidance to enforce the split.
Secrets kept out of function code
Never paste API keys, database passwords or tokens into a function's source, because anyone who can read the function, or export it, can read the secret. Supply credentials through the server's environment or a secrets manager, and confirm which valve or setting fields the function reads at runtime. Rotate any credential that has been pasted into a function, even if the function was later deleted.
Outbound network restrictions
A function that calls an external endpoint can send user prompts, file contents or retrieved data to any destination the server can reach. Restrict outbound traffic from the Open WebUI host to an allowlist of model providers and internal services, and enforce it at the firewall or egress proxy rather than trusting the function to behave. Test the restriction by running a function that attempts an unapproved destination.
Audit logging of function changes
Log who created, edited, enabled, disabled or deleted each function, along with the time and the version involved. Keep these records outside the Open WebUI database where administrators can alter them, and forward them to your central log platform. Review the log whenever a function is enabled on a filter that touches every message, because that change affects all users at once.
How a filter and a pipe change the request path
A filter changes the request after the browser sends it and before the model provider receives it. The browser sends the user's message to the Open WebUI server, and each enabled filter runs inside that server process in its configured order. An inlet filter can read and rewrite the message, the selected model and request options before anything leaves your network. The filter code runs with the server's privileges, so it sees plaintext prompts, attached context and any credentials available to the process. Confirm which roles can enable or edit filters, and review each filter's code as a privileged component before it goes live.
A pipe changes what the user is talking to. It appears in the model selector like any other model, but selecting it routes the conversation to the pipe's Python code instead of directly to a provider. The pipe then makes its own outbound call to whatever it wraps, such as a remote API, a private gateway or a local inference service. The provider sees the pipe's request, not the browser's. Decide who may install pipes, and confirm which outbound hosts the Open WebUI server can reach and where the pipe keeps its API keys. Those settings define the real trust boundary for every pipe.
An action button sits on a message in the chat interface. When a user clicks it, the browser asks the Open WebUI server to run that action's Function code against the selected message, and the output can be written back into the conversation or sent to an external service. Unlike a filter, an action runs after the model has answered and only when a user chooses it, but the code still executes on the server with arbitrary Python. Before rollout, list each action, the data it reads, every destination it can write to, and who can see its output. Confirm those answers with your own test chats, since button placement and permissions depend on your version and configuration.
Where filters, pipes and actions sit in the request flow
The request starts in the user's browser and reaches the Open WebUI server, where inbound filters can inspect or change the message before it is routed. A pipe or built-in model connection then calls the provider, and outbound filters process the response before it returns to the user. Action buttons run on the server after a reply and sit inside the same trust boundary. Everything inside the shaded area is Python code that the server executes, so review and access controls apply there.
Message flow through Functions, with the server-side code execution boundary marked.
Questions teams ask before enabling Functions
What drives the cost and effort of building and reviewing Open WebUI Functions?
The main driver is how much the Function touches. A pipe that only relabels a model is small, while a filter that inspects every message, calls an external service or changes what users see carries review and testing work in proportion to that reach. Cost comes from two places: the time your engineers spend writing and reviewing Python, and any partner review you buy. Ask any partner for a quote built from a written scope that lists each Function, what data it reads and writes, which outbound calls it makes, and which models and user groups it affects. Recurring effort comes from maintenance, since every Open WebUI upgrade may require changes.
How long does a first review of Open WebUI Functions usually take?
Duration depends on scope, not on a fixed rule. A review of a few small Functions that only format output is short, while a review that covers a redaction filter, an action button that calls an internal API, and a custom model pipe requires reading code, running test conversations on a staging instance and checking logs for each path. Your team should confirm the timeline in writing against a named list of Functions and environments before work begins. Expect the first review to be the longest, because it also sets the review checklist that later changes reuse.
What skills and inputs must our internal team provide for Function reviews?
Your team needs three things. First, Python skills sufficient to read the Function, follow its imports and spot unsafe calls such as subprocess use, file writes or unvetted network requests. Second, a staging instance that mirrors production identity, model connections and database choice, so tests reflect real behavior. Third, written policy definitions: which data may be redacted, what the filter must block, which models are approved for which groups and who approves changes. Without written policy, a reviewer can only check that code runs, not that it enforces your rules.
Can our Open WebUI admins build and review Functions without outside help?
Yes, if the admins have Python experience and a clear review process. Admins can write simple Functions, test them on staging and document the result. Outside help is most useful for the parts that are easy to get wrong: reviewing code that runs with server-level access, checking that a filter cannot be bypassed by a different request path, and setting up change control so that only approved code reaches production. Confirm with your admins which of these tasks they can cover internally before deciding what to buy.
How should we handle upgrades that break an Open WebUI Function?
Treat every Open WebUI upgrade as a change that can break Functions. Keep each Function in version control, pin the Open WebUI version you tested against, and run the release on a staging instance with a fixed set of test conversations before production. Check the project's release notes and the upgrade guidance for changed interfaces. Keep the previous Function code and a database backup so you can roll back. Record which Function version was approved for which Open WebUI version, so an audit can show what ran at any point.
When is a partner review of Open WebUI Functions worth the cost?
A partner review is worth considering when Functions handle regulated data, sit in the path of every message, or make outbound calls with credentials, and your team lacks reviewers who can read the code critically. It is also useful before a compliance assessment, when you need evidence that controls were checked. DeployOpen can review Functions as part of a security testing or compliance readiness scope, but it does not issue audit reports or certifications. Ask for the written scope, the test method and the retest approach before you agree to anything.
Limits to confirm in your environment
Functions are a fast-moving part of Open WebUI, and several behaviors depend on the release you run, the way you manage configuration, the model providers you connect and the license tier you hold. The cards below list what to test in your own environment instead of assuming it from documentation or from this page.
Behavior across releases
Function interfaces, hook behavior and admin screens can change between Open WebUI releases. The current release reviewed for this page is v0.12.3, published on October 16, 2026, following v0.12.0 on October 10 and v0.11.0 in July. Pin the version you test, rerun your filter and pipe test cases on every upgrade, and read the release notes for changes to how Functions receive messages and how they handle errors.
Open WebUI releasesGitOps control of Function settings
Admin-panel changes are easy to make but hard to audit or reproduce. Confirm whether the Function code, enabled state, valves and global or model-level assignments can be set through environment variables or configuration files in your chosen install method. If they can only be set in the admin UI, plan a backup and export process and a change log, because a rebuilt instance may not restore them.
Provider compatibility
A pipe that wraps a model provider must match that provider's request and response format, streaming behavior and error codes. Open WebUI connects to Ollama, OpenAI, Anthropic or any OpenAI-compatible provider, but compatible is not identical. Test streaming, tool calls, token usage fields and rate-limit errors for each provider you put behind a pipe, and confirm that filters still see the messages you expect.
Open WebUI featuresLicense tier and branding
The Open WebUI License adds a branding protection clause for deployments that exceed 50 users in any rolling 30-day period, unless the operator holds an enterprise license or written contributor permission. Custom Functions that alter the interface or the user-facing name may touch branding. Ask your license contact whether an enterprise license changes what is allowed, and whether support covers custom code you wrote or one of your vendors wrote.
Open WebUI LicenseEnterprise support boundaries
Pricing for enterprise licenses is not published and is quoted after contacting enterprise sales with an expected seat count. Confirm in writing whether dedicated support covers third-party Functions, whether vendor fixes apply to your pinned release, and how security advisories for a custom Function are handled. Your team owns the review and the rollout of any Function you did not write.
Open WebUI EnterpriseMulti-replica execution
Function code runs inside the Open WebUI process, so every replica must load the same Function code and valves. Confirm how your deployment distributes Function changes across replicas and workers, and test a rolling restart. Without shared state, sessions and websocket connections behave differently, and a Function that keeps in-memory state may return different results depending on which replica serves the request.
Why the license and release line matter for custom Functions
Before you build a Function that changes what users see, such as a custom banner, renamed model label or altered interface element, confirm the license terms that apply to your deployment. Under the Open WebUI License, operators must keep Open WebUI branding unmodified in deployments that exceed 50 users in any rolling 30-day period, unless the operator holds an enterprise license or written contributor permission. A Function that hides or rewrites branding can therefore create a license problem even though the Python code itself runs on your own server. Count active users across the whole deployment, not only the team that will use the Function, because the threshold applies to the instance.
The license changed at v0.6.6, released on April 19, 2025. Code through v0.6.5 remains under BSD-3-Clause, while later releases fall under the Open WebUI License. Your Functions may run on either line, and the release you pin determines which terms govern the copy you run. Record the exact version in your deployment manifest next to each Function, and check the Open WebUI License page before any upgrade, because a release that carries your Functions forward may also bring the newer terms with it. Note that the release line and the license are separate questions: a Function that works on v0.6.5 may still need a licensing review before you move to a newer release.
Ask your legal or licensing contact to confirm three points in writing before the build starts: whether your expected user count will cross the threshold, whether branding changes in your planned Functions fall under the restriction, and whether an enterprise license or contributor permission is needed. Enterprise licenses are quoted after contacting enterprise sales with an expected seat count, so raise that request early if the answer is yes. Keep the confirmed terms with the Function's design record so that reviewers can see why a given change was approved.
How DeployOpen works on this
DeployOpen plans, builds, reviews and hands over Open WebUI functions as part of a self-hosted deployment in infrastructure you control. Each engagement starts with a written scope that defines which pipes, filters and actions are in play, what each one may touch, and how the code is reviewed before it reaches users.
How we scope
- We inventory every planned pipe, filter and action, with its purpose, the models or users it affects and the data it reads or writes.
- The written scope names which functions are custom-built, which are third-party code under review, and who approves each one before activation.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts, and a quote follows from that scope.
How we build
- We write or adapt pipes, filters and actions against your model providers and policy rules, keeping outbound calls and redaction logic explicit and reviewable.
- We review each function's Python for arbitrary code execution paths, hard-coded secrets, unvalidated input and network calls the scope did not plan for.
- We test filters against sample prompts and responses, including attempts to bypass redaction, and record the results for your security team.
How we hand over
- You receive source code in your own repository, a deployment record and the function permission model showing who can install, edit or enable each function.
- Documentation covers each function's purpose, configuration values, data flows, test cases and the steps to review and approve a change.
- We walk your administrators through activation, rollback and the review checklist so your team can judge future functions before they go live.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, so function code can be retested after each Open WebUI release.
- Support covers reviewing new or changed functions against the approved scope before administrators enable them in production.
- Confirm with us during scoping which upgrade cadence, response expectations and retest frequency your retainer will include.

