Opencode has anthropic oauth built in, and with this plugin you can get chatgpt oauth too https://github.com/numman-ali/opencode-openai-codex-auth
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: https://opencode.ai/docs/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.
Login to reply