Self-hosted chat interface, custom backend, working model list

AnthropicAPIFreeKey · Updated 2026-11-22 · 8 min read

Small home server connected to a router
A self-hosted interface acts as a client for any compatible backend.

Open WebUI is a popular self-hosted chat interface that talks to model backends through the OpenAI API format. A frequent frustration is connecting it to a provider that is not OpenAI: people follow several guides, paste a key and a URL, and the model list stays empty or every message fails. The same family of problems appears in other tools whose model picker suddenly shows only some of the models you expected.

This guide walks through connecting Open WebUI to an OpenAI-compatible endpoint, using this site's free, keyless endpoint as a working example so you can confirm the setup without any billing. It then explains why a direct Claude connection behaves differently, what your options are for adding Claude later, and a short checklist for diagnosing missing models in any tool.

Frequently asked questions

What is Open WebUI?

An open-source web interface for chatting with language models, usually run on your own machine or server. It supports multiple backends, user accounts, document uploads and other features, and connects to any service that implements the OpenAI-style API.

What does OpenAI-compatible mean?

That a service accepts the same request and response shapes as OpenAI's API: the same paths such as /v1/chat/completions and /v1/models, the same JSON fields and the same bearer-token header. Tools built for OpenAI can then talk to it by changing only the base URL.

Why does connecting Claude to Open WebUI often fail?

Anthropic's native API uses its own Messages format, a different header for the key and a version header. A tool that only speaks the OpenAI format cannot talk to it directly. Anthropic has documented an OpenAI SDK compatibility option, but its scope and requirements should be checked in their current docs.

How does a compatibility layer differ from a proxy?

A compatibility layer is offered by the provider itself and accepts OpenAI-shaped requests on its own servers. A proxy is a separate program you run that translates between formats. Both can work; a proxy adds one more component to maintain.

Why are models missing from a picker?

The tool fetches the list from the backend's models endpoint, and anything that breaks that call, such as a wrong base URL, missing path segment or rejected key, leaves the list empty or partial. Some tools also filter models by plan, region or admin settings.

Does Open WebUI need a key for this site's endpoint?

The endpoint ignores keys, but some tools refuse to save a connection with an empty key field. Enter any placeholder text, such as unused.

Which is better as a backend for Open WebUI, a local model or a hosted endpoint?

A local model keeps everything on your machine but needs suitable hardware. A hosted endpoint needs no hardware but sends your messages to a server. The free endpoint here logs technical metadata per request and has no SLA.

Can I add several backends at once?

Yes. Open WebUI supports more than one OpenAI-style connection, and models from all of them can appear in the picker. That makes side-by-side comparisons easy.

Step by step

  1. Test the endpoint — From the machine running Open WebUI, call the models and chat completions endpoints with curl and confirm both return JSON.
  2. Open the connections settings — As an administrator, open the settings area and find the section for OpenAI API connections.
  3. Add the connection — Enter https://api.anthropicapifreekey.com/v1 as the base URL and any placeholder text as the key, then save.
  4. Refresh and select the model — Reload the model list, pick free-ai in a new chat and send a short test message.
  5. Tune background features — Disable automatic titles or suggestions if many users share the instance and 429 responses appear.

How Open WebUI talks to a backend

Open WebUI does not run models itself unless you pair it with a local runner. For hosted models it acts as a client: it calls the backend's models endpoint to build the list in the picker, then sends chat messages to the chat completions endpoint and streams the reply. Both calls use the base URL and key you configure for that connection.

This means almost every connection problem is one of three things: the base URL is wrong, the key is rejected, or the backend does not speak the format Open WebUI expects. Testing those three outside the interface first saves a lot of guesswork.

The base URL must include the version path

For most OpenAI-compatible services the base URL ends in /v1. Leaving it off, or adding an extra path such as /chat/completions, breaks the models call.

The models endpoint drives the picker

If GET /v1/models fails, the picker stays empty even when chat requests would work.

Test the endpoint before touching the interface

Run two requests from the machine where Open WebUI runs. If they succeed, the interface will work with the same values. If they fail, the error message from curl is far more informative than an empty list in a web page.

This site's endpoint needs no key, so the test is short. It is an independent service and is not affiliated with Anthropic; its model, free-ai, is an open-weight model of about 35B parameters and not Claude.

Run it from the right machine

If Open WebUI runs in a container, test from inside the container or the same network. A request that works from your laptop may fail from a container with different DNS or proxy settings.

BASE=https://api.anthropicapifreekey.com/v1

# 1. The models list that the picker will show
curl -s $BASE/models

# 2. A chat request in the format Open WebUI sends
curl -s $BASE/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer unused" \
  -d '{"model":"free-ai","stream":false,"messages":[{"role":"user","content":"Say hello in five languages."}]}'
Travel adapter between two different socket shapes
Compatible formats let one tool talk to many backends.

Adding the connection in the interface

