Adding smartphone app–based contingency management to medication for opioid use disorder was associated with reduced opioid use and improved treatment retention.