JetBrainer here. I use OpenCode and Pi connected to local models and to stuff like hosted DeepSeek all the time. Once you have your model config set up in the agent, it works as expected.
thanks for the reply, last time I tried this in goland if you blocked the IDE from networking via little snitch/opensnitch, it did not seem to work or keep working, there seemed to be some sort of call home to enable the AI plugin / keep AI working. If this has changed I will retry and see.