Cross-platform browser based configuration tool for Bafang BBSxx e-bike motors, runs on Mac, Linux or Windows. It requires a browser with support for Web Serial API, and should work on any recent version of Chrome, Opera or Edge.

Run online

Click here to start the tool.

Install & run locally

Download or clone the repository and open BafangWebCfg.html in your browser.


USE AT YOUR OWN RISK! Bad settings can fry your motor controller.

If you find any bugs, please report them here.

Thanks to Stefan Penov ( and Philipp Sandhaus ( for their prior work on deciphering the original Bafang Config Tool source code and communication protocol.