https://openrouter.ai/docs/guides/routing/provider-selection
I stopped using opencode because it has some issues with caching, so I suppose it doesn't do this
Using this interesting framework called Cordis I've recent discovered.
Reply on news.ycombinator.com