In the case of key fob programming for Nissan vehicles, including the Leaf, the process typically involves connecting a specialized programming tool to the vehicle's onboard diagnostic (OBDII) port. This tool communicates with the vehicle's computer system to add or program the key fob.