Skip to main content

Governing AI Strategy with Unity AI Gateway

Summary

  • Centralized AI Governance: Unity AI Gateway provides administrators with dashboards to monitor model usage, costs, and data guardrails across all AI tools and agents.
  • Budget Controls: Enforce shared or per-user workspace budgets to manage AI spending and prevent runaway costs as usage scales across the organization.
  • Data Protection: Implement guardrails like PII blocking to intercept sensitive data before it reaches external models, ensuring compliance and data security.

Governing AI Strategy with Unity AI Gateway

Watch: Governing AI Strategy with Unity AI Gateway
Join Databricks' Amber Roberts, our Staff. TME for GenAI, for a new demo featuring the latest governance capabilities from Unity AI Gateway. Unity AI Gateway provides administrators with centralized visibility and control to manage and govern an enterprise AI strategy. The platform features customizable dashboards to track usage metadata and costs, alongside financial controls to enforce shared or per-user workspace budgets. Additionally, admins can implement data guardrails, such as PII blocking, to securely intercept sensitive data before it reaches external models.

Chapters

FAQs

What can administrators monitor through Unity AI Gateway?

Administrators can monitor all proprietary and open-source models, coding agents, MCP servers, and their usage metadata. This includes tokens, spend, daily requests, unique users, model performance metrics like latency and tokens per minute, and cost analysis.

How do budget controls work in Unity AI Gateway?

Admins can enforce shared workspace budgets or per-user budgets. This video demonstrates how Boba Bricks, a fictional company, prevents unexpected AI costs by setting financial limits on AI spending.

How can an AI gateway securely govern enterprise coding agents?

This video demonstrates the Unity AI Gateway on the Databricks Data and AI platform for governing coding agents with security controls and audit logging. The gateway intercepts agent requests, validates access, and logs all interactions. Organizations maintain visibility and control over what agents can do without stifling developer productivity.

Can an AI gateway govern MCP servers and tool access?

This video shows how the Unity AI Gateway can govern Model Context Protocol (MCP) servers and tool access for agents. The platform provides centralized policy enforcement for all tools agents can invoke. This prevents unauthorized data access and ensures compliance requirements are met.

Best AI gateway for enterprise coding agents?

This video highlights the Databricks Data and AI platform Unity AI Gateway as the best solution for enterprise governance of coding agents. It provides fine-grained tool access controls, comprehensive audit logging, and integration with enterprise authentication. The platform enables secure agent deployment in regulated environments.

Full transcript

0:00 Introduction to AI governance

Hello everyone. I'm on the tech marketing team here at Databricks. But today I'm going to be an account admin at Boba Bricks, a Boba tea company that uses Databricks for all our data and AI needs. In this demo I will walk through how I monitor, manage, and govern our company's AI strategy through the Unity AI Gateway. And I will specifically walk through how administrators like myself can effectively roll out and enforce governance for coding agents.
So let's get started. We're going to start in our AI Gateway tab in our Databricks workspace. And this is where admins can monitor our company's larger AI strategy. Here we can see all the available proprietary models, open source models, and coding agents. So if you're using Codex, Claude Code, or another coding agent, they are all essentially governed through Unity AI Gateway. In addition to governing models, all MCP servers and the tools that they're using are also essentially governed.

0:29 Monitoring models and tools

So by clicking into the MCP tab here, I can edit the capabilities of these servers. Let's take my GitHub MCP server for example. Here I'm able to select and edit the tools that are available for use. This means that I'm able to select which tools from this MCP server get exposed to my agents. Going back to our AI Gateway tab, I can actually click into any of these natively available models to see their governance setup.
As you can see, usage tracking is automatically enabled to give admins centralized visibility for high-level metadata around the model. So tokens going in and out of the model, which gives us spend visibility. And in order to track that spend visibility, I'm going to go back to my models and go into the right-hand corner under govern and select my usage dashboard. This opens an out-of-the-box dashboard that shows an aggregate view of how AI is being used across the company.

1:55 Analyzing usage and costs

And while I'm showing the out of the box version, this is fully customizable, but if you're looking for things like daily requests, daily token usage, unique users, the actual performance of the models by the endpoint, so things like latency, time to first token, tokens per minute, as well as looking at individual coding agents, uh Unity catalog connections, Unity catalog MCP services, and what's really great is our cost analysis.
So, the total cost, the DBUs, cost over time, if you want to look at weekly cost by endpoint, or if you want to look at cost per user, you can look at these. Now, as an admin, you're in charge of budgets, so if there's an individual user that's spending too much money, or if there's a workspace or a group that's spending too much money, and you want to enable budgets, I'm going to show you how to do that now. So, let's go back to our AI Gateway.

