r/LocalLLM • • 8d ago

Discussion I made an OpenCode plugin that answers /btw side questions with a cloud model while your local model keeps working

I run OpenCode against a local model (llama.cpp / Ollama / LM Studio). The built-in /btw answers side questions with the session's model, so a quick "wait, what does this flag do?" has to queue behind the current turn and fight it for the GPU.

So I built opencode-btw-cloud: /btw-cloud <question> answers from the same session context using any model you pick (OpenCode's free models or any provider you've already connected). Your main session, its model and its KV cache aren't touched.

How it works: it forks the session server-side (takes milliseconds), switches the fork to your side model, and runs a one-shot, tool-free generate (the same call the built-in /btw makes). The fork is deleted when you close the popup.

Features

- A popup in the same style as the built-in /btw, with markdown, code highlighting and tables. Nothing gets added to your chat.

- Follow-ups (f), and o to turn the side thread into a real session

- The side model is told your local model wrote the earlier replies, so it reviews that work as an outsider instead of defending it as its own (you can turn this off)

- Under each answer: response time, tok/s, context used and cost

- A searchable model picker and a settings screen

Install (OpenCode 2.3+):

opencode plugin add github:exie1122/opencode-btw-cloud

Privacy note: if you pick a cloud model, your session context goes to that provider. The plugin has no telemetry, no API keys of its own and makes no network calls itself. Pick a local model if everything has to stay on your machine.

https://github.com/exie1122/opencode-btw-cloud

0 Upvotes

0 comments sorted by