You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Insufficient balance or no resource package. Please recharge. #12671
This issue might be a duplicate of existing issues. Please check:
GLM-4.7-free not working #12249: GLM-4.7-free not working - Same "Insufficient balance or no resource package" error when using GLM-4.7-free despite having account balance
I'm getting this too on a Z.ai paid Pro plan, no quotas hit.
Reacted by Alberto Valverde, Hans van de Bruggen, Echooff3, Denis Donici, dojo, Didier, ZrifBSofiane, Tiago Ribeiro, Yura V, Andrew Kravchuk and 5 more
Yeah, had the same issue but turns out I had connected to the wrong provider. There's 'Z.AI' and 'Z.AI Coding Plan'. Make sure to use the correct provider for opencode.
The reason GLM 4.7 flash works is because it's free.
Reacted by Dylan Gallagher, Alberto Valverde, Raahel Baig, Leandro, Taishi Naka, tamjidahmed10x, Tiago Santos, Nikolay Hristev, Rahmat Eka Marup, Seçkin Özülkü and 8 more
Yeah, had the same issue but turns out I had connected to the wrong provider. There's 'Z.AI' and 'Z.AI Coding Plan'. Make sure to use the correct provider for opencode.
The reason GLM 4.7 flash works is because it's free.
Thanks, switching provider to coding plan fixed it for me
Reacted by Raahel Baig, tamjidahmed10x, Didier and Hector Triana
Yeah, had the same issue but turns out I had connected to the wrong provider. There's 'Z.AI' and 'Z.AI Coding Plan'. Make sure to use the correct provider for opencode.
The reason GLM 4.7 flash works is because it's free.
Yeah, had the same issue but turns out I had connected to the wrong provider. There's 'Z.AI' and 'Z.AI Coding Plan'. Make sure to use the correct provider for opencode.
The reason GLM 4.7 flash works is because it's free.
Same error. I've set to Z.AI Coding Plan but still get Error: Insufficient balance or no resource package. Please recharge.. I have opencode running on another machine using the same plan and it works fine.
Activity
github-actions commentedon Feb 8, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if your specific case differs from these existing reports.
colinmollenhour commentedon Feb 13, 2026
I'm getting this too on a Z.ai paid Pro plan, no quotas hit.
effortprogrammer commentedon Feb 13, 2026
@colinmollenhour Same issue with z.ai coding max plan cc @thdxr
albertov commentedon Feb 13, 2026
I'm seeing it to with a Pro plan with GLM 5 and GLM 4.7. GLM 4.7 flash works fine though
blah-mad commentedon Feb 14, 2026
same2same
andrewzorin75 commentedon Feb 14, 2026
If you have Z.AI Coding plan subscription, as I see, in Providers better to choose Z.AI Coding Plan (not just Z.AI)
DevMozgus commentedon Feb 14, 2026
Yeah, had the same issue but turns out I had connected to the wrong provider. There's 'Z.AI' and 'Z.AI Coding Plan'. Make sure to use the correct provider for opencode.
The reason GLM 4.7 flash works is because it's free.
jEstevezRod commentedon Feb 16, 2026
Same problem, not working for me
albertov commentedon Feb 16, 2026
Thanks, switching provider to coding plan fixed it for me
gevera commentedon Feb 22, 2026
Same here. Very annoying. I'm thinking of closing the subscription
tamjidahmed10x commentedon Feb 26, 2026
This is the solution guysss. pls mark it solve.
perezjoseph commentedon Feb 27, 2026
For z.ai I had to use the helper script to configure opencode it works
https://docs.z.ai/devpack/tool/claude?gad_source=1&gad_campaignid=23443009862&gbraid=0AAAABCK8KLxMK5gVWdOcTBbN2bs_zoP2d&gclid=CjwKCAiAnoXNBhAZEiwAnItcGy8SPXEa7nu5Pw18HaZnrLX_oA67ZimLM8C6YMmlrXkSPPMVrjWhPBoCLUoQAvD_BwE#automated-coding-tool-helper
colinmollenhour commentedon Feb 27, 2026
Maybe rename Z.AI to "Z.AI (Metered)" to better disambiguate?
misterdojo777 commentedon Mar 2, 2026
same problem...
malemalice commentedon Mar 3, 2026
solved using this way
muhx commentedon Apr 20, 2026
Make sure if your API Key from Z.AI Coding Plan, you connect to Z.AI Coding Plan as the provider
github-actions commentedon Jul 3, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.
magick93 commentedon Oct 16, 2026
Same error. I've set to
Z.AI Coding Planbut still getError: Insufficient balance or no resource package. Please recharge.. I have opencode running on another machine using the same plan and it works fine.LaBlazer commentedon Oct 16, 2026
I think they have some weird bug with their api keys now, my old one works but new ones give this error @magick93
magick93 commentedon Oct 16, 2026
@LaBlazer - yes confirmed the same. Seems to be a bug in the Z.ai key generation. Old key works.
RushabhS-RSW commentedon Oct 23, 2026
check image and genrate new key from coding plan that work's
oskar-flores commentedon Oct 27, 2026
@RushabhS-RSW Just dropped by to say thank you. I have been looking to that screen and have not noticed that "personal coding plan" was there.
Thanks!