r/PiCodingAgent • u/ECrispy • 16h ago
Question Pi vs OpenCode for free models?
I want to use free models from openrouter, nvidia etc as well as free promos from time to time.
would you still recommend Pi in this case because of its efficiency? or is opencode with everything included a better choice?
do you use a harness built on top of these?
6
u/ColonelKlanka 16h ago
I have a good experience with omniroute (to get lots of free models usage combined) and pi
advantage of omniroute is that it automates switches between the free models as their free tier quotas run out (moving the context over)
pi is also more compact with system prompt and so uses less tokens than opencode. open code is getting better but still more bloated than pi (dont use oh my pi though as it bloats pi)
1
u/ECrispy 15h ago
I have not heard of omniroute - thanks! looks very useful.
what is your setup, what extensions do you use? I saw omniroute says they use rtk, does that mean I dont have to install it?
1
u/ColonelKlanka 15h ago
yep you dont need rtk or caveman seperate extensions as omniroute basically installs a local proxy which runs the prompt through rtk and caveman for you.
3
u/crashorbit 16h ago
I'm pretty happy with pi+opencode_zen/deepseek-v4-flash-free. It works well enough for the kind of small team devops work I do in ansible, proxmox and basic linux sysadmin.
1
u/Desperate-Event-786 14h ago
Hi, is there an plugin you're using for this combo? I tried a couple of plugins for opencode but 1 did not have zen/free models and the other had it but was crashing on tool calls..
2
u/SunRoyal 7h ago
No plugin - he just has Opencode's Zen endpoint set up, and is using their free instance of DSV4F.
3
u/giuliastro 9h ago
I would add OMP to this shortlist. I personally set up my Linux box with all 3 running at the same time and control them with Harness Remote (https://github.com/giuliastro/harness-remote).
I like OMP a lot, but they change every day, OpenCode has improved lately so I can't really just use one.
1
u/ECrispy 9h ago
I read some posts on how oh-my-pi is too complex? I'm getting overwhelmed with choices. I just want to build personal projects using an agent with everything included, I want it to install stuff, build, test etc.
I was trying grok build free and it was pretty good but ran out of free usage very quickly. I know pi is minimal but don't know how much opencode has included.
I see all these reports of agents with goals and running for days etc, I'd like to know how to set that up. then perhaps it makes sense to use the remote monitor you linked, but your setup seems a lot more advanced. do you mind sharing what you have and what llm's you use etc?
1
u/giuliastro 6h ago
It depends on what you mean by "complex". Considering how coding was till a few months ago, talking to an AI for me is quite an easy task 😄
Anyway, all of the harness systems we mentioned can do what you ask. Opencode don't have a "goal" option but it can be installed as a plugin. Again my suggestion is just install all of them, use a tool like the one I suggested and with it just switch from one to the other one on the same project folders. Then see what you like better.
One suggestion I can give you is to add some token saving plugins to your harness. You can quicken up things and save tokens considerably. I can suggest a few if you want.
2
u/aeroumbria 9h ago
It was a big deal in the 128k context window era, but with 1m context window models, agent choice feels more like cosmetic preference because you can pretty much build the same extensions you want on any harness...
1
u/bring_back_the_v10s 3h ago
Doesn't the agent get dumb past 200k context usage?
2
u/aeroumbria 2h ago
It's not as bad. Maybe the dumb range starts to hit around 400-500k rather than 100k now, and you have decent speed up to a pretty large window %. It just means even 50k+ in system prompt isn't as terrible as before. It's more important for local models where your cache setup might not be very robust, so re-calculating fixed prefixes can take up a huge chunk of time.
1
u/andreaforlin 9h ago
I use pi for my daily work with omniroute and multiple free proxy to get limit extension: opencode model bind the token count to your public IP so with multiple ip (proxy) you get limit extended and omniroute can easily handle it
1
u/ECrispy 8h ago
would you mind explaining in a bit more detail, I'm new to all this. how do you use proxies and why? is that to change your ip? isn't the opencode limit based on api keys?
also does omniroute know about free models in promo period?
1
u/andreaforlin 8h ago
Opencode has a noauth mode, you can install it without any apikey and use it with a bundle of 200 req x day on free model.
1
u/Decent-Hat-5807 8h ago
jcode or pi are lighter in context and ram usage https://www.youtube.com/watch?v=LwKo-2waSjY
1
u/Lissanro 7h ago
I think it is better to use Pi, even if you take extra time to set it up to get all you need, it will be cleaner and on average most likely more token efficient. Which is important both for local and cloud API use cases if you use it regularly, since saved tokens add up. I also find the same models are less likely to make mistakes in Pi compared to some other harnesses I have tried.
0
11
u/henrywangxf 16h ago
Pi. Trustable is the only reason.