mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 04:16:03 -05:00
[GH-ISSUE #20673] issue: Setting ENABLE_API_KEYS to true doesn't work
#57924
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 @uponminiature on GitHub (Jan 15, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/20673
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.7.2
Ollama Version (if applicable)
No response
Operating System
NixOS 25.11
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
I should be able to view the API key sections after doing the appropriate steps.
Actual Behavior
I cannot see the API key sections.
Steps to Reproduce
ENABLE_PERSISTENT_CONFIGin docs.ENABLE_PERSISTENT_CONFIGtofalse, setENABLE_API_KEYStotrue. Restarted container.Logs & Screenshots
Settings -> Account:

Admin -> Users -> Groups -> API Access:



Also noticed a request to a "config" file, located at

https://<open_webui>/api/config, I see enable_api_keys is false there.I validate that the container indeed does have its new environment variables set:

Additional Information
No response
@owui-terminator[bot] commented on GitHub (Jan 15, 2026):
🔍 Similar Issues Found
I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions:
#20389 issue: ENABLE_SIGNUP not working properly
by jayteaftw • Jan 05, 2026 •
bug#19853 issue: NOT ABLE TO CREATE A NEW API KEY:
by Code-With-Samuel • Dec 10, 2025 •
bug#19420 issue: Unable to create new api-keys - 403 forbidden
by DominikStarke • Nov 24, 2025 •
bug#20361 Issue: Large-scale model setting-related functionality fails.
by shentong0722 • Jan 04, 2026 •
bug#20064 issue: Create new API key (CRITICAL)
by richrich89 • Dec 20, 2025 •
bug💡 Tips:
This comment was generated automatically by a bot. Please react with a 👍 if this comment was helpful, or a 👎 if it was not.
@uponminiature commented on GitHub (Jan 15, 2026):
There is a third step I missed, where there is a "Enable API Keys" in the Admin Panel. It is confusing why I would have to confirm it again after specifically asking for it to be enabled via env var.