I do the same thing on a MacBook Pro with an M4 Max and 64GB. I had problems until the most recent LM Studio update (0.4.11+1), tool calling didn't work correctly.
Now both codex and opencode seem to work.
Which do you prefer? And what lmstudio api works best for these tools?
Which do you prefer? And what lmstudio api works best for these tools?