Openwebui Bulk Model Updater
Python script for applying bulk updates to models in Open Web UI, changing the base model ID to a preferred value
About This Project
OpenWebUI-Bulk-Model-Updater is a Python script collection for changing the base model ID of many derived models in Open WebUI at once. In Open WebUI, derived models (custom models built with system prompts) depend on a base model supplied by a configured connection. When that base model is deprecated, each dependent model must be updated, which is impractical to do one at a time through the user interface on instances containing hundreds or thousands of models.
The project provides two variants. The local server version runs directly on the host running Open WebUI, connects to the API through the local container IP, and uses multi-parallel processing to speed up updates without requiring external authentication. The external client version connects remotely through Cloudflare and supports Cloudflare service header authentication, and it can be adapted for other authentication schemes. Both scripts use the Open WebUI API data endpoints, with API access enabled through development mode and a token obtained from the application settings.
The utility is intended for administrators who maintain large Open WebUI deployments and need to migrate many models after a base model change. It may also be useful to those who manage Open WebUI remotely behind Cloudflare or who want a reference for scripting against the Open WebUI API. Python 3.x and an API token are required.