There are other CLI coding agents like Aider (https://aider.chat/) that will let you point at any model. The problem is that local models are dramatically worse than these big hosted models — I have not seen anyone claim they are good enough for these kind of tools. See https://aider.chat/docs/leaderboards/