Skip to main content

How do I manage multiple AI models and coding agents?

Summary

  • Route every coding agent through one gateway, govern each model as a permissioned service, and publish a shared configuration so developers keep the agent they prefer while using only the models you've approved.
  • Manage it in layers: credentials, the model catalog, access, agent setup, model choice, MCP tools and skills, spend, and visibility.
  • Developers shouldn't hold provider API keys; requests should run under their own identity so access, usage and cost attach to a real person.
  • On Databricks, Unity Gateway and its CLI (ug) connect Claude Code, Codex, OpenCode and other agents to governed models, MCP servers and skills, with budgets and a usage dashboard that has a Coding Agents tab.
  • Central coding agent configuration, Smart Routing and the unified trace table are in Beta; Unity Gateway itself is generally available.

How do I manage multiple AI models and coding agents?

Route every coding agent through one gateway, govern each model as a permissioned service, and publish a shared configuration so developers can use the agent they prefer with the models you've approved. Developers keep their choice of tool. The organization gets one place for access, spend, tools and logs. On Databricks, Unity Gateway does this: developers launch Claude Code, Codex, OpenCode and other agents through the Unity Gateway CLI, and admins control models, MCP servers, skills and budgets through Unity Gateway and Unity Catalog.

Why multi-model, multi-agent setups get messy

Each agent arrives with its own model settings, credentials and bill. Standardize on one, and you risk missing better or cheaper models elsewhere. Support many with no control point, and access, budget controls, security policies and usage logs scatter across separate systems. The Unity Gateway observability docs put the problem plainly: as teams adopt coding agents and custom agents across the organization, it gets harder to see who accesses which models or tools, how much they cost, and whether endpoints are healthy.

What to manage, layer by layer

Layer What to manage In Unity Gateway
Credentials No provider keys on developer machines Agents use Databricks credentials; provider keys sit in model provider services
Model catalog Which models exist Hosted models in system.ai, plus registered external providers
Access Who can use which model EXECUTE grants on model services and providers
Agent setup Enabled agents, defaults, MCP servers, skills Coding agent configuration (Beta), applied by ug
Model choice The right model for each task --model at launch, /model mid-session, Smart Routing (Beta)
Tools and skills Approved MCP servers and skills EXECUTE on MCP services, READ VOLUME on skills
Spend Limits and budgets Rate limits, budgets, ug usage
Visibility Who uses what, and at what cost Usage dashboard, system.ai_gateway.usage, unified trace table (Beta)

How to set it up on Databricks

  1. Connect developers. Developers install the CLI with uv tool install git+https://github.com/databricks/unity-gateway and launch an agent with a command such as ug claude, ug codex or ug opencode. On first use, ug prompts the developer to select a workspace and sign in, so no provider API key lands on the developer's machine. See the quickstart.
  2. Publish a shared setup. A workspace admin publishes a coding agent configuration with the enabled agents, the default agent, each agent's model source and default models, MCP servers, skills, and features such as Smart Routing and tracing. Each workspace has one published configuration. This is in Beta and needs the Unity Gateway Managed Configuration preview.
  3. Grant access. Adding a resource to the configuration doesn't grant access to it. Grant EXECUTE on models, providers and MCP servers, READ VOLUME on skills, and USE CATALOG and USE SCHEMA on their parents.
  4. Let developers choose models. Developers pick a model at launch with --model or switch with /model in most agents. Smart Routing (Beta) picks the lowest-cost capable model for each subagent task in Claude Code and Codex, and requires a static list of system.ai model services.
  5. Control spend. Set rate limits per model service and per user, and budgets with shared and per-user thresholds that alert or block. Linking a budget in the configuration lets developers check their own spend with ug usage; that needs the Enhanced Unity Gateway preview and a per-user threshold with Block usage enabled.
  6. Watch usage. The usage dashboard's Coding Agents tab shows active days, coding sessions, commits and lines of code added or removed, and the observability docs cover tracing through the unified trace table (Beta).

Agent support varies. For example, ug cursor configures MCP access only, and its model requests use the developer's Cursor account. Check the supported agents matrix before you standardize.
Databricks' own terminal agent, Genie Code CLI, fits the same model. It's in Beta, its model access is provided and governed through Unity Gateway, its usage appears in Unity Gateway usage, and Unity Gateway budgets apply to it.

FAQs

Can developers keep their preferred coding agent?

Yes. ug launches supported agents in their familiar interface, and developers can switch between enabled agents without configuring each one separately.

How do I give power users a wider set of models?

Create separate model services for each group, grant EXECUTE accordingly, and give each service its own rate limits. Budgets also support per-user overrides for groups that need a higher allowance.

Do MCP tools inherit the developer's permissions?

Access to a registered MCP server needs EXECUTE on it, and users also need any permissions its underlying tools and data require.

Which parts are in Beta?

Coding agent configuration, Smart Routing, smart defaults, the unified trace table and service policies are in Beta. Unity Gateway itself has been generally available since August 4, 2026.

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