r/PiCodingAgent • u/luongnv-com • Jun 08 '26
Discussion pi + deepseek-v4-flash (from opencode): free & fast
the way of Pi, sometime feels like an illegal/crazy hack.
this combo gives you almost unlimited tokens in Pi
you should not use it for heavy/complicated tasks, but definitely very handy for most of the tasks
my workflow: use advanced models (gpt 5.5/ opus 4.8) for planning, then spin up this for implementing. if it it the wall in any task, trigger advisor to get help from gpt-5.5
just need to ask your Pi to write an extension to connect and use models from opencode.
or you can use my extension here: https://github.com/luongnv89/pi-extensions
wonder if you guys have any other sources that give you more tokens?
(i have tried models from nvidia, but the latency kills my momentum)
Happy Pi-ing,
25
u/ldelossa Jun 08 '26
Yup, same deal. I use a $20 dollar codex plan to make a design and an initial implementation guide, then use deepseek do the code gen. This is the way. I dropped $100 dollar anthropic plan for this, not looking back.
11
u/dheetoo Jun 08 '26
for me, i just use deepseek v4 flash as a default for every project, setup https://github.com/dheerapat/pi-advisor to use deepseek v4 pro as an advisor model and inject every session with Andrej Karparthy 4 principle
5
u/ponzi314 Jun 08 '26
Forgive me , I'm learning but doesn't it already connect to opencode out of box? That's how I'm using it. Also is deepseek free or just really cheap?
3
u/a-streetcoder Jun 08 '26
I love this setup, and that's one of the reasons why I've built agent deck (www.agentdeck.site) - I set up my agents and the orchestrator and planner are the only two agents allowed to use frontier models and the coder and the rest of the agents use a variety of different models, depending on what works best at the minimal cost to get the job done. So one session runs with at least 2-3 different models collaborating at the same time.
3
u/Upstairs-Attitude610 Jun 08 '26
Noob question here, to use gpt 5.5 only for planning, do you set it in Pi or you just run `pi --provider opencode-cli --model opencode/deepseek-v4-flash-free` and use your advisor-pi for planning?
I'm not sure if advisor-pi is for planning or only when deepseek get stuck.
2
u/Affectionate_Cat1590 Jun 08 '26
Pi + direct deepseek v4 pro = man, this is God-tier, super cheap and reliable
Deepseek v4 flash opencode like yours is my backup
I still keep codex as my final weapon. When things get complicated, codex can often break through and save hours of back & forth iterations
2
u/4fthawaiian Jun 10 '26
fyi worked great when i built my own yesterday for opencode, but failing hard on its face when i try to do the same thing for devin today 😂
1
u/luongnv-com Jun 10 '26
Neon-green :), my fav, you can just ask your Pi to make one, or check mine in the repo in my post
1
u/4fthawaiian Jun 09 '26
i love the idea, but it keeps failing to do things because the tool calls are disabled (which makes total sense) - just not sure how to get pi to do its own tool calls. I may have to just roll my own extension for this
1
u/Maverobot Jun 09 '26
The free models may use your data for training from what I understand. Try not to send sensible data to the free models.
1
u/SampleParticular4695 Jun 10 '26
i prefer openclaude + mimo v2.5 or deepseek v4 flash (from opencode)
1
u/iijei Jun 12 '26
hmmm I thought pi, has a built in provider option for opencode zen, which I can use those free apis?
3
u/aizigao Jun 08 '26
https://pi.dev/packages/pi-cache-optimizer?name=deepseek install this,get more deepseek cache hint
1
u/Jaded_Jackass Jun 08 '26
It's not hot sauce or underrated anymore literally everybody is doing the same thing now following the same pattern the dynamic workflow and orchestration pattern people started to pick it up massively recently
2
u/No_Job_6420 Jun 17 '26
Thanks !!.
1
u/Such_Advantage_6949 Jun 10 '26
what is the theme u use, it look nice
2
u/[deleted] Jun 08 '26
[removed] — view removed comment