I have searched the existing issues and discussions.
I am using the latest version of Open WebUI.
Installation Method
Pip Install
Open WebUI Version
v0.6.5
Ollama Version (if applicable)
LM Studio 0.3.15
Operating System
Windows 11
Browser (if applicable)
No response
Confirmation
I have read and followed all instructions in README.md.
I am using the latest version of both Open WebUI and Ollama.
I have included the browser console logs.
I have included the Docker container logs.
I have listed steps to reproduce the bug in detail.
Expected Behavior
Im using LM Studio as my LLM provider, thus running a local OpenAI server.
I want to use an embedding model, downloaded with LM Studio running locally.
But when setting up the connection in the document settings, the UI requires an API-Key:
But I dont have an API key, because its a local server.
Actual Behavior
I managed to workaround the problem by setting the api key to .. You can set anything and it will work.
Please make the API-Key field optional like the connection settings in Admin Settings -> Connections -> OpenAI-API-Connections
Steps to Reproduce
Go to Admin Settings -> Documents -> Embedding
Set the engine to 'OpenAI'
Enter a OpenAI server of your choice that does not require an API Key
Try to save the settings
Logs & Screenshots
.
Additional Information
No response
Originally created by @Wasserwecken on GitHub (Apr 30, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/13352
### Check Existing Issues
- [x] I have searched the existing issues and discussions.
- [x] I am using the latest version of Open WebUI.
### Installation Method
Pip Install
### Open WebUI Version
v0.6.5
### Ollama Version (if applicable)
LM Studio 0.3.15
### Operating System
Windows 11
### Browser (if applicable)
_No response_
### Confirmation
- [x] I have read and followed all instructions in `README.md`.
- [x] I am using the latest version of **both** Open WebUI and Ollama.
- [x] I have included the browser console logs.
- [x] I have included the Docker container logs.
- [x] I have listed steps to reproduce the bug in detail.
### Expected Behavior
Im using LM Studio as my LLM provider, thus running a local OpenAI server.
I want to use an embedding model, downloaded with LM Studio running locally.
But when setting up the connection in the document settings, the UI requires an API-Key:

But I dont have an API key, because its a local server.
### Actual Behavior
I managed to workaround the problem by setting the api key to `.`. You can set anything and it will work.
Please make the API-Key field optional like the connection settings in Admin Settings -> Connections -> OpenAI-API-Connections
### Steps to Reproduce
1. Go to Admin Settings -> Documents -> Embedding
2. Set the engine to 'OpenAI'
3. Enter a OpenAI server of your choice that does not require an API Key
4. Try to save the settings
### Logs & Screenshots
.
### Additional Information
_No response_
GiteaMirror
added the bug label 2026-05-18 01:29:42 -05:00
"But I dont have an API key, because its a local server."
You can still set an API key on your local server, no? And then access it with the API key.
<!-- gh-comment-id:2841530740 -->
@Classic298 commented on GitHub (Apr 30, 2025):
"But I dont have an API key, because its a local server."
You can still set an API key on your local server, no? And then access it with the API key.
Sure, probably i can set one. But i dont have to and i dont need to.
Thus, requiring an API key might not be viable for everyone.
In the connection settings is the API-Key optional as expected.
My point is that the UI is confusing because in one case its optional and in the other case its not.
Its even more confusing because an API key might not be required at all, thus the UI should not enforce it
<!-- gh-comment-id:2841545653 -->
@Wasserwecken commented on GitHub (Apr 30, 2025):
Sure, probably i can set one. But i dont have to and i dont need to.
Thus, requiring an API key might not be viable for everyone.
In the connection settings is the API-Key optional as expected.
My point is that the UI is confusing because in one case its optional and in the other case its not.
Its even more confusing because an API key might not be required at all, thus the UI should not enforce it
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 @Wasserwecken on GitHub (Apr 30, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/13352
Check Existing Issues
Installation Method
Pip Install
Open WebUI Version
v0.6.5
Ollama Version (if applicable)
LM Studio 0.3.15
Operating System
Windows 11
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
Im using LM Studio as my LLM provider, thus running a local OpenAI server.
I want to use an embedding model, downloaded with LM Studio running locally.
But when setting up the connection in the document settings, the UI requires an API-Key:
But I dont have an API key, because its a local server.
Actual Behavior
I managed to workaround the problem by setting the api key to
.. You can set anything and it will work.Please make the API-Key field optional like the connection settings in Admin Settings -> Connections -> OpenAI-API-Connections
Steps to Reproduce
Logs & Screenshots
.
Additional Information
No response
@tjbck commented on GitHub (Apr 30, 2025):
Intended behaviour.
@Classic298 commented on GitHub (Apr 30, 2025):
"But I dont have an API key, because its a local server."
You can still set an API key on your local server, no? And then access it with the API key.
@Wasserwecken commented on GitHub (Apr 30, 2025):
Sure, probably i can set one. But i dont have to and i dont need to.
Thus, requiring an API key might not be viable for everyone.
In the connection settings is the API-Key optional as expected.
My point is that the UI is confusing because in one case its optional and in the other case its not.
Its even more confusing because an API key might not be required at all, thus the UI should not enforce it