mirror of
https://github.com/open-webui/desktop.git
synced 2026-07-25 05:35:32 -04:00
Here is how you can set up env args inside the desktop version #29
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SuperFurias on GitHub (Jul 31, 2025).
As there is no integrated way inside the application to set up env args, here is how you can do it:
Install open-webui desktop from the official setup.
after everything is installed, close the webui completely. (for example, on windows, you need to exit from the tray icon)
go into this location:
%appdata%\open-webui-desktop\python\Libcreate a file named .env inside this location. example: "
%appdata%\open-webui-desktop\python\Lib\.env"open this file. add any env args you wish the webui to use.
example:
WEBUI_AUTH=False
ENABLE_SIGNUP=False
save the file, and then run the webui, env args will be successfully used
@SuperFurias commented on GitHub (Jul 31, 2025):
Why this works? well.. because the "desktop" version literally is just a .exe that runs an embedded python 3.11 and that embedded python installs the package open-webui
and well.. to put envs inside the pip package of open-webui you need to put the .env inside the BASE_DIR
for open-webui desktop, the BASE_DIR is inside
%appdata%\open-webui-desktop\python\Libbecause %appdata% is where all the files of open-webui-desktop are installed (included the embedded python)PS: yes, the setup doesn't let you choose where to install the files. you have no control of it. you run the setup, and the setup does everything. its a bit sad because if you want to install it somewhere else, you can't, you are forced to have the files inside %appdata%