Most OEMs do their best to push their own software and discourage root users and community developers from doing what they do best. Most of the time, this is accomplished simply by making rooting extremely difficult and patching root exploits when they pop up, with very few cases showing more extreme measures. OnePlus, on the other hand, is not only encouraging users to root and develop for their handsets, they're making it as easy as possible.
One of OnePlus' finest, Carlo of their ROM development team, has released an easy-to-follow YouTube video showing exactly how to do the deed and even provides the files you'll need for the OnePlus 2, at least. The video goes step-by-step from absolute scratch, even making it easy for users who have never rooted a phone before. By the end of it, your phone has an unlocked bootloader, custom recovery loaded and SuperSU installed to give apps root from within Android. In this state, of course, the phone is ready to give custom ROMs a go. Just remember to keep a backup.
The steps, in detail, are as follows. Keep in mind the files provided are for Windows. Mac and Linux users will need to get ADB going on their own before following along with the rest of the class. For starters, you'll have to enable developer options on your phone. In Settings, go to About Phone and click on Build Number repeatedly. Once you've unlocked the Developer Options menu, there are two options in there you'll want to enable; OEM Unlock and USB Debugging. With those in gear, use the package provided by OnePlus on the video to install the Android SDK. This enables you to use ADB, the Android Debug Bridge. Plug your phone into your computer via USB and open up a terminal window by typing "cmd" into the start menu. From there, you'll be guided on using ADB to back up your phone and push the remaining files to it, then reboot. Keep in mind, this step will totally wipe your phone. Once the files are all in place, you're guided through booting Android into recovery and flashing the zip file for SuperSU. Reboot, sign in and load up whatever you need from your backup and you'll be good to go! If you'd like to give it a spin, check out the embedded video below or hit up the source link.
<iframe width="560" height="315" src="https://www.youtube.com/embed/KZaajUEybNM" frameborder="0" allowfullscreen></iframe>