---
title: Get started with coding agents
description: Run your first coding agent through Unity Gateway with the Unity Gateway CLI, then confirm that governed traffic appears in usage.
canonical_url: https://docs.databricks.com/aws/en/ai-gateway/coding-agent-quickstart
---

# Get started with coding agents

Unity Gateway connects coding agents such as Claude Code, Codex, and OpenCode to models from multiple providers, MCP tools, and shared skills. Choose a model for the task, give your agent access to company data, and use your team's workflows.

You can connect in two ways:

* **Use `ug` (recommended):** Install the Unity Gateway CLI, sign in, and launch your preferred agent. `ug` handles the agent-specific connection settings and applies your organization's configuration, so you can start coding without editing config files or writing setup scripts.
* **Set up the connection yourself:** Enter the gateway endpoint and authentication settings in your agent. See [Supported coding and work agents](https://docs.databricks.com/aws/en/ai-gateway/coding-agent-supported-agents.md) to choose your agent and open its guide.

Use Codex CLI, Claude Code, GitHub Copilot, and ChatGPT desktop with [supported open-source models](https://docs.databricks.com/aws/en/ai-gateway/coding-agent-open-source-models.md) through Unity Gateway.

This guide walks you through using `ug`.

> [!NOTE]
>
> If your admin has already installed `ug` and configured your device, go straight to launching your agent.

## <a id="prerequisites" />Prerequisites

You need:

* Your Databricks workspace URL and access to the models you want to use. Ask your admin if you don't have these.
* Python 3.12 or later and [`uv`](https://docs.astral.sh/uv/getting-started/installation/).
* A workspace entitlement: Workspace access or Consumer access. See [Manage entitlements](https://docs.databricks.com/aws/en/security/auth/entitlements.md).

## Set up and run your agent

### Install ug

In your terminal, run:

```bash
uv tool install git+https://github.com/databricks/unity-gateway
```

To check the installation, run:

```bash
ug --version
```

You should see the installed version number.

### Configure your agents

In an interactive terminal, run:

```bash
ug configure
```

Select your workspace, sign in, and choose the agents to set up. For Claude and Codex, `ug configure` sets up the CLI and the corresponding desktop app, [Claude desktop](https://docs.databricks.com/aws/en/ai-gateway/coding-agent-claude-desktop.md) or [ChatGPT desktop](https://docs.databricks.com/aws/en/ai-gateway/coding-agent-chatgpt-desktop.md), if it's installed. To set up specific agents without the picker, list them with `--agents`, for example `ug configure --agents claude,codex`. See the [ug CLI reference](https://docs.databricks.com/aws/en/ai-gateway/coding-agent-ug-cli.md#configure).

### Launch your agent

Open a terminal in your project directory. Run the command for the agent you want to use:

#### Claude Code

```bash
ug claude
```

#### Codex

```bash
ug codex
```

#### Gemini CLI

```bash
ug gemini
```

#### OpenCode

```bash
ug opencode
```

#### GitHub Copilot CLI

```bash
ug copilot
```

#### Pi

```bash
ug pi
```

`ug` handles the connection to Unity Gateway, then opens your chosen agent with the same interface and workflow you already know.

To use [Claude desktop](https://docs.databricks.com/aws/en/ai-gateway/coding-agent-claude-desktop.md) or [ChatGPT desktop](https://docs.databricks.com/aws/en/ai-gateway/coding-agent-chatgpt-desktop.md), open or restart the app after `ug configure` finishes.

To switch models during a session, use `/model` to choose from those available through your organization.

### Add tools and skills

In your terminal, run:

```bash
ug mcp add
ug skills add
```

Choose the MCP servers and skills you want to add from those you have access to. MCP tools connect your agent to data and services; skills provide instructions for specific tasks.

Then launch or restart your agent to use what you added:

| Command inside your agent | What you can do                                             |
| ------------------------- | ----------------------------------------------------------- |
| `/mcp`                    | View the MCP servers you added and their connection status. |
| `/skills`                 | Browse the skills you added and select one for your task.   |

Slash commands vary by agent. Check its help menu for model, MCP, and skill commands. See [Add tools and skills](https://docs.databricks.com/aws/en/ai-gateway/coding-agent-mcp-skills.md) for more setup options.

### Check your usage

Check your Unity Gateway budget usage from your terminal:

```bash
ug usage
```

The output shows your personal and shared spend limits and the percentage used for each. It displays up to five limits, ordered from highest to lowest percentage used. Run `ug usage --all` to see all applicable limits.

For more information, see the [ug CLI reference](https://docs.databricks.com/aws/en/ai-gateway/coding-agent-ug-cli.md#check-your-usage).

## Next steps

* [Connect Claude desktop](https://docs.databricks.com/aws/en/ai-gateway/coding-agent-claude-desktop.md)
* [Connect ChatGPT desktop](https://docs.databricks.com/aws/en/ai-gateway/coding-agent-chatgpt-desktop.md)
* [ug CLI reference](https://docs.databricks.com/aws/en/ai-gateway/coding-agent-ug-cli.md)
* [Supported coding and work agents](https://docs.databricks.com/aws/en/ai-gateway/coding-agent-supported-agents.md)
