Skip to main content

Use agent skills with AI Runtime

The databricks-ai-runtime agent skill gives AI coding agents, such as Claude Code, Cursor, and Codex, instructions for working with AI Runtime through the databricks air Databricks CLI commands. With the skill installed, you can ask your agent to write a workload YAML, submit a GPU training run, and check its progress.

Requirements​

Install the skill​

Run the following command:

Bash
databricks aitools install --skills-only --skills databricks-ai-runtime

Follow the prompts to choose your AI agent and installation scope. In a non-interactive session, such as when an AI agent runs the command, there are no prompts and the skill is installed globally for every detected agent. To choose the agent and scope, pass them as flags. For example, the following command installs the skill for Claude Code in the current project:

Bash
databricks aitools install --skills-only --skills databricks-ai-runtime --agents claude-code --scope project

For installation options, see aitools command group.

What the skill covers​

Capability

What the agent can do

Write workloads

Turn a request into a workload YAML with compute, environment, code source, and the launch command for your framework, such as torchrun, Accelerate, or DeepSpeed.

Configure runs

Set environment variables, secrets, hyperparameters, retries, and permissions.

Submit runs

Validate the config with --dry-run, then submit with databricks air run and an idempotency key.

Check and monitor runs

Get status with databricks air get and databricks air list, and get or stream logs with databricks air logs. The workspace UI doesn't support automated browser control, so the agent monitors runs through the Databricks CLI and gives you the MLflow run link to open for metric and GPU charts.

Cancel runs

Cancel one, several, or all of your active runs with databricks air cancel.

Debug failures

Pull logs from a failed run and surface the error.

Use custom Docker images

Build and push a custom image, then reference it in the workload.

Capability

What the agent can do

Write workloads

Turn a request into a workload YAML with compute, environment, code source, and the launch command for your framework, such as torchrun, Accelerate, or DeepSpeed.

Configure runs

Set environment variables, secrets, hyperparameters, retries, and permissions.

Submit runs

Validate the config with --dry-run, then submit with databricks air run and an idempotency key.

Check and monitor runs

Get status with databricks air get and databricks air list, and get or stream logs with databricks air logs. The workspace UI doesn't support automated browser control, so the agent monitors runs through the Databricks CLI and gives you the MLflow run link to open for metric and GPU charts.

Cancel runs

Cancel one, several, or all of your active runs with databricks air cancel.

Debug failures

Pull logs from a failed run and surface the error.

Use custom Docker images

Build and push a custom image, then reference it in the workload.

Additional resources​