What is the relationship between Genie Code CLI and Unity Gateway?
Summary
- Unity Gateway is how Genie Code CLI gets its models and how admins govern and pay for it. During the Beta, model access is provided and governed through Unity Gateway, so you don't bring your own model subscription.
- Genie Code CLI usage is billed the same as using the model directly through Unity Gateway and appears in your Unity Gateway usage. It isn't billed under Genie pricing, and Genie budgets don't affect it.
- Workspace admins control spend with Unity Gateway budgets, which support shared and per-user thresholds that can send alerts or block further requests.
- Genie Code CLI needs a workspace in a Unity Gateway supported region. Databricks manages which model it uses, and you can't pick one.
- Unity Gateway governs model access; Unity Catalog permissions govern what the agent can do in your workspace. Local file edits and commands on your machine aren't governed by Databricks.
What is the relationship between Genie Code CLI and Unity Gateway?
Unity Gateway is the layer that supplies, meters and governs the models behind Genie Code CLI. Genie Code CLI is the agent in your terminal, and Unity Gateway is where its model traffic goes. In practice, you don't need a separate model subscription, usage is billed and tracked as Unity Gateway usage, not Genie usage, and admins govern the CLI through Unity Gateway. Genie Code CLI is in Beta, so these details can change.
What is Unity Gateway?
The Databricks docs describe Unity Gateway as "a single control plane for model inference, tools, and skills across your AI applications and coding agents." It's built on Unity Catalog and extends governance from data and AI assets to the runtime interactions between models, agents, MCP servers and tools. Admins use it to control which AI services teams can use, route traffic, set guardrails with service policies, track usage and set budgets.
How Genie Code CLI uses Unity Gateway
| Area | How it works for Genie Code CLI |
|---|---|
| Model access | Provided and governed through Unity Gateway. You don't bring your own model subscription. |
| Sign-in | At startup you select a Databricks CLI profile, which Genie Code CLI uses to access models through Unity Gateway. |
| Model choice | Managed by Databricks. You can't choose a specific model, and the selection can change over time. |
| Region | Your workspace must be in a Unity Gateway supported region. |
| Billing | Billed the same as using the model directly through Unity Gateway, and shown in Unity Gateway usage. Not billed under Genie pricing. |
| Spend controls | Unity Gateway budgets apply. Genie budgets don't. |
| Admin governance | Through Unity Gateway. |
| Managed MCP servers | Databricks managed MCP servers, such as Genie One, are reached at a Unity Gateway URL that you add with genie mcp add. |
Controlling spend with Unity Gateway budgets
Because Genie Code CLI isn't covered by Genie budgets, the spend control to set up is a Unity Gateway budget. When you create one, you can scope it to the Unity Gateway resource type and configure:
- Shared thresholds for collective spend across everyone in the budget's scope.
- Per-user thresholds for a monthly limit on each individual user.
- Per-user overrides that give specific users or groups a higher limit.
At each threshold you can send an alert email, block further requests through Unity Gateway, or both. Enforcement is near real-time but approximate, and the docs say not to treat it as an absolute cap on final billed amounts. system.billing.usage remains the source of truth for billed usage.
What Unity Gateway doesn't govern
Unity Gateway governs model access and spend. Two other boundaries matter:
- Workspace operations run under your Databricks identity, so Unity Catalog permissions decide what data Genie Code CLI can read and what it can change.
- Local operations, such as editing files and running commands on your machine, aren't governed by Databricks, so review what the agent runs locally.
Genie Code CLI or another agent through Unity Gateway?
Unity Gateway also serves other coding agents through the ug CLI, which signs you in to a workspace, applies your admin's configuration and launches supported agents with their model traffic routed through Unity Gateway. Admins can publish a shared coding agent configuration (Beta) with agents, models, MCP servers and skills for ug to apply.
The Genie Code CLI docs give a simple rule. Use another coding agent through ug if you've already configured it with Databricks agent skills and Databricks managed MCP servers. Use Genie Code CLI if you haven't, or if you want the tuning Databricks applies to the agent harness so it works better with Databricks. Either way, model traffic flows through Unity Gateway, so usage tracking and budgets work the same way.
Use cases
- A platform team rolling out a terminal agent. Admins confirm the workspace is in a supported region, set a Unity Gateway budget with per-user thresholds, and let developers install Genie Code CLI without handing out model API keys.
- A data engineer working in a local repo. The engineer runs
geniein the project folder, picks a CLI profile, and works on pipeline code and Unity Catalog data in one session, with spend landing in Unity Gateway usage.
FAQs
Does Genie Code CLI count against my Genie budget?
No. It isn't billed under Genie usage and isn't affected by Genie budgets. Set budgets for Unity Gateway to control its spend.
Can I bring my own model API key to Genie Code CLI?
No. During the Beta, model access is provided and governed through Unity Gateway, and Databricks manages the model selection.
How do admins govern Genie Code CLI?
Through Unity Gateway. Its usage appears in Unity Gateway usage, and Unity Gateway budgets apply to it.
Does Unity Gateway control what Genie Code CLI does on my laptop?
No. Unity Gateway governs model access and spend, and Unity Catalog permissions govern workspace operations. Local file edits and commands aren't governed by Databricks.
The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.