---
title: Coding agent configuration schema
description: Reference for every field in a coding agent configuration, including agents, models, MCP servers, skills, and spend-based smart defaults.
canonical_url: https://docs.databricks.com/gcp/en/ai-gateway/coding-agent-config-schema
---

# Coding agent configuration schema

This reference describes every field in a coding agent configuration. To publish and manage a configuration, see [Configure coding agents](https://docs.databricks.com/gcp/en/ai-gateway/coding-agent-configure-govern.md).

<a id="publishing-permissions" />

> [!WARNING]
>
> Selecting a whole Unity Catalog schema with a `catalog.schema.*` entry in `mcp_servers.sources`, or with `mcp_servers.unity_catalog_location` or `skills.unity_catalog_location`, includes resources added to that schema later. Anyone with write access to the selected schema can deliver tools or skill instructions to every developer's agent using this configuration. Restrict schema write access to trusted publishers.
>
> Model selection with `models.sources` entries such as `catalog.schema.*`, or with `models.unity_catalog_location`, can include newly created model services. Anyone who can create model services in the selected schema can add models. Developers still need `EXECUTE` on a model service to use it. Schema- or catalog-level grants can include newly created services.
>
> `models.model_provider_service` and `models.sources` entries such as `catalog.schema.provider.*` include models offered by the selected provider. Developers need `EXECUTE` on that provider service. Anyone who can modify a selected model service or provider service can affect inference routing and agent behavior. Restrict who can create services, and who can modify services and providers, to trusted publishers and administrators.
>
> Exact-name entries don't automatically include newly published resources. Publishing a model doesn't replace a model set in [`default_models`](https://docs.databricks.com/gcp/en/ai-gateway/coding-agent-config-schema.md#default-models).

The following configuration uses every supported field. In a real configuration, set only the fields your team needs, and set exactly one model source per agent. Field names match the keys in the JSON editor and the API.

```json
{
  "default_agent": "CODING_AGENT_CLAUDE_CODE",
  "enabled_agents": [
    {
      "agent": "CODING_AGENT_CLAUDE_CODE",
      "config": {
        "models": {
          "model_services": [
            "system.ai.claude-opus-5-5",
            "system.ai.claude-sonnet-5-5",
            "system.ai.claude-haiku-5-5",
            "system.ai.claude-fable-5"
          ]
        },
        "default_models": {
          "default_model": "system.ai.claude-sonnet-5-5",
          "default_opus_model": "system.ai.claude-opus-5-5",
          "default_sonnet_model": "system.ai.claude-sonnet-5-5",
          "default_haiku_model": "system.ai.claude-haiku-5-5",
          "default_fable_model": "system.ai.claude-fable-5"
        },
        "smart_routing": { "enabled": true },
        "http_headers": { "x-team": "platform" },
        "tracing": { "enabled": true },
        "agent_native_settings": {
          "deniedMcpServers": [{ "serverName": "untrusted-server" }]
        }
      }
    },
    {
      "agent": "CODING_AGENT_CODEX",
      "config": {
        "models": {
          "unity_catalog_location": "main.default"
        },
        "default_models": {
          "default_model": "main.default.gpt-6-sol"
        },
        "smart_routing": { "enabled": false },
        "http_headers": {},
        "tracing": { "enabled": false }
      }
    },
    {
      "agent": "CODING_AGENT_GITHUB_COPILOT",
      "config": {
        "models": {
          "model_services": ["system.ai.claude-sonnet-5-5", "system.ai.gpt-5-5"]
        },
        "default_models": {
          "default_model": "system.ai.gpt-5-5"
        },
        "tracing": { "enabled": true },
        "vscode_integration": { "enabled": true }
      }
    }
  ],
  "mcp_servers": {
    "sources": ["system.ai.*", "main.developer_tools.github"]
  },
  "skills": {
    "names": ["main.team_skills.code_review", "main.team_skills.test_writer"]
  },
  "smart_defaults": {
    "budget_id": "123e4567-e89b-12d3-a456-426614174000",
    "tiers": [
      {
        "spending_percentage": 0.8,
        "recommended_agent": "CODING_AGENT_CODEX",
        "recommended_model": "main.default.glm-5-3"
      }
    ]
  }
}
```

## <a id="top-level-fields" />Top-level fields

| Field            | Type             | Description                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| ---------------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `default_agent`  | string (enum)    | Agent launched on bare `ug` when no smart-default tier is active. Must appear in [`enabled_agents`](https://docs.databricks.com/gcp/en/ai-gateway/coding-agent-config-schema.md#enabled-agents). Valid values: `CODING_AGENT_CLAUDE_CODE`, `CODING_AGENT_CODEX`, `CODING_AGENT_GITHUB_COPILOT`. An active [`smart_defaults`](https://docs.databricks.com/gcp/en/ai-gateway/coding-agent-config-schema.md#smart-defaults) tier overrides it. |
| `enabled_agents` | array of objects | The agents available through `ug` and their per-agent configuration. Each agent can appear at most once. See [`enabled_agents[]`](https://docs.databricks.com/gcp/en/ai-gateway/coding-agent-config-schema.md#enabled-agents).                                                                                                                                                                                                              |
| `mcp_servers`    | object           | MCP servers to make available to the enabled agents. See [`mcp_servers`](https://docs.databricks.com/gcp/en/ai-gateway/coding-agent-config-schema.md#mcp-servers).                                                                                                                                                                                                                                                                          |
| `skills`         | object           | Skills to make available to the enabled agents. See [`skills`](https://docs.databricks.com/gcp/en/ai-gateway/coding-agent-config-schema.md#skills).                                                                                                                                                                                                                                                                                         |
| `smart_defaults` | object           | Spend-based recommendations that switch the default agent and model as the budget is consumed. See [`smart_defaults`](https://docs.databricks.com/gcp/en/ai-gateway/coding-agent-config-schema.md#smart-defaults).                                                                                                                                                                                                                          |

## <a id="enabled-agents" />enabled\_agents

| Field    | Type          | Description                                                                                                                                 |
| -------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| `agent`  | string (enum) | The coding agent this entry configures. Valid values: `CODING_AGENT_CLAUDE_CODE`, `CODING_AGENT_CODEX`, `CODING_AGENT_GITHUB_COPILOT`.      |
| `config` | object        | Per-agent configuration for this agent. See [`config`](https://docs.databricks.com/gcp/en/ai-gateway/coding-agent-config-schema.md#config). |

## <a id="config" />config

Each [`enabled_agents`](https://docs.databricks.com/gcp/en/ai-gateway/coding-agent-config-schema.md#enabled-agents) entry has a `config` object that sets the per-agent model source, default models, and Unity Gateway features.

| Field                   | Type   | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| ----------------------- | ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `models`                | object | The agent's model source. Set exactly one source. See [`models`](https://docs.databricks.com/gcp/en/ai-gateway/coding-agent-config-schema.md#model-source).                                                                                                                                                                                                                                                                                                                         |
| `default_models`        | map    | The default model or models the agent launches. See [`default_models`](https://docs.databricks.com/gcp/en/ai-gateway/coding-agent-config-schema.md#default-models).                                                                                                                                                                                                                                                                                                                 |
| `smart_routing`         | object | Opts the agent into [Smart Routing](https://docs.databricks.com/gcp/en/ai-gateway/coding-agent-costs.md#understand-smart-routing) for subagent tasks, where supported. Takes a single `enabled` boolean. Not supported for GitHub Copilot.                                                                                                                                                                                                                                          |
| `http_headers`          | map    | Headers attached to every gateway request from this agent, as key-value string pairs. Header values are visible to every developer in the workspace, so don't put secrets in them. Header names must be valid HTTP field names, and header values must not contain control characters. Names reserved for gateway authentication, identity, or routing are rejected, including `Authorization`, `Proxy-Authorization`, `Cookie`, `Host`, and any name starting with `X-Forwarded-`. |
| `tracing`               | object | Per-agent client-side tracing for Claude Code, Codex, and GitHub Copilot. Takes a single `enabled` boolean.                                                                                                                                                                                                                                                                                                                                                                         |
| `vscode_integration`    | object | GitHub Copilot only, and required for it. Takes a single `enabled` boolean. `true` also sets up Copilot in Visual Studio Code when a developer runs `ug configure`. `false` sets up only Copilot CLI and removes an earlier Visual Studio Code setup. Other agents can't set this field.                                                                                                                                                                                            |
| `agent_native_settings` | object | The agent's own settings, which `ug` writes as-is into the agent's machine-wide managed settings file. Supported for some agents only. See [`agent_native_settings`](https://docs.databricks.com/gcp/en/ai-gateway/coding-agent-config-schema.md#agent-native-settings).                                                                                                                                                                                                            |

### <a id="model-source" />models

Before you select a whole schema or a model provider service, review the [publishing permissions warning](https://docs.databricks.com/gcp/en/ai-gateway/coding-agent-config-schema.md#publishing-permissions). For examples, 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).

`models` can contain one of the following:

| Field                    | Type             | Description                                                                                                                                                                                                                                        |
| ------------------------ | ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `model_services`         | array of strings | Static list of full Unity Catalog model service names to make available.                                                                                                                                                                           |
| `model_provider_service` | string           | Full Unity Catalog name of a model provider service. All of its models become available.                                                                                                                                                           |
| `unity_catalog_location` | string           | A catalog and schema (`catalog.schema`). All model services there that a developer has `EXECUTE` on become available.                                                                                                                              |
| `sources`                | array of strings | List of individual models and wildcards to make available. Accepts at most 100 entries, which must be non-blank and unique. Cannot be combined with the other model source fields. See below for the entry shapes, wildcard rules, and an example. |

Each `sources` entry is a model service name, a model behind a model provider service, or a wildcard:

* `catalog.schema.model-service`: One model service, such as `system.ai.claude-haiku-5-5`.
* `catalog.schema.model-provider-service.model`: One model behind a model provider service, such as `main.default.anthropic_prod.claude-sonnet-5-5`. The model ID can contain dots, such as `main.default.openai_prod.gpt-4.1`.
* `catalog.schema.*`: Every model service in the schema. The schema must contain at least one model service.
* `catalog.schema.model-provider-service.*`: Every model behind that model provider service. The provider service must exist.

A wildcard must be the entire last segment. A partial pattern such as `system.ai.claude-*` is rejected. Catalog, schema, and service names match case-insensitively. Provider model IDs match case-sensitively. `sources` cannot be combined with `model_services`, `model_provider_service`, or `unity_catalog_location`.

To mix a model behind a model provider service, a Databricks model service, and both wildcard forms, set `sources` to:

```json
{
  "models": {
    "sources": [
      "main.default.anthropic_prod.claude-sonnet-5-5",
      "system.ai.claude-haiku-5-5",
      "main.default.*",
      "main.default.openai_prod.*"
    ]
  }
}
```

With [Smart Routing](https://docs.databricks.com/gcp/en/ai-gateway/coding-agent-costs.md#understand-smart-routing) on, the list can include external models behind a model provider service, and the router selects among every model the list includes. When two entries resolve to the same model, the router uses only the first entry in list order.

### <a id="default-models" />default\_models

`default_models` is a map of default-model keys to model names. Model names are model IDs when the source is a model provider service, or full Unity Catalog model service names otherwise. With a static `model_services` list, every default must also appear in that list. With a `sources` list, every default must be a specific model that a `sources` entry includes, either listed directly or matched by a wildcard. A default can't be a wildcard.

* `default_model`: The overall default for the agent. Required unless [Smart Routing](https://docs.databricks.com/gcp/en/ai-gateway/coding-agent-costs.md#understand-smart-routing) is on for the agent. GitHub Copilot doesn't support Smart Routing, so a GitHub Copilot entry always requires it.
* Per-family keys (`default_opus_model`, `default_sonnet_model`, `default_haiku_model`, and `default_fable_model`): Optional. Claude Code only.

| Key                    | Applies to       | Description                      |
| ---------------------- | ---------------- | -------------------------------- |
| `default_model`        | All agents       | Overall default model to launch. |
| `default_opus_model`   | Claude Code only | Default for the Opus family.     |
| `default_sonnet_model` | Claude Code only | Default for the Sonnet family.   |
| `default_haiku_model`  | Claude Code only | Default for the Haiku family.    |
| `default_fable_model`  | Claude Code only | Default for the Fable family.    |

### <a id="agent-native-settings" />agent\_native\_settings

`agent_native_settings` passes an agent's own managed settings to developers' machines. When a developer runs `ug configure` in an interactive terminal, `ug` writes each key into the agent's machine-wide managed settings file, which takes precedence over the developer's own settings for that agent. Keys and values use the agent's own format, so see the agent's documentation for what each setting does.

Only the agents and keys in the following table are accepted. A configuration that sets `agent_native_settings` for another agent, or uses another key, is rejected when you save it.

| Agent       | Managed settings file                                                                                                     | Accepted keys                                                                                                                                          | Reference                                                                            |
| ----------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
| Claude Code | `/etc/claude-code/managed-settings.json` (Linux), `/Library/Application Support/ClaudeCode/managed-settings.json` (macOS) | `allowManagedMcpServersOnly`, `allowedMcpServers`, `deniedMcpServers`, `enableAllProjectMcpServers`, `enabledMcpjsonServers`, `disabledMcpjsonServers` | [Claude Code managed MCP configuration](https://code.claude.com/docs/en/managed-mcp) |

If you remove a key, or a developer switches to a workspace whose configuration doesn't set it, `ug` removes it from the managed settings file the next time it runs, unless someone edited the value by hand after `ug` wrote it. To remove the settings that `ug` wrote, run `ug revert`.

If you set Claude Code's `allowedMcpServers`, `ug` adds the MCP servers it registers from this configuration to the list, so they stay available. To block one of them, remove it from [`mcp_servers`](https://docs.databricks.com/gcp/en/ai-gateway/coding-agent-config-schema.md#mcp-servers).

## <a id="mcp-servers" />mcp\_servers

`mcp_servers` selects the MCP servers that `ug configure` registers for every developer in the workspace. Before you select a whole schema, review the [publishing permissions warning](https://docs.databricks.com/gcp/en/ai-gateway/coding-agent-config-schema.md#publishing-permissions).

Set only one of the following fields:

| Field                                                                                            | Type             | Description                                                                                                                                                                                                                                                                         |
| ------------------------------------------------------------------------------------------------ | ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [`sources`](https://docs.databricks.com/gcp/en/ai-gateway/coding-agent-config-schema.md#sources) | array of strings | MCP servers to include. Each entry is either the full Unity Catalog name of one MCP server (`catalog.schema.name`) or a whole schema (`catalog.schema.*`), which includes every MCP server in that schema. Entries can span schemas, for example `["system.ai.*", "main.tools.*"]`. |
| `names`                                                                                          | array of strings | Exact Unity Catalog resource names. Use `sources` instead, which also accepts exact names.                                                                                                                                                                                          |
| `unity_catalog_location`                                                                         | string           | Deprecated. A catalog and schema (`catalog.schema`). Includes every resource under it. Use `sources` with a `catalog.schema.*` entry instead.                                                                                                                                       |

### <a id="sources" />sources

A `sources` list follows these rules:

* It can hold at most 100 entries, with no duplicates or empty entries.
* `*` is allowed only as the whole last segment, as in `catalog.schema.*`.
* Saving the configuration fails if an exact entry names an MCP server that doesn't exist, or if a schema entry names a schema that doesn't exist or has no MCP servers.

If a schema in `sources` is later removed, `ug configure` skips it with a warning and still registers the other sources.

> [!NOTE]
>
> Developers must run `ug upgrade` to get a version of `ug` that supports `sources`. Older versions keep the configuration they last applied.

## <a id="skills" />skills

Before you select a whole schema, review the [publishing permissions warning](https://docs.databricks.com/gcp/en/ai-gateway/coding-agent-config-schema.md#publishing-permissions).

`skills` can contain one of the following fields:

| Field                    | Type             | Description                                                                |
| ------------------------ | ---------------- | -------------------------------------------------------------------------- |
| `names`                  | array of strings | Exact Unity Catalog resource names.                                        |
| `unity_catalog_location` | string           | A catalog and schema (`catalog.schema`). Includes every resource under it. |

## <a id="smart-defaults" />smart\_defaults

| Field       | Type             | Description                                                       |
| ----------- | ---------------- | ----------------------------------------------------------------- |
| `budget_id` | string (UUID)    | The budget's `budget_configuration_id`.                           |
| `tiers`     | array of objects | Spend tiers. The highest tier whose threshold is reached applies. |

### tiers

Each entry in `tiers` can contain the following:

| Field                 | Type          | Description                                                                                                                                                                                                                                                   |
| --------------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `spending_percentage` | number        | Fraction of the budget (0–1) at which this tier activates. For example, `0.8` is 80%.                                                                                                                                                                         |
| `recommended_agent`   | string (enum) | Agent to switch the default to. Must appear in [`enabled_agents`](https://docs.databricks.com/gcp/en/ai-gateway/coding-agent-config-schema.md#enabled-agents). Valid values: `CODING_AGENT_CLAUDE_CODE`, `CODING_AGENT_CODEX`, `CODING_AGENT_GITHUB_COPILOT`. |
| `recommended_model`   | string        | Model to switch the default to while this tier is active.                                                                                                                                                                                                     |

The API also returns read-only or server-managed fields that you don't set, including `name`, `workspace_id`, `create_time`, `created_user_id`, `update_time`, `updated_user_id`, and `retrieved_time`.
