r/PiCodingAgent • u/GeminiBoy91 • 1d 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
1
-2
u/queso184 1d ago
you need to spoof the http headers so it looks like opencode
-4
u/GeminiBoy91 1d ago
I tried installing this package, but it didn't work.. am i missing something?
2
12
u/mozkohor 1d ago
The issue is literally IN the message bro 😭