---
title: Set up model capacity
description: "Make models available to coding agents through Unity Gateway: use Databricks models or connect your own external model providers, then grant access."
canonical_url: https://docs.databricks.com/gcp/en/ai-gateway/coding-agent-bring-your-own-providers
---

# Set up model capacity

Make models available to your team's coding agents through Unity Gateway in two ways: use Databricks-provided models, or connect your organization's own model provider accounts. You can offer both, then grant your team access to the models they need.

## Use Databricks models

Your workspace's Databricks model APIs are available in Unity Gateway, referenced by their Unity Catalog names, such as `system.ai.claude-sonnet-5-5`. These are the foundation models your workspace serves.

To make a model available to your team, grant access to its model API (see [Grant access to models, MCP servers, and skills](https://docs.databricks.com/gcp/en/ai-gateway/coding-agent-bring-your-own-providers.md#grant-access)), then add the model as a source for an agent in your [coding agent configuration](https://docs.databricks.com/gcp/en/ai-gateway/coding-agent-configure-govern.md#coding-agent-configurations).

For the available models and setup details, see [Govern model APIs](https://docs.databricks.com/gcp/en/ai-gateway/model-services.md).

## <a id="bring-your-own-model-providers" />Bring your own model providers

Connect coding agents to your organization's OpenAI, Anthropic, or Amazon Bedrock account through Unity Gateway. Register the external model provider once, then let developers use it with their Databricks identity. Unity Gateway supplies the provider credentials, so developers do not need their own copy of the API key.

<a id="register-a-provider" />

### Register a provider

In Unity Gateway, open **Providers** and create a provider. Choose its type, catalog, and schema, then enter its connection details, credentials, and the models to make available. For Amazon Bedrock, you can use a Databricks service credential instead of an access key pair.

The provider has a Unity Catalog name such as `main.default.anthropic_prod`. See [Create and manage external providers](https://docs.databricks.com/gcp/en/ai-gateway/create-model-provider-services.md) for setup steps and authentication requirements.

<a id="use-the-provider" />

### Use the provider

To distribute the provider to your team, select it as the model source for an agent in your [coding agent configuration](https://docs.databricks.com/gcp/en/ai-gateway/coding-agent-configure-govern.md#coding-agent-configurations). Developers apply the configuration with `ug configure` and launch the agent as usual.

With the **Unity Gateway Managed Configuration** beta, you can also list individual models behind the model provider service in the agent's `models.sources` field, mixed with Databricks model services. See [Choose model sources for each agent](https://docs.databricks.com/gcp/en/ai-gateway/coding-agent-configure-govern.md#choose-model-sources-for-each-agent).

To select a provider when launching an agent, pass its Unity Catalog name to `--provider`:

| Agent          | Supported provider                                                                           | Launch command                                     |
| -------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------- |
| Claude Code    | Anthropic or Amazon Bedrock (Runtime)                                                        | `ug claude --provider main.default.anthropic_prod` |
| Codex          | OpenAI                                                                                       | `ug codex --provider main.default.openai_prod`     |
| Gemini CLI     | Google Gemini Enterprise                                                                     | `ug gemini --provider main.default.gemini_prod`    |
| GitHub Copilot | OpenAI, Azure OpenAI, Microsoft Foundry, Anthropic, Amazon Bedrock, or Amazon Bedrock Mantle | `ug copilot --provider main.default.openai_prod`   |

Replace the example names with your registered external model providers. The command opens the agent with requests routed through that provider. Select a model the provider makes available; for Amazon Bedrock (`bedrock-runtime`), use its Runtime model IDs. Amazon Bedrock Mantle is a separate provider with different model IDs.

These are the provider combinations supported by the `ug` launch commands with `--provider`. The Unity Gateway [full provider list](https://docs.databricks.com/gcp/en/ai-gateway/model-provider-services.md) includes additional external model providers.

<a id="grant-access" />

## Grant access to models, MCP servers, and skills

Adding a resource to a coding agent configuration does not grant access to it. Grant developers the required Unity Catalog privileges before distributing the configuration.

| Resource                 | Required privilege                                                                                                 | Details                                                                                                            |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
| Models                   | `EXECUTE` on the model API.                                                                                        | [Govern model access](https://docs.databricks.com/gcp/en/ai-gateway/govern-model-services.md)                      |
| External model providers | `EXECUTE` on the provider.                                                                                         | [Govern external provider access](https://docs.databricks.com/gcp/en/ai-gateway/govern-model-provider-services.md) |
| MCP servers              | `EXECUTE` on the registered MCP server. Users also need any permissions required by its underlying tools and data. | [Govern MCP access](https://docs.databricks.com/gcp/en/ai-gateway/govern-mcp-service.md)                           |
| Skills                   | `READ VOLUME` to read and download the skill.                                                                      | [Govern skills](https://docs.databricks.com/gcp/en/ai-gateway/govern-skills.md)                                    |

Users also need `USE CATALOG` and `USE SCHEMA` on each resource's parent catalog and schema. Manage these grants for your team's group in Catalog Explorer.

Use Unity Catalog permissions to restrict access. Removing a resource from the configuration changes the shared setup; it does not revoke an existing grant.

## Next steps

* [Configure coding agents centrally](https://docs.databricks.com/gcp/en/ai-gateway/coding-agent-configure-govern.md)
* [Unity Gateway CLI reference](https://docs.databricks.com/gcp/en/ai-gateway/coding-agent-ug-cli.md)
