> ## Documentation Index
> Fetch the complete documentation index at: https://docs.modaic.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Modaic CLI

> Use the Modaic CLI to run predictions, manage models, and monitor training jobs from your terminal.

## Set up

Install the CLI with Python 3.11 or later.

```bash uv theme={null}
uv tool install modaic
```

```bash pip theme={null}
python -m pip install modaic
```

Then sign in to your workspace.

```bash theme={null}
modaic login
```

Match the code in your terminal with the code in your browser, then confirm the sign-in. If you’re working on a remote machine, use `modaic login --headless` to open the sign-in link on another device. For CI, set `MODAIC_API_KEY` to a [workspace API key](https://docs.modaic.dev/docs/api/authentication.md).

## Run a prediction

Save the following request as `request.json`. It asks the base model whether a support ticket needs immediate attention.

```json theme={null}
{
  "model": "mo-latest",
  "state": "Checkout is unavailable.",
  "questions": {
    "urgent": {
      "type": "noul",
      "instructions": "Does this require immediate attention?"
    }
  }
}
```

Run the request and read the yes/no answer in `answers.urgent.noul`.

```bash theme={null}
modaic --json predictions create --request request.json
```

For commands to manage models, upload datasets, and monitor jobs, see the [CLI reference](https://docs.modaic.dev/docs/cli.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.