Skip to content

How to Use Claude in Open WebUI (2026): Anthropic API Setup, Models and Limits

7–10 minutes
Woman in a lab coat in a glass-walled office holding a tablet with a CLAUDE + OPEN WEBUI card, hook Claude in your own chat

Open WebUI is usually paired with local models, but it is just as good as a private front end for Claude.

Plug in an Anthropic API key and Claude Opus 5.5, Sonnet 5.5, Haiku 5.5 and Fable 5.2 appear in the model dropdown next to your Ollama models. You pay per token instead of a monthly seat, can share access with your team, and keep every chat on your own server.

This guide shows the native connection (no pipes or proxies), which Claude model to pick, what works and what does not through Anthropic’s OpenAI-compatible endpoint, how to get full Claude features with a pipe or LiteLLM, cost control and fixes for the common errors.

It follows the Open WebUI and Anthropic documentation as of December 2026.

TL;DR

  • Key: create one in the Claude Console at platform.claude.com.
  • Connect: Admin Settings > Connections, Manage OpenAI API Connections, +.
  • URL: https://api.anthropic.com/v1 plus your key. Models are listed automatically.
  • Pick: claude-sonnet-5-5 for daily chat, claude-haiku-5-5 as the cheap task model.
  • Limits: no prompt caching, PDF file parts or visible thinking through this endpoint. Use a pipe or LiteLLM for those.
  • Cost: set a spend limit in the Console before sharing with others.

Why Use Claude Through Open WebUI?

Claude.ai subscription Claude API in Open WebUI
Billing Fixed monthly per seat Pay per token used
Team sharing A seat per person One key, your own users and groups
Chat history Stored by Anthropic Stored in your Open WebUI database
Local models side by side No Yes, with Ollama or llama.cpp
Projects, artifacts, apps Built in Open WebUI’s own features instead

Light users often spend less on the API than on a subscription. Our Claude Pro vs Claude API comparison does the token maths. If Open WebUI is not installed yet, start with our Open WebUI setup guide.

Step 1: Get an Anthropic API Key

  1. Sign in to the Claude Console at platform.claude.com and add a payment method or credits.
  2. Open API Keys and create a Developer API key. Name it something like open-webui so you can revoke it alone later.
  3. Copy the key once. It starts with sk-ant- and is not shown again.

Anthropic notes that personal or service account keys scoped to an organization also need an anthropic-workspace-id header on every request. A plain Developer key avoids that. Our Claude API key guide covers key types and credits step by step.

Step 2: Add the Connection

Open WebUI supports Claude natively through Anthropic’s OpenAI-compatible endpoint, so no middleware is needed.

  1. Open admin settings: click your name, Admin Panel, then Settings > Connections.
  2. Find Manage OpenAI API Connections and click + (Add Connection).
  3. URL: https://api.anthropic.com/v1. The field suggests common providers as you type, so you can pick Anthropic from the dropdown.
  4. API Key: paste your sk-ant- key.
  5. Click Save. Open WebUI detects the Anthropic URL and fetches the model list for you.

Behind the scenes, Open WebUI pages through Anthropic’s native models list with the x-api-key header and reshapes it into the OpenAI format. Chat requests go unchanged to Anthropic’s /v1/chat/completions with Bearer auth. A toggle next to the connection lets you disable it without losing the settings.

Step 3: Choose Your Claude Models

Pick a model from the dropdown at the top of a new chat. The current lineup from Anthropic’s model overview:

Model API ID Price per MTok (in / out) Use it for
Claude Fable 5.2 claude-fable-5-2 $8 / $40 Hardest reasoning and long agent runs
Claude Opus 5.5 claude-opus-5-5 $4 / $20 Anthropic’s default pick for most work, coding
Claude Sonnet 5.5 claude-sonnet-5-5 $2 / $10 Everyday chat, best speed for the quality
Claude Haiku 5.5 claude-haiku-5-5 From $0.10 / $0.50 Titles, tags, routing, quick lookups

All four have a 1M token context window and 128K max output. Full cost examples are in our Claude API pricing guide.

Show only the models you want

Anthropic’s list includes older models too. Edit the connection, open Advanced and type IDs into Model IDs, for example claude-sonnet-5-5 and claude-haiku-5-5. Once set, Open WebUI stops calling the provider’s model list and shows exactly those IDs. Add a Prefix ID such as anthropic if another connection serves models with the same names.

Make a reusable Claude assistant

In Workspace > Models, create a custom model on top of claude-sonnet-5-5 with your own system prompt, knowledge and tools. Our Open WebUI custom models guide walks through it.

Set It Up With Environment Variables

For Docker deployments you can pass the connection at start-up instead of clicking through the UI. Open WebUI reads semicolon-separated lists, so Claude can sit beside another provider:

