You start the game with 2 already on the ship.
You then get BD-1 during an early main mission.
Another is Nightsister Merrin, after defeating Malicos on Dathomir. Pretty sure this is unmissable.
Travel to Bogano, go down the stairs below with the sphere puzzle behind a cage. Destroy the wall and you’ll find a Bogling who will join.