Anthropic stance has not been consistent. There are even now still articles by them telling users about unattended use like in CI which would now be considered TOS
Their stance has just been clear for a year now, even if they've changed their mind in comparison to the introduction of the sub, which significantly predates Claude code
What's likely is that light users are paying for heavy users and API pricing is heavily inflated.
Their documentation, cli, SDKs, TOS, their public stance - have major contradictions and are subject to so much interpretation that you can't really figure out what's allowed and what's not.
Opencode allowed? No
Custom agentic harnesses allowed? Yes
Opencode is a custom agentic harness? Yes, but not allowed
Which agentic harness is allowed? Can I use a custom agentic harness I develop - say, tmux that runs claude code? We don't know, but you'll know if we ban you
That's really all there is to it. It has nothing to do with open or closed source.