---
url: https://docs.mochiexec.io/reference/cli/mochi_ai_config_test.md
description: Check that an AI provider works
---

# mochi ai config test

Check that an AI provider works

## Synopsis

Sends one tiny request through a provider — the active one unless you name another — to check its key, address, and model work together.

```shell
mochi ai config test [provider] [flags]
```

## Options

| Flag | Type | Description |
|------|------|-------------|
| `-h, --help` |  | help for test |
| `-o, --output` | `string` | Output format: text or json (default "text") |

## 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 ai config](mochi_ai_config.md) — Choose and configure your AI provider
