What's the best way to use coding agents other than Genie with Databricks?
Summary
- The best documented way is to launch your coding agent through Unity Gateway with the Unity Gateway CLI (
ug), which the Databricks docs recommend over configuring each agent by hand. - Commands such as
ug claude,ug codex,ug opencodeandug piopen the agent you already use, with Databricks sign-in, model access and your organization's configuration applied. - Add Databricks know-how with agent skills (
databricks aitools installorug skills add) and live data access with Databricks-provided MCP servers (ug mcp add). - Admins can publish one coding agent configuration (Beta) for enabled agents, models, MCP servers and skills, and set Unity Gateway budgets to control spend.
- If your agent isn't set up with Databricks skills and MCP servers, the docs point to Genie Code CLI (Beta), a terminal coding agent preconfigured for Databricks.
What's the best way to use coding agents other than Genie with Databricks?
Run them through Unity Gateway. Install the Unity Gateway CLI, launch your agent with ug, then give it Databricks agent skills and Databricks-provided MCP servers. That setup gives the agent the models your organization approves, governed access to Unity Catalog data and tools, and spend tracking, while you keep the agent's own interface and workflow. Configuring each agent by hand also works, but ug is the path the Databricks docs recommend.
What to look for in a coding agent setup
| Capability | Why it matters | What Databricks provides |
|---|---|---|
| Governed model access | Teams need approved models and one place to see usage | Unity Gateway, with Databricks-hosted models or external providers registered in Unity Catalog |
| Data and tool access | An agent that can query real tables doesn't have to guess schemas | Databricks-provided MCP servers, such as the Genie One MCP server |
| Databricks know-how | Agents need current patterns for bundles, jobs and pipelines | Databricks agent skills |
| Permissions | Agent actions should follow the same rules as the user | Unity Catalog grants and Unity Gateway policies on MCP servers |
| Cost control | Spend should be visible and capped | Unity Gateway budgets and ug usage |
| Consistent setup | Every developer should get the same tools | Coding agent configuration (Beta), applied with ug configure |
How Databricks approaches third-party coding agents
Launch your agent with ug
You need your workspace URL, access to the models you want, Python 3.12 or later, uv, and the Workspace access or Consumer access entitlement.
uv tool install git+https://github.com/databricks/unity-gateway
ug claude
On first use you select a workspace and sign in, and ug opens the agent with the interface you already know. Use ug codex, ug opencode or ug pi for those agents, and /model inside a session to switch among the models your organization offers. Cursor works differently. In the Cursor IDE, you set the Unity Gateway base URL in Cursor's model settings, while ug cursor launches Cursor Agent with MCP access only, and its models run through your Cursor account. Run ug --help to see which agents your version supports.
Give the agent Databricks skills
Run databricks aitools install to add the official Databricks agent skills, which teach the agent patterns for Declarative Automation Bundles, Lakeflow Jobs, Spark Declarative Pipelines, Databricks Apps and more. For skills your team publishes to Unity Catalog, run ug skills add. Those Unity Gateway Skills are in Beta, and an admin must enable them.
Connect data and tools through MCP
ug mcp add opens a picker of the MCP servers you can access and adds the ones you choose to every configured agent that supports MCP. For analytics, start with the Genie One MCP server (system.ai.genie_one_mcp), which is generally available. The Databricks SQL MCP server (system.ai.dbsql) runs a specific SQL query, such as validating syntax or authoring a pipeline, after an account admin enables the Unity Gateway beta. A Genie Agent MCP, in Public Preview, scopes questions to one curated Genie Agent; it uses permissions on that agent and its data, and its calls bypass Unity Gateway.
Standardize it for the team
A workspace admin publishes a coding agent configuration (Beta) under Unity Gateway > Govern > Agent configuration. It sets the enabled agents and the default agent, each agent's models, the MCP servers and skills, and Unity Gateway features such as Smart Routing and tracing where supported. Developers apply it with ug configure. Admins can also set Unity Gateway budgets, and ug usage shows developers their spend once a budget is linked.
Where Genie Code CLI fits
Genie Code CLI is Databricks' own terminal coding agent, and it's in Beta. The docs draw the line plainly: use another coding agent through ug if you've already configured it to use Databricks agent skills and Databricks managed MCP servers such as Genie One. Use Genie Code CLI if you haven't, or if you also want the additional tuning Databricks applies to its agent harness. Admins govern both through Unity Gateway.
FAQs
Which coding agents work with Unity Gateway?
The Databricks docs cover Claude Code, Codex, Cursor, OpenCode and Pi, among others, across CLI, desktop and IDE surfaces. Support varies by agent and version.
Do I have to use ug?
No. You can enter the gateway endpoint and authentication settings in your agent yourself, and each agent's guide covers manual setup. ug is recommended because it handles agent-specific settings and applies your organization's configuration for you.
Are skills and MCP servers the same thing?
No. Skills give the agent knowledge of Databricks patterns and workflows. MCP servers give it callable tools for data and services, and installing skills doesn't configure them.
How do admins control what an agent can reach?
Each system.ai MCP server is a Unity Catalog securable invoked through Unity Gateway. Admins govern who can invoke it with grants and govern individual calls with policies.
The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.