Skip to main content

What is Genie Code CLI and when should I use it?

Summary

  • Genie Code CLI is a Databricks coding agent that runs locally in your terminal and is tuned for data and AI work on Databricks. It is in Beta, and Databricks says its capabilities, commands and interfaces change frequently.
  • It reads and edits local files, runs commands and uses the Databricks CLI, including databricks genie ask, to discover and query your Unity Catalog data. It runs under your own identity, so it can only do what your Databricks permissions allow.
  • Use it when the work starts on your machine: local files, scripts and prototypes that also need Databricks data, pipelines, models or apps. For the fully featured experience, use Genie Code in the workspace.
  • If you've already set up another coding agent with Databricks agent skills and managed MCP servers, the docs point you to running that agent through the ug CLI instead.
  • Model access is provided and governed through Unity Gateway, so there's no separate model subscription. Usage is billed through Unity Gateway, not under Genie pricing.

What is Genie Code CLI and when should I use it?

Genie Code CLI is a Databricks coding agent that runs in your local terminal, preconfigured to understand Databricks. Use it when your work lives on your machine (scripts, CSV files, an app prototype) and you want an agent that can also reach your Unity Catalog data, pipelines, models and apps without extra setup. It's in Beta, so treat it as a terminal companion to Genie Code in the workspace, not a replacement for it.

What is Genie Code CLI?

The Databricks docs describe it as an agent that "works like other terminal coding agents, but comes preconfigured to understand Databricks and to work naturally with your data, pipelines, models, and apps." Running on your machine, it reads and edits local files and runs commands. To work with data, it calls the Databricks CLI, including the databricks genie commands such as databricks genie ask.
Three design choices define it:

  • Preconfigured for Databricks. It ships with Databricks agent skills and instructions tuned for data and AI work. You don't install or configure them yourself.
  • Your identity, your permissions. Workspace operations run under your Databricks identity, so Unity Catalog permissions apply. Local operations, such as editing files and running commands on your machine, aren't governed by Databricks.
  • Models through Unity Gateway. Model access is provided and governed through Unity Gateway. You don't bring a model subscription, and Databricks manages which model it uses.

What can it do?

The docs show tasks that mix local and Databricks work in one conversation:

Task Example prompt in the style of the Databricks docs
Ingest and govern "Clean up these monthly sales CSVs, load them into Unity Catalog, and show me revenue by region over time."
Train and serve a model "Run this training script on Databricks and put the model behind a serving endpoint."
Build and ship an app "Build a local app prototype for my customers table and deploy it as a Databricks App."

When should you use Genie Code CLI?

Pick by where the work happens and what you've already set up:

Situation Best fit Why
Local files, scripts and prototypes that touch Databricks Genie Code CLI Terminal-native, edits local files, reaches Databricks through the CLI
Notebooks, the SQL editor, the pipeline editor, AI/BI dashboards or MLflow Genie Code in the workspace The docs call it "the richer, fully featured experience"
Another coding agent already configured with Databricks agent skills and managed MCP servers such as Genie One That agent, run through the ug CLI The docs recommend this path when it's already in place
You want Databricks skills and Genie data access without configuring an agent Genie Code CLI It also adds Databricks tuning to the agent harness
Work inside an SSH tunnel session on Databricks compute Not Genie Code CLI SSH tunnel sessions aren't supported, so run it on your local machine

How do you set it up?

You need a workspace in a Unity Gateway supported region, Unity Catalog enabled for that workspace and the Databricks CLI version 1.0.0 or above, installed separately. Then:

  1. Install Genie Code CLI with the command for your operating system, then confirm with genie --version.
  2. Change into your project directory and run genie.
  3. Select a Databricks CLI profile, or authenticate. Genie Code CLI uses this profile to reach models through Unity Gateway.
  4. Confirm that you trust the directory's contents, then start prompting.

To extend it, add your own skills in ~/.genie/skills/ or share team skills in .agents/skills/ in your repository. Connect MCP servers with genie mcp add, put project conventions in an AGENTS.md file at the project root, and run /import to bring over configuration from another coding agent. Resume a past conversation with genie resume, and update with genie update.

What to know during the Beta

  • It's a separate experience. It has its own tools, skills and instructions, shares none of them with Genie Code in the workspace and doesn't yet include every workspace capability.
  • Skills load only from local folders. To use a workspace skill, such as one in .assistant/skills/, download it locally first.
  • Billing runs through Unity Gateway. Usage isn't billed under Genie pricing, and Unity Gateway budgets apply.
  • You can't pick the model. Databricks manages the selection, which can change over time.

FAQs

Is Genie Code CLI generally available?

No. It's in Beta, and Databricks says its capabilities, commands and interfaces change frequently. Check the docs before you standardize a team workflow on it.

Can I use Genie Code CLI in my IDE?

Yes. Start it from the integrated terminal of any IDE. It works with the files in the directory where you start it, on macOS, Linux and Windows.

Can it work across more than one workspace?

Yes. It uses the profile you select at startup to reach models through Unity Gateway, and the docs say it can still use other Databricks CLI profiles to work with other workspaces or outside Databricks entirely.

The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.