Thanks for the interest! I use aisuite (cf link) to manage what LLMs to use. You should be able to switch from one provider to an other quite easily (even hugging-face if you want). I don't know if aisuite supports local LLMs tho, might be a good thing to check.
aisuite : https://github.com/andrewyng/aisuite