r/PiCodingAgent • • Oct 09 '26

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

12 comments sorted by

21

u/mozkohor Oct 09 '26

The issue is literally IN the message bro 😭

1

u/GeminiBoy91 Oct 09 '26

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

4

u/jensilo Oct 09 '26

People are so interestingly lazy 😅

-2

u/queso184 Oct 09 '26

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

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

-3

u/GeminiBoy91 Oct 09 '26

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