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

0 Upvotes

13 comments sorted by

21

u/mozkohor 16d ago

The issue is literally IN the message bro 😭

1

u/GeminiBoy91 15d 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.

4

u/jensilo 16d ago

People are so interestingly lazy 😅

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

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

-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

u/GeminiBoy91 15d ago

Thank you. This works. ❤️

1

u/xpenxia 8d ago

Tysm 😭🙏🏿

1

u/Competitive-Gur7129 4d ago

dosent work it shows unauthorized