No border runs for OA. O for marriage, yes can be retired with that (or even work) but different requirements from OA, including being legally registered marriage in TH
You must first secure a job offer with an employer which is eligible to offer positions to foreigners. Then you will need to get a Non-B (business) or Non-O (family) visa and following that a Work Permit based on that.
The ask:thailand community, consisting of multiple Q/A groups with over 100,000 members, powers this platform. It is not an official government resource. Our members actively contribute to this resource, and while we strive for accuracy, we cannot guarantee its complete reliability. Assistance to travelers is provided as a community service.