Using OpenCode with local LLMs via LM Studio

OpenCode is an open source, terminal-based AI coding assistant – think Claude Code or Cursor but you can hook it up to your own models. By default it uses cloud providers, but the interesting bit is pairing it with LM Studio to run everything locally.