A growing body of research has reported on the potential opioid-sparing effects of cannabis and cannabinoids, but less is known about specific mechanisms. The present research examines cannabis-related posts in two large online communities on the Reddit platform ("subreddits") to compare mentions of naturalistic cannabis use by persons self-identifying as actively using opioids versus persons in recovery. We extracted all posts mentioning cannabis-related keywords (e.g., "weed", "cannabis", "marijuana") from December 2015 through August 2019 from an opioid use subreddit and an opioid recovery subreddit. To investigate how cannabis is discussed at-scale, we identified and compared the most frequent phrases in cannabis-related posts in each subreddit using term-frequency-inverse document frequency (TF-IDF) weighting. To contextualize these findings, we also conducted a qualitative content analysis of 200 random posts (100 from each subreddit). Cannabis-related posts were about twice as prevalent in the recovery subreddit (n = 908; 5.4% of 16,791 posts) than in the active opioid use subreddit (n = 4,224; 2.6% of 159,994 posts, p < .001). The most frequent phrases from the recovery subreddit referred to time without using opioids and the possibility of using cannabis as a "treatment." The most frequent phrases from the opioid subreddit referred to concurrent use of cannabis and opioids. The most common motivations for using cannabis were to manage opioid withdrawal symptoms in the recovery subreddit, often in conjunction with anti-anxiety and GI-distress "comfort meds," and to enhance the "high" when used in combination with opioids in the opioid subreddit. Despite limitations in generalizability from pseudonymous online posts, this examination of reports of naturalistic cannabis use in relation to opioid use identified withdrawal symptom management as a common motivation. Future research is warranted with more structured assessments that examines the role of cannabis and cannabinoids in addressing both somatic and affective symptoms of opioid withdrawal.