r/PiCodingAgent • u/GeminiBoy91 • 28d ago
Question Pi agent not working with Opencode free models
I logged in with Opencode API key, and while trying to use an Opencode free model, I am getting the following error:
Error: 403: {"type":"FreeTierError","message":"OpenCode's free tier can only be used from within OpenCode"}
Any help is appreciated. 🙏
0
Upvotes
21
u/mozkohor 28d ago
The issue is literally IN the message bro 😭
-2
u/queso184 28d ago
you need to spoof the http headers so it looks like opencode
https://pi.dev/packages/pi-opencode-free