---
title: Python CLI for AI Runtime (Deprecated)
description: The AI Runtime CLI (`air`) submits and manages distributed GPU training workloads on Databricks serverless GPU compute from your local machine, using YAML job configs and MLflow.
canonical_url: https://docs.databricks.com/aws/en/machine-learning/ai-runtime/connecting/cli/legacy-cli/
---

# Python CLI for AI Runtime (Deprecated)

> [!IMPORTANT]
>
> This documentation has been retired and might not be updated.
>
> The Python-based `air` CLI, installed with the `databricks-air` package, is now deprecated and is no longer actively maintained.
>
> Use the Databricks CLI for new workloads. See [Use the Databricks CLI with AI Runtime](https://docs.databricks.com/aws/en/machine-learning/ai-runtime/connecting/cli/index.md).

The `air` command-line interface submits and manages distributed training workloads on [AI Runtime](https://docs.databricks.com/aws/en/machine-learning/ai-runtime/index.md), the on-demand serverless GPU compute platform. The CLI uses YAML-based job configuration, integrates with MLflow, and supports workspace-based and git-based code workflows.

`air` CLI is compliant with the same compliance standards as AI Runtime. For the supported standards and exceptions, see [compliance security profile](https://docs.databricks.com/aws/en/security/privacy/security-profile.md).

## When to use the CLI

Use the AI Runtime CLI when you want to:

* Submit GPU training workloads from your laptop and code editor without opening a notebook.
* Define training jobs declaratively in YAML so they can be checked into source control.
* Run long-running training jobs or multi-node distributed training — workloads that need to outlive an interactive session or span more than one node.

For the in-notebook Python API (`@distributed` and `@ray_launch`), see [Distributed training in notebooks](https://docs.databricks.com/aws/en/machine-learning/ai-runtime/connecting/distributed-training.md) instead.

To work interactively on a single GPU node over SSH — from your terminal or IDE, rather than submitting a workload — use `databricks ssh connect`. See [Connect to Databricks using an SSH tunnel](https://docs.databricks.com/aws/en/dev-tools/ssh-tunnel.md).
