I found Gemini CLI to be totally useless too. Last week I tried Claude Code with GLM4.5 (via z.ai API), though, and it was genuinely on par with Sonnet.
Thank you for the recommendation. I've been testing this on an open source project and it's indeed good. Not as good as Sonnet 4, but good enough. And the pricing is very reasonable. Don't know if I'd trust it to work on private code, but for public code it's a great option.