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

# momentic doctor

> Check the Momentic CLI installation and project for problems.

Runs a read-only health check of your Momentic setup and prints a
section-by-section report: CLI version, authentication, connectivity to the
Momentic API (including TLS interception, WebSocket support, clock skew, and
proxy settings), environment, installed browsers (including missing OS libraries
needed to launch them), and your project configuration (deprecated options,
legacy file format, agent versions that have a newer release available, tests
that have neither a base URL nor an environment, and browsers referenced by
tests that are not installed).

Problems are listed at the end with a suggested fix for each, and the command
exits non-zero when any are found. Warnings do not affect the exit code.

```bash theme={null}
npx momentic doctor
```

## Options

<ParamField path="--api-key <key>" type="string">
  Momentic API key. Defaults to `MOMENTIC_API_KEY` or the key saved by
  [`momentic login`](/cli-reference/momentic/overview).
</ParamField>

<ParamField path="-c, --config <config>" type="string">
  Path to the Momentic configuration file. Defaults to `momentic.config.yaml` in
  the current directory.
</ParamField>

<ParamField path="--fix" type="boolean">
  Remove deprecated options from the project configuration file.
</ParamField>

<ParamField path="--json" type="boolean">
  Output the report as JSON. Useful for attaching to support tickets.
</ParamField>

## Examples

Check the installation and project:

```bash theme={null}
npx momentic doctor
```

Remove deprecated options from the project configuration:

```bash theme={null}
npx momentic doctor --fix
```

Generate a machine-readable report for a support ticket:

```bash theme={null}
npx momentic doctor --json
```
