mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-23 18:41:28 -05:00
[GH-ISSUE #3058] Feat: Guest Mode #67716
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 @MarlNox on GitHub (Jun 12, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/3058
Problem:
When users are not logged in, there's currently no option for them to engage in conversations through the chat in the open web UI without their interactions being put in history, like in the Single User mode where all history is still recorded so it can't be used simultaneously by many users.
Solution:
Introduce a "Guest Mode" within the open web UI, where users can access chat functionality without the need to create personal accounts. Upon choosing the "No Login" option, users are automatically provided with predefined login credentials (e.g., username and password) generated by the system. In this Guest Mode, the sidebar displaying chat history is hidden, ensuring that no conversation records are stored. The guest mode should be in addition to the multi-user sign in rather than an either-or scenario.
Alternatives:
Consider allowing users to access limited chat functionality without logging in, with the option to create an account for accessing more features and retaining chat history.
@MarlNox commented on GitHub (Jun 13, 2024):
FIX i implemented locally - potentially useful input for the maintainers/devs of OpenWebui:
Additional stuff:
a) create a new chat before redirecting to that specific chat.
TO DO from my side:
a) Generate the response to that new chat's query using the selected Pipeline.
@gaby commented on GitHub (Oct 4, 2024):
This is basically similar to https://chat.openai.com where you can use ChatGPT without login and history is gone once you refresh or close browser
@stuartofmine commented on GitHub (Dec 17, 2024):
maybe more like https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web , guest user auto signup and can login by cookie
@stuartofmine commented on GitHub (Dec 18, 2024):
OK. I have finished it by trusted header.
authenticate_user_by_trusted_header, SoIn backend/open_webui/apps/webui/routers/auths.py
change function
signinstatement judge:and modify
user = Auths.authenticate_user_by_trusted_header(trusted_email)to
user = Auths.authenticate_user_by_trusted_header(request)In line 159 to line 160 , change the auto redirect code to:
Now, you can login by YOUR NORMAL MODE ENTRY, and let guest auto-auth by YOUR GUEST MODE ENTRY
@DaniyalAhmadSE commented on GitHub (Feb 17, 2025):
Would really appreciate having this feature.
@xxtg666 commented on GitHub (May 18, 2025):
Need this feature. It hasn't been forgotten, has it?
Suggested to combine with #2904 when this feature is implemented
@cfy-code commented on GitHub (Jul 15, 2025):
How exactly should the guest mode feature be implemented? Based on the latest version, I followed @stuartofmine @MarlNox method, but there are no corresponding folders and code in the new version.
@silentoplayz commented on GitHub (Dec 18, 2025):
This functionality is somewhat effectively already present in Open WebUI via the "Enforce Temporary Chat" permission.
Admins can achieve a "Guest Mode"-like setup by:
When users log in with this Guest account, their chats will be temporary by default (history not saved), which fulfills the requirement for a privacy-focused guest experience.