r/PiCodingAgent • • Nov 03 '26

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

26 comments sorted by

7

u/SquareHimself Nov 03 '26

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.

1

u/revyth Nov 03 '26

Thanks, although I am wondering if it is worth to setup a workflow that can be invalidated in any moment

1

u/SquareHimself Nov 03 '26

It's a one line change to the pi-claude-bridge extension.

4

u/InitiateIt Nov 03 '26

Don't use Claude bridge, it eats your tokens way way faster than Claude. Just use orca and have the agents handoff.

1

u/revyth Nov 03 '26

Hi, do you mean using claude code and Pi at the same time inside Orca? Which llm models do you recommend using with Pi?

3

u/InitiateIt Nov 03 '26

I found Claude would either ban me or 3 x the token rate when using in Pi.

So now I just set up the agents in Orca and have them handoff when needed.

For Pi I use DeepSeek, GLM 5.3 and GPT.

I'm sure there are better models but these work really well for me. Fable for planing, the rest for building and testing.

1

u/revyth Nov 03 '26

Thanks for sharing, appreciated!

3

u/Onlycompute Nov 03 '26

This should be so high up. I've tested multiple times, Claude bridge works but eats up token so fast - its not worth it. Not bridge fault, anthropic doesn't allow easy integrations I think.

1

u/jsclayton Nov 03 '26

This is the way. Using Orca or Herdr a Pi session can spawn a Claude session and tell it what to do.

2

u/jfuu_ Nov 03 '26

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.

1

u/revyth Nov 03 '26

thank you, I will try it. Sad to see that Anthropic and other paid llm providers block open source harnesses to be used with their models 🫤

8

u/o_sht_hi Nov 03 '26

No other provider does this. It's just anthropic

2

u/isty2e Nov 03 '26

Uh, antigravity?

2

u/o_sht_hi Nov 03 '26

Never bothered to try 🤷🏽 but sure, if you say so

5

u/bankinu Nov 03 '26

Yeh fuck Anthropic then.

1

u/jfuu_ Nov 03 '26

Yeah it seems super misguided to me. The harness isn't really the "secret sauce" of an agent, so it seems odd to me that they actively try to prevent this kind of use.

The only reason I can think of is to stop people buying a subscription and then using it as a cheaper API alternative.

Interestingly OpenAI allows this use, they recently added a setup flow explicitly for using your Codex usage with third-party harnesses.

1

u/scooby-raver Nov 03 '26

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 Nov 03 '26

You can use pie anthropic auth extension

1

u/shadow_vector_ 29d ago

If claude has this unrealiability. So then what are all the good subscriptions other than chatgpt 20$ ???

0

u/CreativeSympathy8293 Nov 03 '26

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 Nov 03 '26

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 26d ago

fuck anthropic, spoof claude code all day long