Local MQTT client for HA

Hi there. I use local mqtt mosquitto broker for ha. I made settings for mqtt client for remote mqtt broker (flespi). How can I use a client for remote and local brokers at the same time? How can I configure this?