Alcohol use disorder (AUD) is often under-documented in patients with cirrhosis, which delays treatment. Expert chart review of clinical notes can identify under-documented AUD, but is not scalable. We propose MedDx, an open-weight, training-free, and engine-agnostic language model, to phenotype AUD using clinical notes in patients with cirrhosis. We benchmarked MedDx on a 485-patient study cohort sampled from the 14,406-patient Indiana Cirrhosis Registry, using a chart-review-based reference as ground truth. MedDx agreed with the ground truth at three-class Cohen's {kappa} 0.92, against 0.67 for the AUD diagnosis code. It agreed with one hepatologist at 0.85 on all 485 charts and with a second at 0.82 on 186 charts, on which the two hepatologists agreed at 0.87. Weighted to the registry, its sensitivity was 98% and specificity 94%, against 63% and 96% for the AUD diagnosis code, and 61% of an estimated 6,223 patients with AUD had no AUD diagnosis by the first cirrhosis diagnosis. MedDx is openly available as an off-the-shelf, equitable, and auditable tool to identify AUD.