Skip to main content

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. Follow the steps in Create and manage providers, 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.

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:

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

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​