Coding agent configuration schema

This reference describes every Unity Gateway field in a coding agent configuration. For agent settings and the files that ug generates from them, see Configure Claude Code and Configure Codex. To publish and manage a configuration, see Configure coding agents.

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.

The following configuration shows representative fields for each supported agent. In your 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.

{
  "default_agent": "CODING_AGENT_CLAUDE_CODE",
  "enabled_agents": [
    {
      "agent": "CODING_AGENT_CLAUDE_CODE",
      "config": {
        "models": {
          "sources": [
            "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_config": {
          "claude_code": {
            "managed_settings": {
              "alwaysThinkingEnabled": false,
              "permissions": { "deny": ["Read(//**/.env)"] }
            }
          }
        }
      }
    },
    {
      "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_native_config": {
          "codex": {
            "requirements": {
              "computer_use": { "allow_locked_computer_use": false },
              "browser_use": { "allow_history_access": false }
            },
            "config": {
              "features": { "fast_mode": true },
              "agents": { "max_concurrent_threads_per_session": 4 }
            }
          }
        }
      }
    },
    {
      "agent": "CODING_AGENT_GITHUB_COPILOT",
      "config": {
        "models": {
          "sources": ["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"
      }
    ]
  }
}

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. Valid values: CODING_AGENT_CLAUDE_CODE, CODING_AGENT_CODEX, CODING_AGENT_GITHUB_COPILOT. An active 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[].
mcp_servers object MCP servers to make available to the enabled agents. See mcp_servers.
skills object Skills to make available to the enabled agents. See skills.
smart_defaults object Spend-based recommendations that switch the default agent and model as the budget is consumed. See smart_defaults.

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.

config

Each 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.
default_models map The default model or models the agent launches. See default_models.
smart_routing object Opts the agent into 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_config object Agent native managed configuration for supported agents, such as Claude Code and Codex. See agent_native_config.

models

Before you select a whole schema or a model provider service, review the publishing permissions warning. For examples, see 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 Azure Databricks model service, and both wildcard forms, set sources to:

{
  "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 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.

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 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.

Agent native managed configuration

agent_native_config is an object in an enabled_agents[].config entry. It contains one agent-specific variant, which must match the entry's agent value. A configuration whose variant doesn't match the entry's agent is rejected when you save it. Each variant contains JSON objects whose keys follow the agent's own settings format.

Field Type Description
claude_code.managed_settings object Claude Code managed settings for a CODING_AGENT_CLAUDE_CODE entry. See Configure Claude Code.
codex.requirements object Enforced requirements for Codex CLI and Codex in ChatGPT desktop in a CODING_AGENT_CODEX entry. See Configure Codex.
codex.config object Default settings for Codex CLI and Codex in ChatGPT desktop in a CODING_AGENT_CODEX entry. Developers can override these defaults.

The Claude Code guide and Codex guide list each agent's reserved and shared keys, along with any conditionally reserved or default keys. They explain how ug combines your settings with gateway and feature settings to generate each managed file. Use the Unity Gateway fields on this page for models, default models, request headers, MCP servers, and tracing. Keep managed settings free of secrets because users of the device can read the generated files.

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.

Set only one of the following fields:

Field Type Description
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.

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.

skills

Before you select a whole schema, review the publishing permissions warning.

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.

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. 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.