Opencode has anthropic oauth built in, and with this plugin you can get chatgpt oauth too
Really nice. Can switch between any anthropic or chatgpt model and subscription covers it all.
I've also been playing around with their typescript sdk: I'm going to start automating some of my workflows with it. For complex tasks I've started having sonnet 4.5 and codex high both implement simultaneously, then when they're done i launch another pair of sonnet 4.5 and codex high to review the 2 implementations and debate which is better and how to proceed. But I do the copy-pasting manually still. Could completely automate this entire workflow with opencode sdk.
GitHub
GitHub - numman-ali/opencode-openai-codex-auth: OAuth authentication plugin for personal coding assistance with ChatGPT Plus/Pro subscriptions - uses OpenAI's official authentication method
OAuth authentication plugin for personal coding assistance with ChatGPT Plus/Pro subscriptions - uses OpenAI's official authentication method - num...
OpenCode
SDK
Type-safe JS client for opencode server.






