logoalt Hacker News

daytonixyesterday at 7:59 PM8 repliesview on HN

have used both pi and opencode for the last 6 months, haven't opened a proprietary harness (cc, codex, cursor) in that same amount of time. right now i'm on pi and i can switch seamlessly between any model across any provider i want, even mid session. can even point them at locally running models.

i think people don't realize how much better life is over on this side, cc and codex rely entirely on vendor lock in imo.


Replies

try-workingtoday at 5:03 AM

Try the role-model Pi extension I built, to let Pi determine when to switch to a different model in your pool.

https://github.com/try-works/role-model

fcarraldoyesterday at 9:00 PM

Does a mid-session provider switch result in loading the entire context into the new model, inflating session cost?

I don't think I understand the token/cost implications of this feature

show 2 replies
l00sedyesterday at 8:02 PM

Haha I pretty much commented the same thing one minute apart.

mr_mitmyesterday at 8:25 PM

You can use Claude Code with a self hosted model no problem. I don't believe you can switch during a session though.

jcmfernandestoday at 12:38 AM

Are you using openrouter or something else?

FergusArgyllyesterday at 10:09 PM

codex is open source https://github.com/openai/codex/ it's definitely geared towards openai but it is completely open source

esafakyesterday at 8:12 PM

why did you switch from oc to pi?

show 1 reply
notshoreyesterday at 11:29 PM

[dead]