---
url: https://docs.mochiexec.io/reference/cli/mochi_ai.md
description: Describe, explain, and diagnose executables with AI
---

# mochi ai

Describe, explain, and diagnose executables with AI

## Synopsis

Uses AI to describe, explain, and diagnose your executables, recommend fixes from run history, and answer questions about your workspaces. Works with Mochi's gateway, your own provider key, or a local model; choose with `mochi ai config`.

## Options

| Flag | Type | Description |
|------|------|-------------|
| `-h, --help` |  | help for ai |

## Options inherited from parent commands

| Flag | Type | Description |
|------|------|-------------|
| `-L, --log-level` | `string` | Log verbosity level (debug, info, fatal) (default "info") |
| `--sync` |  | Sync flow cache and workspaces |

## See also

* [mochi](mochi.md) — Run and organize your development tasks
* [mochi ai chat](mochi_ai_chat.md) — Ask AI about your workspaces, executables, and runs
* [mochi ai config](mochi_ai_config.md) — Choose and configure your AI provider
* [mochi ai describe](mochi_ai_describe.md) — Suggest a one-line description for an executable
* [mochi ai diagnose](mochi_ai_diagnose.md) — Diagnose a failed run and suggest fixes
* [mochi ai document](mochi_ai_document.md) — Generate descriptions for a workspace's undescribed executables
* [mochi ai explain](mochi_ai_explain.md) — Explain in plain English what an executable does
* [mochi ai insights](mochi_ai_insights.md) — Recommend what to fix, from run history
* [mochi ai usage](mochi_ai_usage.md) — Show your Mochi gateway usage and credits
