r/PiCodingAgent • u/revyth • 22d ago
Question How to setup Claude sub with Pi?
I am trying Pi for the first time. I am confused how to setup Claude subscription with it, if I login it shows a warning saying that third part harness providers would not consume subscription tokens but only extra usage. So what’s the right way?
10
Upvotes
7
u/SquareHimself 22d ago
pi-claude-bridge is the correct way. Have you agent look at the recent commit to t3 code as an example to see how to change the Claude code entry point variable to "pi-claude-bridge". This should fix the usage to drain normally.
4
u/InitiateIt 22d ago
Don't use Claude bridge, it eats your tokens way way faster than Claude. Just use orca and have the agents handoff.
2
u/jfuu_ 22d ago
I use pi-claude-bridge: https://github.com/elidickinson/pi-claude-bridge
It uses the Claude SDK, which currently consumes your subscription usage, but Anthropic have tried to change this in the past (which they did go back on, but they could do it again).
It's also not ideal as it has to mess with the system prompt to avoid Anthropic rejecting the request due to it being an external harness.
3
u/joseederangojr 20d ago
https://github.com/earendil-works/pi-claude-code
1
u/scooby-raver 22d ago
Use a Claude bridge. It's the only way. This is the same way that opencode just integrated Claude subs. There are limitations to the method like it may be innificient in some ways and tooling. But it's the only solution right now.
1
u/whiterose0000001 22d ago
You can use pie anthropic auth extension
1
u/shadow_vector_ 20d ago
If claude has this unrealiability. So then what are all the good subscriptions other than chatgpt 20$ ???
0
u/CreativeSympathy8293 22d ago
If you want Claude directly in Pi, its current provider docs list Anthropic API-key authentication (`ANTHROPIC_API_KEY`). That uses the Console billing path; don't assume your ordinary chat/Code allowance applies.
Eligible Max, Ultra and Team subscribers can claim separate monthly API credits into a linked Console organization; Pro isn't eligible. The plan must be active for seven days, and you need the required organization roles. Those credits don't change your subscription limits or cover Claude/Code extra usage. Check the linked organization's balance before trying a task.
For ordinary subscription usage, unmodified Claude Code has a supported subscription sign-in route.
Sources:
https://github.com/earendil-works/pi/blob/main/packages/coding-agent/docs/providers.md
https://code.claude.com/docs/en/legal-and-compliance#authentication-and-credential-use
https://support.claude.com/en/articles/17154008-monthly-api-credits-for-max-ultra-and-team-plans
AI-assisted explanation; I haven't inspected your account or tested your Pi installation.
0
u/Healthy-Zebra-9856 22d ago
Both Anthropic and OpenAI offer native hooks and server side tooling for their streamed models. Unless a harness uses what’s called the headless mode whereby it uses Claude code or Codex beneath, this will not work in a desirable way.
People love Pi for it’s simplicity, however, it works opposite for these frontier models. They require a whole framework of tools to support what they do. You can read all about this on their respective websites. So even if there’s a temporary solution out there to make them work in Pi, there’s no guarantee it may continue.
1
u/Ok_Party_9245 17d ago
fuck anthropic, spoof claude code all day long