ug CLI reference
Use the Unity Gateway CLI (ug) to configure and launch coding agents. For a walkthrough, see the coding agent quickstart.
Install
Install ug, then check the installed version:
uv tool install git+https://github.com/databricks/unity-gateway
ug --version
Requires uv and Python 3.12 or later.
Configure
Command | What it does |
|---|---|
| Sign in to a Databricks workspace and configure your agents using your admin's settings or guided setup. |
| Configure your agents to use the workspace at the specified URL. |
| Authenticate with a personal access token instead of OAuth. First run |
Launch an agent
These commands open the agent in your terminal, ready for your usual coding workflow.
Command | What it does |
|---|---|
| Launch the agent selected by your admin's published workspace configuration. |
| Launch Claude Code through Unity Gateway. |
| Launch Codex through Unity Gateway. |
| Launch Gemini CLI through Unity Gateway. |
| Launch OpenCode through Unity Gateway. |
| Launch GitHub Copilot CLI through Unity Gateway. |
| Launch Pi through Unity Gateway. |
| Launch Cursor Agent. Model requests use your Cursor account. |
For Claude Code or Codex, add --refresh to refresh workspace authentication, models, and configuration before launching. You can also pass agent-specific arguments to the launch command.
MCP servers
Command | What it does |
|---|---|
| Select MCP servers and add their connections to your configured agents. |
| Show configured MCP servers and the status reported by each agent. |
| Select MCP connections to remove from your agents. The servers remain in the workspace. |
Skills
Command | What it does |
|---|---|
| Select published skills and download their files into local agent skill directories. |
| Connect skills from selected Unity Catalog schemas through MCP, without downloading files. |
| Show the skills configured for your agents and how they were added. |
| Select downloaded skill folders to delete from your computer. Published skills remain unchanged. |
| Remove selected schemas from the skill registry's MCP connection. Downloaded skill files are kept. |
For named servers and skills, schema selection, and project downloads, see Add tools and skills.
Manage your setup
Command | What it does |
|---|---|
| Show your current spending, total budget, and percentage used. |
| Check your local installation and agent configuration, and offer fixes for problems found. |
| Install the latest Unity Gateway CLI version from GitHub. |
| Print your admin's saved coding agent configuration as JSON for reuse. |
| Restore backed-up agent configuration files and clear |
Command help
Use --help to see the options for your installed version:
Command | What it does |
|---|---|
| Show available commands and general options. |
| Show workspace and agent setup options. |
| Show options for downloading skills or connecting them through MCP. |