Skip to main content

Can I use Genie Code outside the workspace?

Summary

  • Yes. Genie Code CLI, in Beta, is a Databricks coding agent that runs outside the workspace, in your local terminal or the integrated terminal of any IDE, on macOS, Linux and Windows.
  • Genie Code CLI is a separate experience, not the workspace agent moved to your laptop. It has its own tools, skills and instructions, and it doesn't yet include every capability of Genie Code in the workspace.
  • Outside the workspace, it reads and edits local files, runs commands and reaches Databricks through the Databricks CLI, including databricks genie ask, under your own identity and Unity Catalog permissions.
  • Workspace skills and instructions don't follow you automatically. Download skills into a local skills folder, and put project instructions in an AGENTS.md file.
  • If your team already uses another coding agent, Databricks agent skills, managed MCP servers such as Genie One and the ug CLI bring Databricks context to that agent instead.

Can I use Genie Code outside the workspace?

Yes, through Genie Code CLI, a coding agent that runs locally in your terminal and is tuned for data and AI work on Databricks. It's in Beta, and it's a separate experience from Genie Code in the workspace, with its own tools, skills and instructions. For notebooks, dashboards and the full feature set, Genie Code still lives in the workspace. For local files, scripts and prototypes, the CLI brings a Databricks-aware agent to your machine.

Where Genie Code runs

Surface Where it runs What it works on
Genie Code in the workspace Notebooks, the SQL editor, the pipeline editor, AI/BI dashboards, MLflow and the full page command center Workspace assets and Unity Catalog tables, columns and lineage
Genie Code CLI (Beta) Your local terminal, or the integrated terminal of any IDE, on macOS, Linux or Windows Local files and commands, plus Databricks data and assets through the Databricks CLI

The Databricks docs frame the split directly: use Genie Code CLI "as a terminal-native companion when you are working locally with files, scripts, and prototypes," and use Genie Code in the workspace "for the richer, fully featured experience."

What Genie Code CLI can do outside the workspace

Running on your machine, Genie Code CLI can read and edit local files, run commands and reach into Databricks on your behalf. It uses the Databricks CLI, including databricks genie ask, to discover data and answer questions about it. From one terminal conversation it can load local files into Unity Catalog, extend a pipeline, run a training script on Databricks and deploy a local app prototype as a Databricks App.
Governance follows your identity. Workspace operations run under your Databricks identity, so Unity Catalog permissions apply. Local operations, such as editing files and running commands, aren't governed by Databricks, so review what you let it run on your machine. Model access is provided and governed through Unity Gateway, so you don't need a separate model subscription.

What doesn't carry over from the workspace

Plan for these differences:

Area In the workspace In Genie Code CLI
Skills Workspace skills in Workspace/.assistant/skills/ and user skills in your user folder Built-in Databricks agent skills, plus local folders such as ~/.genie/skills/ or .agents/skills/ in your repository
Instructions User and workspace custom instructions, plus AGENTS.md files in the workspace An AGENTS.md file at your local project root
MCP servers MCP servers your workspace administrators make available, plus built-in connectors Any MCP server you add with genie mcp add
Billing Genie pricing and Genie budgets Billed like model use through Unity Gateway, with Unity Gateway budgets
Capabilities The full feature set Not yet every workspace capability

Genie Code CLI loads skills only from local folders. It doesn't read skills or instructions from your workspace or from Unity Catalog, so download any workspace skill you rely on into a local skills folder.

How to start

You need a workspace in a Unity Gateway supported region, Unity Catalog enabled and the Databricks CLI version 1.0.0 or above. Install Genie Code CLI with the command for your operating system, change into your project directory and run genie. Select a Databricks CLI profile or authenticate, confirm that you trust the directory, and start prompting. To give the agent governed data tools, connect the Genie One MCP server with genie mcp add, passing its Unity Gateway URL and an environment variable that holds a Databricks access token.
Two limits matter for remote setups. Genie Code CLI doesn't support SSH tunnel sessions, so run it on your local machine. And if an MCP token expires, MCP calls fail until you exit, set a fresh token and run genie again.

Other ways to bring Databricks into tools outside the workspace

Genie Code CLI isn't the only route. If your team has standardized on another coding agent, Databricks publishes agent skills you can install with databricks aitools install and managed MCP servers such as Genie One. The ug CLI launches supported agents through Unity Gateway. The Genie Code CLI docs suggest that path when you've already configured those skills and MCP servers, and Genie Code CLI when you haven't or want the extra Databricks tuning.

FAQs

Is Genie Code CLI the same agent as Genie Code in the workspace?

No. It's a separate experience built for local, terminal-based work. It doesn't share tools, skills or instructions with workspace Genie Code and doesn't yet include all workspace capabilities.

Can I use my workspace skills outside the workspace?

Yes, by copying them. Genie Code CLI loads skills only from local folders, so download a workspace skill, such as one in .assistant/skills/, into ~/.genie/skills/ or your repository's .agents/skills/ folder.

Does it respect Unity Catalog permissions?

Yes, for workspace operations, which run under your Databricks identity. Local file edits and commands on your machine aren't governed by Databricks.

Is it generally available?

No. Genie Code CLI is in Beta, and Databricks says 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.