---
title: "oz0-node doctor"
description: "Usage and flags for oz0-node doctor."
canonical_url: "https://docs.oz0.ai/reference/cli/oz0-node/doctor"
---
# oz0-node doctor

> Usage and flags for oz0-node doctor.

For: Operators and developers looking up a command.

Check this machine as a node, from the data directory: that it has joined, and that its certificate is not about to end; that the edge's Temporal port (7233) and API port (7443) take connections from here, and answer TLS with a certificate of the cluster's CA; this machine's clock against the edge's; the data directory's free disk space (a node over 95% full takes no work); the sandbox tier it can run (tier 1 for harness sessions and outside-started jobs); and each model server in models.yaml, on loopback only.

It does not need the node to be running. Each check that is not ok says how to fix it. Exits 0 when every check is ok, 2 when the worst is a warning, 1 when one failed; --json prints the checks for scripts.

## Usage

```bash
oz0-node doctor [flags]
```

## Flags

<table>
<thead>
  <tr>
    <th>
      Flag
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        --json
      </code>
    </td>
    
    <td>
      bool
    </td>
    
    <td>
      
    </td>
    
    <td>
      print the checks as JSON
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --models
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        &lt;data-dir>/models.yaml
      </code>
    </td>
    
    <td>
      the model servers file to check
    </td>
  </tr>
</tbody>
</table>

## Inherited flags

<table>
<thead>
  <tr>
    <th>
      Flag
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        --data-dir
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        ~/.local/share/orchestrator-zero-node
      </code>
    </td>
    
    <td>
      where the node keeps its identity, uv, Python, runtimes and state
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --log-level
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        info
      </code>
    </td>
    
    <td>
      log level: debug, info, warn or error
    </td>
  </tr>
</tbody>
</table>

See [all `oz0-node` commands](https://docs.oz0.ai/reference/cli/oz0-node) and the [global flags](https://docs.oz0.ai/reference/cli/oz0-node#global-flags).


## Sitemap

See the full [sitemap](https://docs.oz0.ai/sitemap.md) for all pages.
