Use open-source models

Use Codex CLI, Claude Code, GitHub Copilot, and ChatGPT desktop with supported open-source models through Unity Gateway. Choosing an open-source model can reduce your coding agent costs.

For Codex CLI, Claude Code, and GitHub Copilot, install the Unity Gateway CLI (ug). Then select a model with /model.

Ask your admin to add a compatible open-source model if none is listed in your agent.

Use Codex CLI

  1. Launch Codex CLI:

    ug codex
    
  2. Enter /model and select an available open-source model, such as GLM 5.3 (system.ai.glm-5-3).

  3. Confirm the reasoning level when prompted.

Your next prompt in the main session uses the selected model.

Codex model picker after entering /model, with GLM 5.3 highlighted

For connection details, see Connect Codex.

Use Claude Code

  1. Launch Claude Code:

    ug claude
    
  2. Enter /model and select an available open-source model, such as GLM 5.3 (system.ai.glm-5-3).

Your next prompt in the main session uses the selected model. To switch models during the session, enter /model again.

Claude Code model picker listing GLM 5.3 and Kimi K3 alongside Claude models

For connection details, see Connect Claude Code.

Use GitHub Copilot

  1. Launch GitHub Copilot CLI:

    ug copilot
    
  2. Enter /model and select an available open-source model, such as GLM 5.3 (system.ai.glm-5-3).

ug makes GLM, Kimi, and DeepSeek open-source models available in Copilot. In GitHub Copilot in Visual Studio Code, select the model from the Databricks group in the Copilot Chat model picker.

For connection details, see Connect GitHub Copilot.

Use ChatGPT desktop

Follow the ChatGPT desktop setup guide, then start a Codex conversation and choose an available open-source model from the app's model picker.

ChatGPT desktop model picker listing system.ai.glm-5-3 and system.ai.kimi-k3

Available models and features vary by workspace, permissions, and agent. See Detailed list of models supported by Databricks Foundation Model APIs and Select models or use Smart Routing.