Open WebUI#
Get API key from Settings > Account > API Key and save in pass:
pass insert open-webui-api-key
List Models#
OPEN_WEBUI_API_KEY=$(pass open-webui-api-key)
curl \
-H "Authorization: Bearer $OPEN_WEBUI_API_KEY" \
http://localhost:3000/api/models \
| jq -r '.data | .[] | .id' \
| sort
OpenAI Proxy#
Use http://localhost:3000/api as OpenAI Server URL.
How to Set Up Functions#
For example: felixhummel/open-webui-cost-tracker
Go to /admin/functions and hit the plus button.

Select “Import from Link”.
Use the raw URL, e.g. https://raw.githubusercontent.com/felixhummel/open-webui-cost-tracker/refs/heads/main/cost_tracker_function.py
The function will appear in the list [1]

Optionally set global by hitting
and selecting
Global to apply to all models.