r/opencodeCLI • • 6d ago

/btw-cloud: a plugin that answers side questions on a different model than your session (great with local models)

If you run OpenCode on a local or expensive model, the built-in /btw is stuck using that same model. Your side question waits behind the current turn and then competes with it for the GPU, or burns up your monthly quota.

I made a TUI plugin that fixes this. /btw-cloud <question> forks the session, switches the fork to a model you choose (any provider you've connected, including OpenCode's free models), and runs the same tool-free session.generate call that /btw uses. Your main session and its KV cache aren't touched, and the fork is deleted when you close the popup.

- A popup in the same style as the built-in /btw (markdown, highlighted code, tables). Nothing gets added to your chat.

- f to ask follow-ups, o to turn the side thread into a real session on the side model

- /btw-cloud-model: a searchable picker of every model OpenCode can use

- /btw-cloud-settings: history attribution, plus stats under each answer (time, tok/s, context %, cost)

- The side model is told which model wrote the earlier replies, so it reviews your local model's work as an outsider instead of saying "the code I wrote"

Install:

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

Needs OpenCode 2.3+. MIT licensed, no telemetry, no API keys of its own. If you pick a cloud model, your session context goes to that provider.

Bug reports and feature ideas are welcome. https://github.com/exie1122/opencode-btw-cloud

6 Upvotes

1 comment sorted by

2

u/Glum-Atmosphere9248 6d ago

This will be quite expensive because the btw model needs to process all the input tokens without any kind of cache hit