I wonder if this can work with OpenCode (Claude Code fork which allows for other model providers: https://github.com/sst/opencode)?

I really don't like being tied to a particular provider or model, switching models has been really helpful to get past blocks and save money (especially with Deepseek!).

And, of course, I need to use Github Copilot's Open AI-compatile API at work...

OpenCode isn't a fork of Claude Code. It's descended from an independent open-source project that was called "TermAI": https://news.ycombinator.com/item?id=44483338

Note that there are several projects on GitHub that let you proxy an openai compatible server and set it as ANTHROPIC_BASE_URL

Got some good success with GLM-4.5-Air running locally recently. Still mainly using claude code max though.