Skip to main content

Functions

Overview

Pipe Functions are Python plugins that appear as selectable models in your chat sidebar. Behind the scenes, they can do anything Python can do: integrate a proprietary AI provider, control your smart home with natural language, query a database, run a search engine, build a multi-step agent, generate charts, automate workflows, or serve as a calculator. No LLM is even required. If you can write the logic in Python, it becomes a "model" users can chat with.

This guide walks you through importing and enabling your first Pipe Function, using the Anthropic Pipe as an example.

Already have an OpenAI-compatible provider?

If your provider supports the OpenAI Chat Completions API protocol (OpenAI, Google Gemini, Mistral, Groq, DeepSeek, and many more), you don't need a Function. Just add a connection. Anthropic also has native support via their OpenAI-compatible endpoint; see the Anthropic guide. Functions are for everything else: proprietary APIs, custom agents, or entirely novel interfaces.


Step 1: Find a Function

  1. Go to the Community Function Library.
  2. Browse or search for the function you need. There are thousands of community-contributed functions for AI providers, search tools, home automation, productivity utilities, content filters, and more.
  3. Click Get on the function you want to import.
Community Account Required

Importing directly from the community library requires a registered account at openwebui.com.


Step 2: Import to Open WebUI

A modal will appear:

  1. Enter your Open WebUI instance URL (e.g., http://localhost:3000).
  2. Click Import to Open WebUI.

You'll be redirected to the Function Editor within your running instance.

Import Modal Screenshot


Step 3: Review & Save

Review the Python source code in the editor. Functions execute arbitrary code on your server, so only install from sources you trust.

Click Save to add the function to your instance.

Function Editor Screenshot


Step 4: Enable the Function

New functions are disabled by default. Toggle the switch to enable it.

Enable Function Screenshot


Step 5: Configure Valves

Many functions require configuration, such as API keys or endpoint URLs:

  1. Click the ⚙️ gear icon next to the toggle switch.
  2. Enter the required values (e.g., your Anthropic API key).
  3. Save.

Valves Configuration Screenshot


Step 6: Start Chatting

The function now appears as a selectable model in the chat sidebar. Select it and start chatting.

Select Pipe Function as Model Screenshot


⚠️ Security Reminder

Functions run arbitrary Python on your server. Always review code before enabling, and only import from trusted sources. For details, see the Plugin Security Warning.

Learn More

This content is for informational purposes only and does not constitute a warranty, guarantee, or contractual commitment. Open WebUI is provided "as is." See your license for applicable terms.