how to start syncthing without frontend

i dont need the frontend i comunicate with api using code , is there an easy way to just disable it

If by frontend you mean it starting the browser, you can uncheck that in the preferences. (Or set some startup flag / env var, --help will have the details.)