In current versions, OpenAI-style connections are managed by an administrator in the settings area, under a section for connections. You add a new OpenAI API connection, enter the base URL and a key, save, and the models from that backend should appear in the picker. Labels move between releases, so use the project's own documentation if the menu looks different.

After saving, refresh the model list. If free-ai appears, start a new chat, select it and send a short message. Streaming should begin within a second or two under normal load.

Placeholder key

Type any text into the key field. The endpoint ignores it, but an empty field may stop the form from saving.

One connection per backend

Keep each provider in its own connection entry so you can disable one without affecting the others.

Configuring it with Docker instead

If you deploy Open WebUI with Docker, you can provide the connection through environment variables at start-up rather than through the interface. This is convenient for repeatable setups and for servers you rebuild often. The project documents OPENAI_API_BASE_URL and OPENAI_API_KEY for this purpose.

The command below starts Open WebUI on port 3000 with this site's endpoint preconfigured and a named volume for its data. Check the project's documentation for the current image name and tag before using it in production.

Settings saved in the interface can win

Some configuration is stored in the data volume after first start. If a changed environment variable seems ignored, check whether the same setting was saved in the admin interface earlier.

docker run -d -p 3000:8080 \
  -e OPENAI_API_BASE_URL=https://api.anthropicapifreekey.com/v1 \
  -e OPENAI_API_KEY=unused \
  -v open-webui:/app/backend/data \
  --name open-webui \
  ghcr.io/open-webui/open-webui:main
Shipping containers being stacked at a port
A container setup can carry the connection in its settings.

Why a direct Claude connection behaves differently

Many people try to add Claude by pasting an Anthropic key and Anthropic's API address into an OpenAI connection. That usually fails, because Anthropic's native API is not OpenAI-shaped: it uses a Messages endpoint, a dedicated header for the key and a required version header. A tool that sends OpenAI requests receives errors or an empty model list.

There are three general ways forward. Anthropic has documented OpenAI SDK compatibility, which may let OpenAI-style clients reach Claude for supported features; read the current documentation for its base URL, limitations and intended use. Alternatively, Open WebUI's extension mechanisms or a separate translation proxy can bridge the formats. Or you can reach Claude through a legitimate routing service that exposes it in OpenAI format with your own account.

  • Check Anthropic's current documentation on OpenAI compatibility
  • Use an extension or proxy that translates to the Messages format
  • Use a legitimate router with your own Claude access
  • Never use shared or leaked keys to make a connection work

When models are missing from a picker

Missing models are not unique to Open WebUI. Users of editor assistants sometimes find that only a small model appears in the picker while larger ones from the same family are gone. Causes include plan restrictions, organisation policies that an admin must enable, regional availability, and temporary changes by the tool vendor.

For a self-hosted interface, the causes are more mechanical. Work through them in order and you will usually find the issue within minutes.

Wrong path

Confirm that the base URL plus /models returns a JSON list in a browser or with curl.

Rejected key

A 401 or 403 from the models endpoint means the key, or its permissions, is the problem, not the interface.

Filtered by settings

Some interfaces let admins hide models or restrict them to certain users. Check visibility settings if the backend returns models the picker does not show.

Plan or policy limits

In hosted tools, models may require a higher plan or admin approval. The vendor's own documentation is the reliable reference.

Shop shelf with only a few products on display
An empty picker usually means the models call failed.

Living within the free endpoint's limits

The free endpoint is well suited to trying Open WebUI, testing prompts and running a small personal setup. It has published per-IP limits: 1 request per second with bursts of 3, 2 in parallel, and 10,000 requests or 10,000,000 tokens per day, reset at 00:00 UTC. Context is 32,000 tokens and answers can reach 16,000. It is text only, so image uploads and document features that need vision will not work with it.

If several people share one Open WebUI instance, they share its server's IP and therefore its limit. Features that make extra background calls, such as automatic chat titles or follow-up suggestions, also count. Disable them if you see frequent 429 responses. For a broader view of pacing many requests, see the article on rate limits.

Privacy note

Each request leaves a technical log line with time, IP, User-Agent, country, endpoint, status, latency, sizes and token counts. Keep confidential documents off a public endpoint.

Adding Claude later without disruption

Once your prompts and workflows feel right on the free backend, adding Claude is a matter of adding a second connection through one of the routes above. Keep the free connection for testing and casual use, and use Claude for conversations where quality matters. Open WebUI lets you switch models per chat, which makes side-by-side comparison easy.

Before relying on Claude for anything important, decide whether you want a plan or API access; the trade-offs are covered in the subscription versus API comparison. And if a cheap offer promises Claude inside Open WebUI for almost nothing, read the article on reseller risks first.

Long table with many places sharing one teapot
Users on one server share that server's per-IP limit.
Try the free API

Send a prototype prompt from the chat box on the home page: no key, no account and no card needed, just the usual per-IP limits.

Read also