What part of a TOS is ridiculous? Claude Code is obviously a loss leader to them, but developer momentum / market share is important to them and they consider it worth it.
What part of “OpenCode broke the TOS of something well defined” makes you think it’s all Anthropic’s fault?
It's probably not a "loss-leader" so much as "somewhat lower margin". Their bizdev guys are doubtless happy to make a switch between lower-margin, higher-multiple recurring revenue versus higher-margin, lower-multiple pay-as-you-go API billing. Corporate customers with contracts doubtless aren't paying like that for the API either. This is not uncommon.
Perhaps in the generic sense that most things a business does are to build up market share that's true. But Costco isn't selling hot dogs for $1.50 in an effort to capture a large share of the hot dog market.
Restricting users from using third party tools is commonly viewed as poor behavior. I'm not inclined to rehash that debate here, although I might respond to specific (contextually relevant) counterpoints if you feel like making them.
What part of “OpenCode broke the TOS of something well defined” makes you think it’s all Anthropic’s fault?