What's the difference between Genie Code in the UI and CLI?
Summary
- Genie Code in the UI is the fully featured agent inside the Databricks workspace. It works in notebooks, the SQL editor, the pipeline editor, AI/BI dashboards and MLflow, directly with Unity Catalog tables, columns and lineage.
- Genie Code CLI is a separate, terminal-native agent that runs on your machine. It edits local files, runs commands and reaches Databricks through the Databricks CLI. It's in Beta and doesn't yet include every workspace capability.
- The two don't share tools, skills or instructions. Workspace skills live in
.assistant/skills/folders; the CLI loads skills only from local folders such as~/.genie/skills/. - They're billed differently. Workspace Genie Code follows Genie pricing and Genie budgets. Genie Code CLI is billed like model use through Unity Gateway, and Unity Gateway budgets apply.
- Use the CLI as a companion for local files, scripts and prototypes. Use the workspace for the richer, fully featured experience.
What's the difference between Genie Code in the UI and CLI?
Genie Code in the UI is the AI coding and data agent built into the Databricks workspace. Genie Code CLI is a separate agent that runs in your local terminal. The workspace version works where your notebooks, pipelines and dashboards live. The CLI works where your local files and scripts live, and reaches Databricks through the Databricks CLI. They don't share tools, skills or instructions, they're billed differently, and the CLI is in Beta without every workspace capability yet.
Genie Code in the UI and Genie Code CLI, side by side
| Dimension | Genie Code in the UI (workspace) | Genie Code CLI |
|---|---|---|
| Where it runs | Notebooks, the SQL editor, the pipeline editor, AI/BI dashboards, MLflow and a full page command center | Your local terminal, or any IDE's integrated terminal, on macOS, Linux or Windows |
| What it works on | Workspace assets and Unity Catalog tables, columns and lineage | Local files and commands, plus Databricks data and assets through the Databricks CLI and databricks genie ask |
| Skills | Workspace skills in Workspace/.assistant/skills/ and user skills in /Users/{username}/.assistant/skills/ |
Built-in Databricks agent skills, plus ~/.genie/skills/ and team skills in .agents/skills/ in your repository |
| Instructions | User and workspace custom instructions, plus AGENTS.md files found in the workspace |
An AGENTS.md file at your local project root |
| MCP and connectors | Workspace MCP servers you have permission to use, plus built-in connectors | Any MCP server you add with genie mcp add, including servers not hosted on Databricks |
| Requirements | Partner-powered AI features enabled for the account and workspace, and a supported region | A Unity Gateway supported region, Unity Catalog enabled and Databricks CLI version 1.0.0 or above |
| Model | Without partner-powered AI features, it falls back to a Databricks-hosted model without agentic capabilities | Provided through Unity Gateway; Databricks manages the selection, which can differ from other Genie surfaces |
| Billing | Genie pricing, with Genie budgets | Billed like model use through Unity Gateway, with Unity Gateway budgets |
| Governance | Unity Catalog permissions | Unity Catalog permissions for workspace operations; local file and command operations aren't governed by Databricks |
| Stage | Available in the workspace | Beta |
How the workspace experience works
Genie Code in the workspace is an autonomous agent: it plans, retrieves context, runs code, uses cell outputs to improve results and fixes errors. By default, an AI classifier approves the tool actions that carry out your request and is designed to block actions that go beyond it; you can switch to approving each action yourself. Chats persist as you move between pages, and the full page command center lets you run several chats in parallel with notebooks and files open as tabs. It's governed by your Unity Catalog permissions, so it only reaches data you can access.
How the CLI experience works
Genie Code CLI starts when you run genie in a project directory and pick a Databricks CLI profile. It "works like other terminal coding agents, but comes preconfigured to understand Databricks." It reads and edits files on your machine, runs commands, and uses the Databricks CLI to discover and query data. In one conversation it can load local files into Unity Catalog, extend a pipeline, run a training script on Databricks or deploy a local app prototype as a Databricks App. Conversations start fresh each time; genie resume picks up a previous one.
When to use which
| If you're | Use | Why |
|---|---|---|
| Exploring data or building in notebooks, pipelines or dashboards | Genie Code in the UI | It works directly with workspace assets and offers the full feature set |
| Working in a local repository, on scripts or a prototype | Genie Code CLI | It edits local files and runs local commands |
| Relying on shared workspace skills and instructions | Genie Code in the UI | The CLI doesn't read skills or instructions from your workspace |
| Working from your IDE without opening a browser | Genie Code CLI | It runs in any IDE's integrated terminal |
| Working in an SSH tunnel session | Genie Code CLI, run on your local machine | The CLI doesn't support SSH tunnel sessions, so don't launch it inside one |
You can use both, each for the work it fits.
Moving skills between them
Because the CLI loads skills only from local folders, a skill written for the workspace won't appear in the terminal automatically. Download it from .assistant/skills/ into ~/.genie/skills/, or into .agents/skills/ to share it with your team through the repository. Both follow the open Agent Skills format with a SKILL.md file.
FAQs
Is Genie Code CLI just the workspace agent in a terminal?
No. The docs call it "a separate experience built for local, terminal-based work," with its own tools, skills and instructions.
Do workspace skills work in the CLI?
Not automatically. The CLI loads skills only from local folders, so download a workspace skill into a local skills folder first.
Do they share a budget?
No. Workspace Genie Code is billed under Genie pricing. Genie Code CLI isn't billed under Genie usage or affected by Genie budgets; Unity Gateway budgets control its spend.
Will the CLI get every workspace feature?
The docs say it "does not yet include all of the capabilities available in the workspace UI." It's in Beta, and its capabilities, commands and interfaces change frequently.
The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.