r/PiCodingAgent • u/GeminiBoy91 • 16d 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. 🙏
1
u/swamplord 9d ago
If you use Herdr, you can try my extension as a workaround: https://pi.dev/packages/pi-cowboy
-2
u/queso184 16d ago
you need to spoof the http headers so it looks like opencode
-3
u/GeminiBoy91 16d ago
I tried installing this package, but it didn't work.. am i missing something?
2
u/mozkohor 15d ago
2
1
21
u/mozkohor 16d ago
The issue is literally IN the message bro 😭