> ## Documentation Index
> Fetch the complete documentation index at: https://au-2a4a5dc8.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# openlabel check

> Judge every claim in a piece against the drug's label.

```sh theme={null}
openlabel check <file> --label <drug or set id> [options]
```

`<file>` is plain text, Markdown or HTML. HTML is reduced to its visible text, one line per block element, with scripts and styles dropped.

| Option | Description |
| - | - |
| `--label <drug>` | Required. A brand name such as `dupixent`, or a DailyMed set id |
| `--label-version <n>` | Judge against a past version of the label instead of the current one |
| `--rules <file>` | A YAML [rule pack](https://au-2a4a5dc8.mintlify.site/concepts/rule-packs.md). Defaults to `fda-core` |
| `--save` | Also write the report to `<file>.check.json` for [`watch`](https://au-2a4a5dc8.mintlify.site/cli/watch) |
| `--json` | Print the report as JSON |
| `--plain` | Print text even at a terminal, instead of the interactive screen |
| `--provider <name>` | Which model provider to use. See [Models and providers](https://au-2a4a5dc8.mintlify.site/cli/overview.md#models-and-providers) |
| `--model <id>` | Model id. Defaults to `claude-opus-5-5` on Anthropic; required elsewhere |

```sh theme={null}
openlabel check examples/dupixent-sms.txt --label dupixent --rules examples/pulse-sms.yaml
```

## Interactive screen

Run under [Bun](https://bun.sh) at a terminal and `check` opens a full-screen view built with OpenTUI: claims down the left as they are judged, the selected claim's reason and every label sentence it cites on the right, rule findings and a live summary at the bottom. Arrow keys or `j` and `k` move between claims, and `q` quits and prints the plain report so it stays in your scrollback.

```sh theme={null}
bun packages/cli/src/main.ts check examples/dupixent-email.html --label dupixent
```

Under Node, through `npx`, or when output goes to a file or another program, `check` prints the plain report with a live status line on stderr. `--json` and `--plain` always print text. Quitting before the check finishes exits 130.

## JSON output

```json theme={null}
{
  "piece": "Dr. Patel, DUPIXENT clears eczema fast and gets patients back to the life they love. …",
  "label": { "setId": "595f437d-2729-40bb-9c62-c8ece1f82780", "version": 60, "title": "Dupixent (dupilumab)" },
  "claims": [
    {
      "id": "c1",
      "text": "DUPIXENT clears eczema fast",
      "kind": "efficacy",
      "start": 11,
      "end": 38,
      "verdict": "overstated",
      "evidence": ["14.1:2.2", "14.1:35.2", "14.1:76.1"],
      "evidenceText": [
        {
          "id": "14.1:2.2",
          "section": "14.1",
          "paragraph": 2,
          "kind": "prose",
          "text": "Disease severity was defined by an Investigator's Global Assessment (IGA) score ≥3 …"
        }
      ],
      "reason": "The excerpts describe 16-week trials measuring the proportion of subjects reaching scale thresholds such as EASI-75/EASI-90 or IGA scores, which supports only partial improvement in some patients, not that DUPIXENT clears eczema or does so quickly."
    }
  ],
  "findings": [
    { "rule": "isi.present", "severity": "violation", "message": "No Important Safety Information on the piece." }
  ],
  "exitCode": 2
}
```

This is `examples/dupixent-sms.txt`, trimmed to one claim. `start` and `end` are character offsets into the piece, so an editor can highlight each claim. Exit codes are listed in [Verdicts and exit codes](https://au-2a4a5dc8.mintlify.site/concepts/verdicts.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.