[GH-ISSUE #2184] Persistently Store OpenAI and OpenAI-Compatible API Keys Across Server Restarts #28313

Closed
opened 2026-04-25 02:59:09 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @SomaRe on GitHub (May 11, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/2184

Is your feature request related to a problem? Please describe.
Currently, when the server restarts, all the configured OpenAI and OpenAI-compatible APIs and their corresponding API keys are lost. This requires manually re-adding and configuring each API after every restart, which can be a tedious and time-consuming process, especially if new API keys need to be generated.

Describe the solution you'd like
The desired solution is to provide a persistent storage mechanism for OpenAI and OpenAI-compatible API keys, similar to how the ollama API is handled. This would allow the system to retain the configured APIs and their respective API keys across server restarts, eliminating the need for manual reconfiguration after each restart.

Originally created by @SomaRe on GitHub (May 11, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/2184 **Is your feature request related to a problem? Please describe.** Currently, when the server restarts, all the configured OpenAI and OpenAI-compatible APIs and their corresponding API keys are lost. This requires manually re-adding and configuring each API after every restart, which can be a tedious and time-consuming process, especially if new API keys need to be generated. **Describe the solution you'd like** The desired solution is to provide a persistent storage mechanism for OpenAI and OpenAI-compatible API keys, similar to how the ollama API is handled. This would allow the system to retain the configured APIs and their respective API keys across server restarts, eliminating the need for manual reconfiguration after each restart.
Author
Owner

@silentoplayz commented on GitHub (May 11, 2024):

This is related to save UI config changes to config.json - #2156.

<!-- gh-comment-id:2105642872 --> @silentoplayz commented on GitHub (May 11, 2024): This is related to [save UI config changes to config.json](https://github.com/open-webui/open-webui/pull/2156) - #2156.
Author
Owner

@silentoplayz commented on GitHub (May 11, 2024):

Also related to persist settings to backend - #1022.

<!-- gh-comment-id:2105643468 --> @silentoplayz commented on GitHub (May 11, 2024): Also related to [persist settings to backend](https://github.com/open-webui/open-webui/issues/1022) - #1022.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#28313