We prove that the recently introduced spin Benjamin--Ono equation admits a Lax pair, and we deduce a family of conservation laws which allow to prove global wellposedness in all Sobolev spaces Hk for every integer k≥2. We also infer an additional family of matrix valued conservation laws, of which the previous family are just the traces.