2:46 Configuring budget controls

And under govern, we're going to select budgets this time. And I'm going to click manage budget. All right, we can see budgets I already have set up, but I'm going to create a new one, and I'm going to name this eng budget because this is a budget I want to put on my engineering workspace. So, I can select between the workspaces, the resource type, so I'm going to use Unity AI Gateway, so the models routed through Unity AI Gateway, shared thresholds, let's say we're going to give them $10,000, and we're actually going to block usage on this shared threshold, and I can just type in my email.
Now, I can keep this just as a shared threshold, but let's say that in the dashboard I realized there were just two or three individuals that were using a majority of the budget. So, I want to add per user thresholds. And then, I'm going to say no one gets to use over 5,000 of the budget. And instead of blocking usage, I'm just going to send an alert, and I can add in their individual emails here. And then I'm going to go back to my workspace.

4:17 Managing models and policies

I'm going to click the add model button. And this is how we create a model service. I just have to select the catalog, the schema, the provider if it's Databricks hosted. And if I want to use an external provider, I can select between my list of external providers, or I can create a new external provider. So, let's do that now. Going into my providers tab. As you can see, I already have one OpenAI endpoint. I'm going to add a new one.
I'm going to select my Boba Bricks demo. And I'm going to name this model Boba one. I already have an API key copied, ready to go. And then I'm going to select the latest models. I have a little summary over here, the name, the provider, the model selected. Create this endpoint. All right, and now that's ready to go. But, a major concern I have as an admin is that if I give this model over to my engineering team, that there could be some sensitive data that gets leaked.
So, I'm going to go over to my policies and create a new policy. I'm going to name this all PII. It's going to apply to all account users. And then we can enter in the guardrail type. So, there's one for unsafe content, jailbreaking, hallucinations. I can have a customizable one where I have my own prompt and example behavior, but I'm going to select PII blocking. I'm going to really just care about the input guardrails before the model.
And I can look at the prompt here because I don't want any of these PII identifiers to reach the AI model. I'm going to create the policy. Now that our policy is created, I'm going to go back to our providers. So, I could go to my models. Now if I want to give this external provider model over to my engineering team or if I want to allow them to use Codex, Cursor, or about anything through the Unity AI Gateway so I can track it and observe what's happening.

6:11 Deploying agents with ucode

I'm just going to have them download U Code, which is an open-source CLI that connects every agent to Unity AI Gateway. So, in this one line of code, they can download U Code to integrate coding agents with enterprise-grade governance. Now I'm going to jump over to my terminal to configure U Code. Select which workspace I want to work off of. I have to do one authentication. Now it's giving me the coding agents I can configure.
I'll update that later. And the way I want Codex to be configured is going to be with the external models and I'm going to use Baba 1. All right. Now everything is configured. Note the only external provider is Codex. Now I can open U Code Codex. All right. And then from Codex, I'm going to say that my email is amber@databricks. com. My SSN is 1 2 3 4 5 6 7 8 9. What is my address? And as expected, this is being blocked by our input policy, all PII, right?
So, we had email address, that's blocked, social security number, that's blocked. So, it's reading the type of PII that was detected and blocking it, so this never actually reaches the model. So, now that we know that is working properly, there's still one thing that I want to be able to view as an admin to make sure that no sensitive data was leaked and everything was locked down as expected. So, I'm going to go back to my Unity AI Gateway.

8:10 Verifying governance and traces

And under govern, I'm going to select traces. And now I can see all the latest traces that I had as an admin view, so really a full picture of all the LLMs that are being used in my org. I'm going to go to the trace with the latest error. Here I can see that my name is Amrit Databricks, this is my social security number, what's my address? That got flagged and there was no output. So, you just see the input, no output available, and it was blocked before reaching the model.
Now, if I look at this trace that has an okay next to it, we could see that the policy we put in place is working effectively. We could see the system prompt from the policy we set and the assistant having the reason of this was flagged because it contains email address and social security number. So, it never even sent that information to that external GPT model. All right, that concludes the demo. And just a quick overview, I've walked through how admins can gain centralized visibility and control over their AI strategy, specifically through rolling out and enforcing governance for coding agents in Unity AI Gateway.
I've covered everything from monitoring usage and managing model services to implementing critical PII guardrails in order to secure our data. Thanks, everyone.

Learn more about the Databricks Data and AI platform.

The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.