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

# atlanai doctor

> Check local paths, installation, credentials, runtime, and daemon state.

`doctor` is the first diagnostic command to run. It works offline and does not
contact the Gateway.

## Usage

```text theme={null}
atlanai doctor [flags]
```

The command accepts no positional arguments.

## Options

| Option             | Type        | Default | Description                                                                                                                                   |
| ------------------ | ----------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| `--json`           | string list | none    | Select `command`, `config`, `crashReports`, `daemon`, `gateway`, `installLog`, `runtime`, `state`, `telemetry`, `tokenSource`, or `versions`. |
| `--jq`, `-q`       | string      | none    | Filter JSON output with jq.                                                                                                                   |
| `--template`, `-t` | string      | none    | Render JSON data with a Go template.                                                                                                          |

## Examples

```bash theme={null}
atlanai doctor
atlanai doctor --json command,gateway,tokenSource,daemon
```

## Output and behavior

* Reports when another `atlanai` on `PATH` shadows this installation.
* Shows local config, state, runtime, version, and install-log paths.
* Identifies the configured Gateway and credential source without printing a
  token.
* Reports telemetry, crash-report, and daemon state.
* Notes a legacy installation without reading or changing it.

## Related

* [Diagnose the CLI](/cli/diagnostics)
* [`atlanai version`](/cli/reference/version)
* [`atlanai auth`](/cli/reference/auth)
* [`atlanai logs`](/cli/reference/logs)
