---
title: Claude Max and Anthropic Enterprise support
description: Use an existing Claude Pro, Max, Enterprise, or Team plan with Unity Gateway by forwarding each caller's Anthropic OAuth token instead of storing an API key.
canonical_url: https://docs.databricks.com/gcp/en/ai-gateway/claude-max-anthropic-enterprise-support
---

# Claude Max and Anthropic Enterprise support

Claude Max and Anthropic Enterprise support lets you use an existing Claude Pro, Max, Enterprise, or Team plan with Unity Gateway. Instead of storing an Anthropic API key, Unity Gateway forwards each caller's own Anthropic OAuth token to Anthropic. Requests are billed against the caller's subscription, while Unity Gateway governs access, routing, and usage.

## Requirements

* `CREATE SERVICE` on the schema where you create the model provider service, plus `USE CATALOG` and `USE SCHEMA` on its catalog and schema.
* A Claude Pro, Max, Enterprise, or Team subscription to authenticate with when querying.

## Create a model provider service

Register the connection once as a [model provider service](https://docs.databricks.com/gcp/en/ai-gateway/model-provider-services.md). Follow the steps in [Create and manage providers](https://docs.databricks.com/gcp/en/ai-gateway/create-model-provider-services.md#subscription-auth), and select **Anthropic** as the provider type and the **Claude Max / Enterprise** authentication mode. The service stores no credential. Each caller signs in with their own Claude subscription, and you govern access to the service with Unity Catalog privileges.

## <a id="connect-claude-code" /><a id="unity-gateway-cli-setup" /><a id="ucode-setup" />Connect a coding agent

After the model provider service exists, each user connects their agent to it and logs in with their own Claude subscription:

* **Claude Code:** See [Bring your own Claude subscription](https://docs.databricks.com/gcp/en/ai-gateway/coding-agent-claude.md#bring-your-own-subscription) in Connect Claude Code. It covers the Unity Gateway CLI (recommended) and manual setup.
* **Claude desktop:** See [Connect Claude desktop](https://docs.databricks.com/gcp/en/ai-gateway/coding-agent-claude-desktop.md).

## How Claude Max and Anthropic Enterprise support works

When you configure Claude Code to use Unity Gateway, Claude Code continues to authenticate with Anthropic. It sends its `Authorization` header, and Unity Gateway forwards the OAuth token to Anthropic on each request.

Because the `Authorization` header is reserved for Claude subscription credentials, Unity Gateway uses a separate header, `X-Databricks-AI-Gateway-Token`, for its own Databricks credentials. This lets both Anthropic and Databricks authentication mechanisms coexist.

The `Databricks-Model-Provider-Service` header specifies which model provider service Unity Gateway resolves. Because that service is a Unity Catalog securable, you register it once, govern access with Unity Catalog privileges, and query it through Unity Gateway. The only difference from a standard model provider service is how each request is authenticated.

The following diagram shows how the two credentials travel together and where each is used. Unity Gateway doesn't store the Anthropic credential. It forwards it on every request.

![Unity Gateway receives an Anthropic OAuth token and a Databricks token from Claude Code, governs the request with Unity Catalog, then forwards only the OAuth token to Anthropic](https://docs.databricks.com/gcp/en/images/ai-gateway/claude-subscription-support-flow.png)

## Limitations

* Requests are billed against the caller's Anthropic subscription and are subject to that subscription's rate limits.
* A model provider service that uses Claude Max and Anthropic Enterprise support stores no credential, so it can only serve requests that carry a caller's Anthropic OAuth token.

## Additional resources

* [Query external model providers (model provider services)](https://docs.databricks.com/gcp/en/ai-gateway/query-model-provider-services.md)
* [Discover and govern access to external model providers (model provider services)](https://docs.databricks.com/gcp/en/ai-gateway/govern-model-provider-services.md)
* [Model providers external to Databricks](https://docs.databricks.com/gcp/en/ai-gateway/model-provider-services.md)