docker run -d -p 3000:8080 \
  -e OPENAI_API_BASE_URLS="https://api.anthropic.com/v1" \
  -e OPENAI_API_KEYS="sk-ant-your-key" \
  -v open-webui:/app/backend/data \
  --name open-webui ghcr.io/open-webui/open-webui:main

These are persistent config values: after the first start, changes made in the Admin Panel are kept in the database and win over the environment. Keep the key out of shell history by using an .env file with Docker Compose.

What Works and What Does Not

Anthropic describes its OpenAI-compatible layer as intended mainly for testing and comparing models, though Open WebUI’s docs report that chat and tool calling work as intended in practice. Know the gaps before you rely on it:

Feature Through the native connection
Streaming and multi-turn chat Works
Tool calling (Open WebUI tools, web search, MCP) Works; the strict flag is ignored
Images in chat Works
PDF and audio as file parts Not supported (400 error); use Open WebUI’s RAG instead
Prompt caching Not supported
Thinking On by default on Claude 5 models, but the thinking text is not returned
reasoning_effort Ignored
Citations, web search tool, Files API Native API only

Uploading a PDF still works in Open WebUI because it extracts the text and sends that, not the file. See our Open WebUI RAG guide. For web answers, enable Open WebUI’s own search as in our web search guide.

System prompts are fine: the compatibility layer joins all system and developer messages into Claude’s single top-level system field.

Full Claude Features: Pipe or LiteLLM

When you need prompt caching, native PDFs, citations or visible thinking, route Claude through its native Messages API instead:

  • Pipe function: install an Anthropic pipe from the Open WebUI community site under Admin Panel > Functions, add your key in its Valves, and the pipe’s models appear in the dropdown. Read the code first, since a function runs on your server. Our Open WebUI functions guide explains pipes.
  • LiteLLM proxy: run LiteLLM with your Anthropic key and add LiteLLM to Open WebUI as an OpenAI connection. Set the connection’s Provider to LiteLLM under Advanced.

Open WebUI’s reasoning docs note one known clash: Anthropic extended thinking combined with tool calls through the OpenAI path fails with an error about a missing thinking block, because Open WebUI does not send Anthropic-style thinking blocks back. A pipe is the workaround.

Our prompt caching explainer shows how much caching can save on long chats.

Control Cost and Access

  • Cheap task model: Open WebUI generates titles, tags and follow-ups in the background. In Settings > Interface, set the external task model to claude-haiku-5-5 so those calls do not run on Opus.
  • Spend limit: set a monthly limit in the Claude Console. Our Claude API cost tracking guide shows where.
  • Restrict models: make Fable and Opus visible only to a group in Workspace > Models access settings. See our users and groups guide.
  • Long chats cost more: every message resends the whole conversation. Start a new chat for a new topic.

Troubleshooting

No Claude models appear after saving

Check the URL is exactly https://api.anthropic.com/v1 with no trailing path, then click the refresh icon next to the connection. If Model IDs is filled in, only those IDs show.

401 authentication_error

The key is wrong, revoked or has a stray space. Create a new key and paste it again. Organization-scoped keys also need the workspace header, so use a Developer key.

400 error when attaching a file

File and audio content parts are not supported on this endpoint. Let Open WebUI extract the document text, or use a pipe.

429 or 529 Overloaded

You hit a rate limit or Anthropic is busy. Wait and retry, or use a smaller model. Our Claude API errors guide lists each code.

I cannot see Claude’s thinking

The compatibility layer does not return thinking text. Use a native pipe to show it.

Connection hangs or the UI freezes

A slow model list can block the page. Raise AIOHTTP_CLIENT_TIMEOUT_MODEL_LIST, or see our Open WebUI connection error fixes.

FAQ

Can I use my Claude Pro subscription in Open WebUI?

No. Open WebUI needs an API key from the Claude Console, billed per token, separate from a Claude.ai plan.

Which Claude model is best for Open WebUI?

Sonnet 5.5 for everyday chat, Opus 5.5 for harder work, and Haiku 5.5 for background tasks.

Does Claude in Open WebUI support tools and MCP?

Yes. Tool calling works through the native connection, so Open WebUI tools, web search and MCP servers can be used with Claude.

Is my data sent to Anthropic?

Your prompts and the chat history in each request go to Anthropic’s API. Chats are stored in your own Open WebUI database.

Can I use Claude and Ollama together?

Yes. Keep both connections and switch per chat, or compare them side by side with multiple models in one chat.

Do I need a pipe function?

Only for native-only features like prompt caching, native PDFs, citations or visible thinking.

Sources

Free weekly email

Get new AI guides every week

One short weekly email with our newest local AI, ComfyUI and AI tool guides. No spam, no pop-ups, just the good stuff.

Free. Unsubscribe anytime in one click. We only use your email to send this newsletter. See our privacy policy.

Woman in a lab coat in a glass-walled office holding a tablet with a CLAUDE + OPEN WEBUI card, hook Claude in your own chat