Originally created by @tkg61 on GitHub (Jan 3, 2025).
Feature Request
Is your feature request related to a problem? Please describe.
When disabling api keys, this disables for admins as well which might be unhelpful if mgmt needs to occur from other systems but users shouldn't use the API
Describe the solution you'd like
Have a configurable setting to allow admins to bypass user api key restrictions (both disabling and specific endpoints). Essentially continue to allow admins to have optional "god mode" at this level.
I would like to be able to completely administrate openwebui via API while not allowing users to use the API.
Originally created by @tkg61 on GitHub (Jan 3, 2025).
# Feature Request
**Is your feature request related to a problem? Please describe.**
When disabling api keys, this disables for admins as well which might be unhelpful if mgmt needs to occur from other systems but users shouldn't use the API
**Describe the solution you'd like**
Have a configurable setting to allow admins to bypass user api key restrictions (both disabling and specific endpoints). Essentially continue to allow admins to have optional "god mode" at this level.
I would like to be able to completely administrate openwebui via API while not allowing users to use the API.
@DmitriyAlergant commented on GitHub (Jan 7, 2025):
Just remember that JWTs are temporary session-level. They change on user login, on Open-WebUI restart, plus may have expiration time if enabled.
Proper usage of JWT requires two-phase interaction, first with /signin using login&password (unless you are using OAuth then things are somewhat more complicated) then API calls using this JWT as a drop-in replacement from API Key.
@DmitriyAlergant commented on GitHub (Jan 7, 2025):
Just remember that JWTs are temporary session-level. They change on user login, on Open-WebUI restart, plus may have expiration time if enabled.
Proper usage of JWT requires two-phase interaction, first with /signin using login&password (unless you are using OAuth then things are somewhat more complicated) then API calls using this JWT as a drop-in replacement from API Key.
@tjbck Is my understanding correct that its currently only possible to enable API keys globally for all users or not at all, or am i missing a configuration option? Thx
@adhusch commented on GitHub (Sep 3, 2025):
@tjbck Is my understanding correct that its currently only possible to enable API keys globally for all users or not at all, or am i missing a configuration option? Thx
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @tkg61 on GitHub (Jan 3, 2025).
Feature Request
Is your feature request related to a problem? Please describe.
When disabling api keys, this disables for admins as well which might be unhelpful if mgmt needs to occur from other systems but users shouldn't use the API
Describe the solution you'd like
Have a configurable setting to allow admins to bypass user api key restrictions (both disabling and specific endpoints). Essentially continue to allow admins to have optional "god mode" at this level.
I would like to be able to completely administrate openwebui via API while not allowing users to use the API.
@tjbck commented on GitHub (Jan 3, 2025):
You should be able to use JWT for this instead! (drop-in replacement)
@DmitriyAlergant commented on GitHub (Jan 7, 2025):
Just remember that JWTs are temporary session-level. They change on user login, on Open-WebUI restart, plus may have expiration time if enabled.
Proper usage of JWT requires two-phase interaction, first with /signin using login&password (unless you are using OAuth then things are somewhat more complicated) then API calls using this JWT as a drop-in replacement from API Key.
@tkg61 commented on GitHub (Jan 7, 2025):
We are needing service account like utilization. So this might still be relevant then?
@adhusch commented on GitHub (Sep 3, 2025):
@tjbck Is my understanding correct that its currently only possible to enable API keys globally for all users or not at all, or am i missing a configuration option? Thx