AI Assistant
Mochi's AI works on what Mochi already knows: your tasks, the scripts behind them, and their run history. So it answers about your projects, not in generalities. It's optional, and you choose where requests go.
Set it up
Pick a provider in Settings → AI → Provider, or from a terminal:
| Option | Where requests go |
|---|---|
| Mochi's managed AI | Included with Pro, or with a credit pack. Nothing to configure. See AI credits |
| Your own key | OpenAI, Anthropic, Gemini, or any compatible endpoint |
| A local model | Ollama, on your machine. Nothing leaves it |
mochi ai config set provider mochi-gateway # managed
mochi ai config set provider anthropic --model <model-name> # your own key
mochi ai config set provider ollama --model <model-name> # local
mochi ai config test # check it worksKeys are stored in an encrypted vault, never in a plain config file. See AI providers for every option.
Don't want AI at all? Turn off Enable AI features in Settings → AI → Features, and every AI button, menu item and prompt disappears from the app.
Diagnose a failed run
Open a failed run and choose Diagnose. Mochi reads the output together with the task that produced it, and tells you the likely cause, the lines that show it, and what to try.

mochi ai diagnose <run-id>Explain a task
Before you run something unfamiliar, choose Explain on its page. You get what it does, step by step, what it needs, and anything to watch out for, such as a step that deletes files or deploys.
mochi ai explain deploy my-project/infra:prodDescribe and document
A task list is easier to use when every task says what it does. Mochi writes the missing one-line descriptions, one at a time with Generate description, or for a whole workspace:
mochi ai document my-project # preview
mochi ai document my-project --write # save themInsights
Analyze on the Insights page, or mochi ai insights, turns your run history into a short list of what to fix first: flaky tasks, slow ones, and failures that keep coming back.
Chat
Ask questions on the Home page, or with mochi ai chat. The agent can look through your workspaces, tasks and logs to answer, and, with your approval, run tasks and edit files.
You decide how far it can go, from look-ups only to running commands, and how often it asks, in Settings → AI → Agent. By default it asks before writing a file or running a command, and it never runs a task from a workspace you haven't trusted without asking.
Next
- Coding agents: connect Claude Code, Codex or Cursor
- Plans & Licensing: what managed AI costs