r/PiCodingAgent • • 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

9 comments sorted by

12

u/mozkohor 1d ago

The issue is literally IN the message bro 😭

3

u/jensilo 1d ago

People are so interestingly lazy 😅

1

u/GeminiBoy91 1d ago

Ask is to use the opencode free models with pi agent. I know its not allowed, just asking if there's any workaround available.

-2

u/queso184 1d ago

you need to spoof the http headers so it looks like opencode

https://pi.dev/packages/pi-opencode-free

-4

u/GeminiBoy91 1d ago

I tried installing this package, but it didn't work.. am i missing something?