Most local systems use an OpenAI compatible API. This requires an API key to be set, even if it is not used. Just set it to "not-needed" or whatever you fancy.