Their SDK shows a really basic example that you could build out pretty easily, ironically about Anthropic:
https://opencode.ai/docs/sdk/#structured-output
You can stand up an OpenAI compatible API layer in front of it and just feed the requests back and forth. Adds a little delay, but not much.