Skip to main content

vLLM

Overview​

vLLM provides an OpenAI-compatible API (Chat Completions), making it easy to connect to Open WebUI. This guide will show you how to connect your vLLM server.

tip

Open WebUI also supports the Open Responses specification for providers that implement it.


Step 1: Set Up Your vLLM Server​

Make sure your vLLM server is running and accessible. The default API base URL is typically:

http://localhost:8000/v1

For remote servers, use the appropriate hostname or IP address.


Step 2: Add the API Connection in Open WebUI​

  1. Go to Settings > Connections (admin section).
  2. Find the Manage OpenAI API Connections list.
  3. Click Add Connection.
  4. Fill in the following:
    • URL: http://localhost:8000/v1 (or your vLLM server URL)
      • Docker Users: Use http://host.docker.internal:8000/v1 if Open WebUI is in a container.
    • Auth: None if no key is configured, otherwise Bearer with your key
    • Advanced > Provider: choose vLLM so stored reasoning is sent back to the model on later turns. See The Provider Setting
  5. Click Save.

Step 3: Start Using Models​

Select any model that's available on your vLLM server from the Model Selector and start chatting.

Connection Timeout Configuration

If your vLLM server is slow to respond (especially during model loading), you can adjust the timeout:

# Increase timeout for slower model initialization (default is 10 seconds)
AIOHTTP_CLIENT_TIMEOUT_MODEL_LIST=30

If you've saved an unreachable URL and the UI becomes unresponsive, see the Model List Loading Issues troubleshooting guide.

This content is for informational purposes only and does not constitute a warranty, guarantee, or contractual commitment. Open WebUI is provided "as is." See your license for applicable terms.