Open WebUI with Anthropic Claude models: what the connection does
Most teams that want Claude available to staff inside a self-hosted Open WebUI do not want to give up control of who can reach the model or where prompts travel. The connection itself is simple, but the routing decisions around it are where the control sits. Open WebUI supports Claude natively through Anthropic's OpenAI-compatible endpoint, so you do not need a separate gateway to get started. When you add an Anthropic connection, Open WebUI detects the api.anthropic.com URL, uses it for model discovery, and sends chat requests to /v1/chat/completions. Read the Anthropic provider guide in the Open WebUI docs before you configure anything, since it sets out the connection fields your installation will use.
Open WebUI also exposes its own Anthropic Messages endpoint at /api/v1/messages. This is a different path from the OpenAI-compatible route, and clients that already speak the Anthropic Messages format can point at it. Before you choose one path for production, confirm which request format your internal clients, tools and integrations use, which features each path supports in the Open WebUI release you run, and how usage is logged on each path. Pick one path per use case and document it, so audit logs and support tickets can be traced to a single route.
Once the connection exists, every user who can see a Claude model is sending data to an external API. Decide before rollout which groups may select Claude models, whether any groups must be kept on internally hosted models, and how model visibility is enforced through Open WebUI's group and model permissions. Confirm with Anthropic and your own legal and data protection teams what the API terms and data handling commitments cover for your account. Treat this as a configuration review to complete before launch, not a setting you revisit later.
What you need before connecting Claude
Connecting Claude to Open WebUI touches the version you run, the way you deploy it, the account and key that pay for model calls, and the network path to Anthropic. Settle these first, because a multi-replica decision changes the database, session and storage design before any provider is added.
Open WebUI version and install method
Pick one install method from the supported set: Docker, Docker Compose, Kubernetes with Helm, or pip install open-webui followed by open-webui serve. Confirm the latest release line on the GitHub releases page before you pin a version, and record the tag you deploy so upgrades can be planned against it. Check that the version you choose falls under the license terms that apply to your user count.
Releases pageAnthropic account and API key
Create the Anthropic API account under an organization-owned identity, not a personal login, so billing and key rotation stay with your team. Store the key in a secrets mechanism you control and assign it to a named environment. Ask who can view, rotate and revoke it, and confirm your spending limits with Anthropic before users arrive.
Outbound HTTPS to Anthropic
The Open WebUI host must reach api.anthropic.com over outbound HTTPS for model discovery and chat requests. Confirm that egress policy, proxies and any DNS filtering allow that destination from the pods, containers or VMs that run Open WebUI, not only from your workstation. Document the path so a blocked connection is not mistaken for a provider outage.
Replica count decision
A single replica can run on SQLite only with the database file on locally attached SSD or NVMe storage. If you plan more than one replica, PostgreSQL, Redis and shared file storage must be in place before the Claude connection is rolled out to users. Decide this first, because moving from SQLite or local storage later means a migration, not a configuration change.
Scaling guideShared state for multiple replicas
Multiple replicas need Redis for sessions, websocket connections and application state, and shared storage so uploads and knowledge stay reachable from every replica. Without Redis, signing out does not revoke tokens, which remain valid until they expire. Test sign-out and token behavior across replicas before you hand out access.
External vector store for scaled setups
The default ChromaDB will crash in multi-process setups, so running several workers or replicas requires an external vector database. Choose one from the supported list and confirm it before rollout. Keep this choice separate from the Claude connection itself, since the provider does not replace retrieval storage.
How to add Claude to Open WebUI in order
This sequence connects Anthropic's Claude models to a self-hosted Open WebUI instance, limits which Claude models users can see, and confirms with a test chat that requests reach Anthropic and return answers. Each step ends with a check you can record before moving on.
Create the Anthropic API key
An administrator signs in to the Anthropic Console with an account that the organization controls, creates a dedicated API key for Open WebUI, and labels it with the instance name and environment. Record who owns the key and where it is billed, because the key authorizes every request users make through the interface. The step is done when the key appears in the console under the expected workspace and you can name the person responsible for rotating it.
Store the key as a secret
Place the key in your secrets manager or in the container environment file that your deployment method reads, rather than pasting it into a shared document or a compose file committed to source control. Confirm that the value is not written to container logs or the Open WebUI audit output during startup. The step is done when a restart of the Open WebUI service succeeds and the key value is visible only to the people and automation that need it.
Add the Anthropic connection in admin settings
Sign in as an administrator, open the admin settings, and add an OpenAI-compatible connection that points to the api.anthropic.com base URL. Open WebUI detects this host and treats the provider as Anthropic for model discovery and chat requests. Enter the stored key through the connection field and save. The step is done when the connection saves without an error message and the status indicator for the connection shows that it is enabled.
Run model discovery
Trigger model discovery for the Anthropic connection from the same settings panel. Open WebUI queries the provider for the models the key can access and lists them in the model selector. Confirm the list matches the models your contract and Anthropic account allow, and note any model that appears but is not approved for your use. The step is done when the expected Claude models appear in the list and the discovery run records no authentication errors.
Restrict visible Claude models
Use Open WebUI model settings to hide discovered Claude models that your policy does not approve, and assign the remaining models to the groups that need them. Set access through groups rather than by sharing individual models with each user, so later changes apply to everyone in the group. Review the result as a non-administrator account to confirm what users actually see. The step is done when a standard test user sees only the approved Claude models and an administrator account sees the full list you intended.
Send a test chat and check the audit trail
Start a new chat as a test user, select an approved Claude model, and send a short prompt that has a predictable answer. Confirm that a response returns and that the request appears in the logs or audit output your deployment keeps, with the user, model and timestamp recorded. Check that the prompt content is stored or logged only to the extent your data handling policy allows. The step is done when the reply arrives, the request is traceable to the test account, and the logging setting matches the policy your compliance team approved.
Choosing between the OpenAI-compatible path and the Anthropic Messages endpoint
The first decision is which path your traffic takes. Standard Open WebUI chat uses the OpenAI-compatible path: Open WebUI detects the Anthropic base URL, lists the Claude models it can discover, and sends chat requests to /v1/chat/completions. Users never see the difference. The second path is the built-in Anthropic Messages endpoint at /api/v1/messages, which Open WebUI exposes so that clients already written against Anthropic's Messages format can call Open WebUI instead of Anthropic directly. Choose the path by asking which client will make the request, not by which model you want. A browser user in the chat interface needs only the first path. A script, internal tool or agent framework that already emits Messages-format requests needs the second, and you should test it against your own build before relying on it.
Three questions separate the cases. First, which clients call the endpoint? Mixing human chat and automated jobs on one path makes it harder to set rate limits and to explain failures. Second, who holds the Anthropic keys? Confirm whether the provider key lives in Open WebUI's connection settings, is passed through by the caller, or is held in a secrets store your platform team controls, because each choice changes who can rotate the key and who can see it in the admin panel. Third, how is usage logged? Check which events, user identifiers and token counts each path records in Open WebUI's logs and in your gateway or observability stack, since a request that bypasses a log you expected to see is an audit gap.
Confirm the current behavior of each path in your own environment before you publish either one to users. Run a test request through /v1/chat/completions and another through /api/v1/messages with a non-production key, then compare the model names returned, error formats, streaming behavior and what appears in the logs. Record the Open WebUI version you tested, because endpoint behavior can change between releases. The Open WebUI Anthropic documentation is the starting point for the supported setup, and your findings should be written down as the reference for your team.
How a Claude request moves through Open WebUI
The request starts in a user's browser and reaches the Open WebUI server inside your network. Open WebUI then sends the chat to Anthropic's OpenAI-compatible endpoint at api.anthropic.com, which sits outside your trust boundary. A separate path shows a client that calls Open WebUI's own Anthropic Messages endpoint, which still passes through the same server. Check where the trust boundary sits, what leaves the network, and which clients can reach each path.
Request paths from users and Messages clients through Open WebUI to Anthropic, with the trust boundary marked.
Routing sensitive groups away from external APIs
Most employees can use Claude for drafting, summarizing and research, provided the data they paste is within the approved use policy. For this audience, the Anthropic connection is an ordinary provider entry, and the main job is to make sure the Claude models appear only in the groups that the policy names. Staff should not have to choose a model by memory of which ones are allowed, so the interface should show them only what they may use.
- Named group: Create a group for approved users and grant it access to the Claude models through model permissions, rather than leaving the models open to every signed-in account.
- Default role: Confirm what new accounts receive on first sign-in, since a permissive default can expose external models to people outside the intended group.
- Usage guidance: Publish the rule on what may be entered into external models next to the model picker, so the policy is visible at the moment of use.
- Key ownership: Decide whether staff use a shared provider key configured by administrators or personal keys, and document which option the security team has approved.
Check that a standard user account in this group sees the Claude models and that an account outside the group does not.
Groups that handle regulated, personal or confidential data need a model list that contains only self-hosted models. The safe design is to keep the Anthropic provider out of their model visibility entirely, so a mistake in a chat cannot send data to an external API. This is a permission decision, and it should be made in the admin settings and then proven with a test account.
- Exclusion by permission: Remove access to the Claude models for these groups and confirm that no other group they belong to grants it, since membership in several groups can widen access.
- Allowed model list: Grant only the self-hosted models, such as those served by Ollama or vLLM, and state the list in the group's written procedure.
- Tools and knowledge: Review whether any tool, knowledge base or web search available to the group could send content to an external service, because those paths sit outside the model picker.
- Change control: Record who may add the Anthropic connection to these groups and require a review when a model permission changes.
Sign in as a test user in the regulated group, open a new chat and confirm that no Claude model is listed or selectable.
Service accounts are non-human identities that call Open WebUI's API, for example scripts, scheduled jobs or integrations. They often hold API keys with broader reach than an individual user, and their traffic is easy to overlook in reviews. Treat them as a separate audience with their own group, their own keys and an explicit list of models they may call.
- Dedicated group: Place each service account in a group named for its purpose, and grant that group only the models its workload needs.
- Scoped keys: Issue API keys per integration so that a revoked key affects one workload, and confirm how keys are rotated and stored.
- Endpoint awareness: Note that Open WebUI exposes its own Anthropic Messages endpoint in addition to chat completions, so permissions must be checked for both paths, not only the chat interface.
- Sensitive workloads: Keep jobs that process regulated data on the self-hosted group, even when they run from the same automation platform as other jobs.
Send a test request with each service key to a Claude model and to a self-hosted model, and confirm that only the permitted call succeeds.
Reading the admin settings shows what the configuration intends, but it does not prove what a user can reach. Group membership, inherited permissions, default roles and model visibility can interact in ways that are hard to see from the administration pages. The separation should therefore be verified by signing in as a real test user in each group and attempting the actions a user would take.
- Test accounts per group: Keep one test account for each audience, with a documented membership, and run the same checks after every change to groups, permissions or connections.
- Negative tests: Attempt to select a Claude model from a regulated account and attempt a direct API call with a restricted key, and record that both are refused.
- Positive tests: Confirm that the permitted accounts can reach the models they are supposed to use, so that over-restriction is also caught.
- Evidence: Keep dated screenshots or logs of the results, which the compliance team can review later.
Repeat the test after each upgrade, because permission behavior can change between releases. Ask your team to confirm the current version notes before relying on earlier results.
Mapping Open WebUI groups, models and keys to Claude access
This table maps each access decision for Claude in Open WebUI to the setting that controls it and the team that should own it. Read it as a checklist: fill in each row for your deployment before any user is given Claude access. The main takeaway is that model access, the Anthropic key and logging each have a separate owner, and none of them should be left to default settings.
| Decision | Where it is set in Open WebUI | Owner to confirm |
|---|---|---|
| Anthropic connection endpoint | Admin connection using the api.anthropic.com base URL, so model discovery and chat requests use Anthropic's OpenAI-compatible path | Platform team |
| Chat path used by Open WebUI | Chat requests go to /v1/chat/completions; the built-in Anthropic Messages endpoint is exposed at /api/v1/messages and should be reviewed separately | Platform and security teams |
| Model visibility to groups | Model access controls restrict which groups or roles can select each discovered Claude model | Platform team with data owners |
| Exact model identifiers | Model names appear after discovery; confirm each identifier against the model list in the Anthropic console before granting access | Engineering lead |
| Anthropic API key holder | Key stored as an admin-managed connection secret, not a personal key of an individual employee | Finance or IT owner of the Anthropic account |
| Per-user API keys in Open WebUI | Users may hold Open WebUI API keys for their own calls; restrict who may create them through role settings | Security team |
| Sensitive group routing | Groups handling regulated data are kept off external Claude models and use a self-hosted model instead | Data protection or compliance owner |
| Request and reply logging | Open WebUI audit and application logs record who used which model; confirm what prompt content is retained and for how long | Security operations team |
Security settings for an external model connection
Connecting Claude adds an outbound path from your Open WebUI server to a third-party API, so the connection needs the same controls you would apply to any system that receives company data. The cards below cover where the API key lives, who can use Claude, what leaves your network, how traffic is allowed out, and who may change the settings.
Store the API key outside the database
The Anthropic API key authorizes every request billed to your account, so treat it as a credential rather than a setting. Where your deployment allows it, supply the key through an environment variable or a secrets manager that injects it at startup, rather than leaving it in the admin panel where it is saved in the application database. Check that database backups, admin exports and logs do not expose the key. Plan rotation before go-live, because a key in a shared database is harder to replace without downtime.
Restrict Claude access by group
Open WebUI can limit which users and groups see a given model, so Claude should not be open to every account by default. Map the groups that are approved for external models, such as a pilot team, and grant model access only to them. Test with a standard user account after each change, because a model that is hidden in the interface can still be reachable through an API key if permissions are not also applied to that key's owner.
Review what leaves the network
Every chat sends the prompt, conversation history and any attached content to Anthropic's servers, and retrieved knowledge base passages or uploaded files are included when they are part of the request. Before you enable the connection, list the data classes that users may paste or upload, and decide which are allowed to leave. Confirm Anthropic's current data retention and training terms for your API account with the vendor, because those terms govern what happens to data after it is sent.
Allowlist outbound traffic to Anthropic
Limit outbound HTTPS from the Open WebUI host or its pods to the Anthropic API hostname, api.anthropic.com, and deny other external destinations from that workload. Egress rules at the firewall, proxy or Kubernetes network policy should enforce this, not only the application configuration. Test the rule by confirming that a chat with Claude succeeds and that an arbitrary external address fails. Also check that model discovery requests reach the same hostname.
Limit who can change connection settings
The connection URL, the API key and model visibility are all changed through administrator settings, so any admin change can redirect traffic or expose a new model. Keep the number of admin accounts small, require MFA for them, and review changes to the Anthropic connection in your audit logs. Do not let a non-admin add an external connection, because a user-added endpoint would bypass the review you applied to the Claude connection.
Keep sessions and keys consistent across replicas
In a multi-replica deployment, the secret key used to sign tokens and the session store must be shared by every replica, or a user may be signed in on one replica and rejected on another. The scaling guide notes that without Redis, signing out does not revoke tokens, which stay valid until they expire, by default after 4 weeks. For a Claude connection used by sensitive groups, confirm that Redis is in place so revocation works, and set the same secret key on every replica from your secrets store.
Scaling docsCommon failures when connecting Claude
This table lists the failures teams most often hit when connecting Claude to Open WebUI, with the likely cause and the fix for each. Read it by symptom: find what the user or admin sees, check the cause column, then apply the fix before changing anything else. The main takeaway is that most failures come from the base URL, the key, the endpoint path, group permissions or missing shared session state rather than from Claude itself.
| Symptom | Likely cause | Fix |
|---|---|---|
| Claude models do not appear after discovery | Base URL is not the Anthropic API host, or the Open WebUI container cannot reach api.anthropic.com because outbound egress is blocked by a proxy or firewall | Confirm the connection URL points to the Anthropic API host, then test outbound HTTPS from the Open WebUI container or pod. Allow egress to that host through your proxy, and re-run model discovery |
| Authentication errors after connecting | API key was rotated in Anthropic's console but not updated in Open WebUI, or the key was copied with extra whitespace or from the wrong organization | Generate or retrieve the current key, paste it again without trailing spaces, save the connection and retest. Check that the key belongs to the workspace your team expects |
| Requests return not-found or method errors | Connection is configured against a path other than the documented OpenAI-compatible chat completions route, or a custom gateway in front of Claude rewrites paths | Verify the connection type and path used for chat requests, then send a single test request and inspect the path in logs. Remove or correct any gateway rewrite rule that changes the route |
| Group members see Claude models they should not use | Model access was granted to the default or broad groups, or the connection was made visible to all users instead of selected groups | Review model and connection permissions by group, remove access from broad groups, and grant Claude only to approved groups. Test with a standard user account from each group |
| Users stay signed in after sign-out on some replicas | Multiple replicas without Redis, so token revocation is not shared and tokens remain valid until expiry (by default 4 weeks, per the scaling guide) | Deploy Redis as the shared state store, confirm every replica uses it, then test sign-out from one replica and a request against another. Review the token lifetime with your identity policy |
| Sensitive data reaches an external Claude endpoint | Connection and model visibility were set for all groups, so regulated content can be sent to an external API without a routing decision | Restrict the Claude connection to approved groups, keep sensitive groups on internal models, and document the routing rule as a control with evidence of testing |
Questions buyers ask about Claude in Open WebUI
How much does it cost to connect Claude to Open WebUI?
The cost depends on the scope you agree in writing, and DeployOpen does not publish prices. A quote follows the written scope, which typically covers the number of model groups, whether SSO is included, whether the deployment runs on multiple replicas, and how much testing and documentation you need. Your own costs are separate from the engagement: Anthropic usage is billed by Anthropic to the API key owner, and infrastructure for Open WebUI and its supporting services runs in your accounts. Ask any provider for a quote that separates one-time work from recurring support, upgrades and retesting.
What makes the scope larger or smaller?
Connecting one Claude key to one group is the smallest case. Scope grows with each driver: the number of user groups that need different model access, whether users sign in through your identity provider with SSO and group mapping, whether the service runs on several replicas, and whether you want routing rules that keep sensitive groups away from external APIs. Testing and documentation for your security and compliance reviewers add further work. Each of these should appear as a line item in the written scope so you can see what changes the quote.
How long does a Claude integration take?
Duration follows the same drivers as scope. A single-instance deployment with one key and one group is the shortest path. Adding SSO, group-based access, multiple replicas with shared Redis and PostgreSQL, and a sign-off cycle with your security team lengthens the schedule, mostly through waiting for approvals, identity configuration and test cycles. Ask for a timeline that lists each milestone and the client dependencies it needs, rather than a single overall figure.
What does our team need to provide?
Your team needs to provide several things before work starts:
- Network access from Open WebUI hosts to api.anthropic.com, and a documented egress path if outbound traffic is restricted
- An Anthropic API key owned by your organization, with a named owner who can rotate it
- A group design that states which users may use which models
- Identity provider access if SSO is in scope
- A named sign-off owner for security, compliance and the business group using the service
Can our internal team do this without a partner?
Yes, a capable internal platform team can connect Claude to Open WebUI using the official quick-start documentation. The work that tends to take longer in-house is the production layer: multi-replica state, identity mapping, routing for sensitive groups, logging and evidence for reviewers. Decide based on who will own the service after go-live, how many people can cover on-call and upgrades, and whether your team has time for testing. A partner engagement can cover some or all of these pieces under a written scope.
Do we need multiple replicas to use Claude in Open WebUI?
No, a single replica is valid for evaluation and small teams. For several replicas, the Open WebUI scaling guide requires PostgreSQL instead of SQLite, Redis as a shared state store for sessions and websocket connections, and shared file storage. Without Redis, signing out does not revoke tokens, which stay valid until they expire, by default after 4 weeks. Confirm these requirements against the version you plan to run, since they affect the design and the cost of the work.
Which Open WebUI license terms apply if we serve many users?
The Open WebUI License forbids altering or removing Open WebUI branding in deployments that exceed 50 users in any rolling 30-day period, unless the operator holds an enterprise license or written contributor permission. If your deployment is above that threshold and you want custom branding, check whether an Enterprise License fits your seat count. Pricing is not published and is quoted after contacting enterprise sales with an expected seat count. Confirm the license terms with your legal team before scoping the branding work.
How DeployOpen scopes and delivers the Claude connection
DeployOpen treats the Claude connection as one part of a self-hosted Open WebUI deployment in infrastructure you control. The work covers the provider setup, model discovery, access rules for groups, and a routing policy that keeps sensitive groups away from external APIs.
How we scope
- Engagements are fixed-scope, with the Claude endpoints, model list, and user groups agreed in writing before work starts.
- The written scope names which groups may use external Claude models and which must stay on internal models.
- Ongoing support, upgrades and testing can be added as a retainer after the initial connection is delivered.
How we build
- We configure the Anthropic connection through Open WebUI's provider settings and verify model discovery against api.anthropic.com.
- We test chat requests through the OpenAI-compatible path and, where the design requires it, the built-in Anthropic Messages endpoint.
- We check that API keys are stored as secrets and that routing rules block sensitive groups from reaching external providers.
How we hand over
- You receive a written record of the provider configuration, group permissions, and the routing policy as built.
- Test results show which groups reached Claude, which were blocked, and how each result was verified.
- Runbooks cover key rotation, adding or retiring models, and what your team checks after an Open WebUI upgrade.
How we support
- Support covers changes to model lists, key rotation, and reviews after Anthropic or Open WebUI release changes that affect the connection.
- Retesting of the routing policy can be repeated when groups, models, or data classes change.
- Ask any partner to confirm response times, coverage hours, and what a retainer includes before you sign.

