2027 setup guide · Self-hosted chat

Open WebUI with an OpenAI-compatible API

Open WebUI connects to any OpenAI-compatible server, but a failed Verify Connection does not always mean the connection is broken. The model allowlist is the setting that decides.

Abstract illustration of a self-hosted chat interface and model connections
Illustration: a self-hosted chat UI with several model connections. Plugsky Editorial Team.

Open WebUI is a self-hosted chat interface for local and cloud models. It gives a team one place to talk to models, switch between them and use tools, without sending users to a different vendor console for each model. Administrators add connections; users see the models those connections expose.

The connection layer is deliberately protocol-oriented. Open WebUI implements the OpenAI Chat Completions shape and expects the backend to do the same. It does not build a bespoke integration for every provider. That makes it a good fit for Plugsky's OpenAI-compatible endpoint, and it explains most of the setup problems: a provider that deviates from the protocol needs a gateway, a pipe or a manual model list.

Open WebUI connection settings, checked 23 November 2026
SettingWhat to enterWhat to check
URLhttps://api.plugsky.com/v1No trailing slash; the /models call is sensitive to it.
API keyA dedicated Plugsky keyOne connection per environment, not one shared key for everything.
Model IDsThe models users should seeAdd manually if /models discovery fails or returns too many models.
Verify ConnectionRun it once, then test a chatA failure can mean the provider lacks /models, not that chat is broken.
Connection toggleDisable instead of deletingUseful for maintenance without losing the configuration.

Add the connection

As an administrator, open Settings, then Connections, and find the Manage OpenAI API Connections list. Choose Add Connection, enter the URL and API key, and save. The URL is the root of the compatible API. For Plugsky that is https://api.plugsky.com/v1. Open WebUI suggests common provider endpoints as you type, which is helpful for well-known hosts and a distraction for a private one.

If Open WebUI runs in Docker and the model server is on the host machine, replace localhost with host.docker.internal. The same rule applies to a private gateway that is reachable from the host but not from the container's network namespace.

Save the connection before you add models. Open WebUI can discover models from the endpoint, but the discovery step is separate from saving the URL and key.

Name each connection after the environment and the model family, not after the provider alone. A team with a production and a staging connection otherwise sees two identical model lists and picks the wrong one. A clear name prevents the mistake that the connection toggle can only fix after someone notices.

When Verify Connection fails but chat works

The Verify Connection button calls the provider's /models endpoint with a standard bearer token. Some providers do not implement /models, or implement it with non-standard authentication. In that case verification fails with a 400, 401 or 403 while chat completions still work.

The fix is to add the model IDs to the allowlist manually. Open WebUI's documentation describes the Model IDs field: type the ID, click the plus icon and save. The models then appear in the selector even though verification showed an error.

This is the single most misleading part of the setup. A red verification message sends teams to rotate keys and rewrite URLs when the only missing piece is a model list. Test a chat before you change the credential.

The URL is not always the endpoint

Open WebUI expects a base URL and appends the OpenAI route. A trailing slash can break the /models call; the documentation calls this out for at least one provider and the rule generalises. Use the root, without a trailing slash and without /chat/completions.

Some providers expose a compatibility layer under a path that already includes a version, such as /v1beta/openai. In that case the version is part of the base URL and should be kept. The test is simple: if the provider's documentation gives a base URL for OpenAI-compatible clients, use that exact string.

If the endpoint requires a custom header, Open WebUI's connection form is not the place to invent one. Put a gateway in front that translates the request, or use a pipe. A connection that only works with a hand-edited header is hard to reproduce after an upgrade.

What to check before giving users access

Check the model list first. A connection that exposes every model on the endpoint gives users choices they should not have, including expensive or experimental models. Use the allowlist to publish a small set and update it deliberately.

Check tool calling. Open WebUI's protocol approach means tools are passed in the OpenAI shape; a model that does not support that shape will ignore them. If the workflow depends on built-in tools, test one tool call per model rather than assuming the model supports it because the endpoint does.

Check the user-facing defaults: which model opens first, whether users can switch models, and whether a failed request shows an error or an empty answer. Then check the operational path: disable the connection and confirm that the UI fails cleanly, and rotate the key and confirm that chat recovers without a restart.

Finally, check where conversation history is stored and who can export it. The provider's retention policy covers only the requests it receives; the chat application's own store is a separate retention decision.

Test the first-run experience with a new account. A user who sees an empty model list, a model that cannot stream, or a connection error will not file a useful bug report. Give them one known-good model and a one-line instruction for reporting a failure.

When a competitor wins

A managed assistant wins when the team does not want to operate a server, a database and an upgrade cycle. A desktop app wins when each user's data should stay on their own machine. A full application platform such as Dify wins when the requirement is workflows and retrieval apps rather than a chat interface.

Plugsky wins when Open WebUI is the front door to a shared OpenAI-compatible endpoint and the organization wants a flat monthly plan, per-key access and a private deployment path. The limit is catalogue size: 39 public model IDs, so confirm the chat and embedding models your users need are on the connection before you publish it.

Verdict

Add the Plugsky base URL without a trailing slash, save a dedicated key, and add model IDs manually if Verify Connection fails. Test a real chat before changing the credential, and restrict the allowlist before users arrive.

Choose Plugsky when Open WebUI should expose a predictable, OpenAI-compatible endpoint to a team, with private deployment available if the data boundary changes. Choose a managed assistant or a desktop app when operating the chat stack is the bigger cost.

Frequently asked questions

Why does Open WebUI say the connection failed?

Verify Connection calls the provider's /models endpoint. Some providers do not implement it or use non-standard authentication, so verification can fail while chat completions still work. Add the model IDs manually and test a chat.

Should the URL include /v1?

Yes, if the provider's OpenAI-compatible base URL includes it. Use the exact base URL from the provider documentation, without a trailing slash.

How do I limit which models users see?

Use the Model IDs allowlist on the connection. Add only the model IDs you want to publish, then save.

Why can't Open WebUI reach my local model server?

If Open WebUI runs in Docker, localhost refers to the container. Use host.docker.internal for a server on the host machine.

Does Open WebUI support provider-specific APIs?

The core is built around standard protocols such as OpenAI Chat Completions. For a provider with a proprietary API, use a pipe or a gateway that translates the request.

Related

Sources

  1. Open WebUI: OpenAI-compatible connections · 23 Nov 2026
  2. Open WebUI: OpenAI connection guide · 23 Nov 2026
  3. Plugsky API quickstart · 23 Nov 2026