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

# linktrail doctor

> Check the local install and configured cloud connection.

```bash theme={null}
linktrail doctor
```

## Behavior and output

Checks ledger, optional receipts, state and verifier. With a cloud origin it probes /healthz without credentials, then tests the token against a watch read. Saves probe results to state when applicable. Prints checks and fixes; repairs no ledger data.

## Arguments

No flags accepted.

## Exit status

0 when checks pass or are skipped; 1 when a diagnostic check fails; 2 on usage/configuration failure.

Read [configuration and file ownership](/reference/local/configuration) before automating this command. Read [local file contracts](/reference/local/artifacts) for artifact fields. Browse the [local command index](/reference/local/index) for related commands.

<Note>Reference follows the current development CLI and HTTP contracts. Hosted availability depends on the selected environment. See [capability status](/capability-status).</Note>
