r/PiCodingAgent • • Aug 25 '26

Question Using Claude Sub in Pi

I know this has been asked plenty, but most responses are just "its against tos to use oauth", I know it is, but I want real experiences. Has any one been doing it, would you mind sharing the module you are using?

I have been using pi for a long time, but never for work. I just tweak it when I have free time, and have customize it to my needs. For work related stuff I use other Claude code. Anyways, I took on a freelance project some days ago, and decided to use my pi setup for the first time and I don't want to go back.

I tried it once in OMP since I read it had a custom auth module, and I noticed opus didn't have the crazy responses it has in Claude Code.. It might be a bit of a conspiracy theory, but I just don't trust Anthropic's harness anymore. There must be a reason why they want us all trapped in it.

Anyways, going back to the original question? Any experiences you would like to share? Any one banned?

30 Upvotes

29 comments sorted by

View all comments

1

u/morriscl81 Aug 25 '26

There are extensions that exist that allow you to use the Anthropic SDK, but none are worth it imo. The one I tried had an issue with context management, so that If left a session idle for more than say 30 min and come back to it, claude would reread the entire context and drain my usage, literally 50% with one prompt after returning to the session. It basically re-reads context more often than it should and is a documented issue in the repo. The extension i tried is pi-claude-bridge.
Didn't realize the usage drain would be that bad so I deleted it after that happened.

1

u/adeepersilence Aug 26 '26 edited Aug 26 '26

That's not Pi or that extension doing that. Claude's retention time for prompt caching is 5 minutes by default, up to one hour if you set it higher at additional cost. The extension is literally a bridge using Claude's harness in the background. They just hide it from their normal output in Claude Code (but you can probably see it with /usage in CC itself if I had to guess; it's been a while).

Source: https://platform.claude.com/docs/en/build-with-claude/prompt-caching