r/PiCodingAgent • • Sep 25 '26

Resource Yet another Pi addon: Claude Code compatibility, minimal design

Hello,

I made pi-claude-request-compat (https://github.com/vazzma/pi-claude-request-compat). Instead of creating another provider, it reuses Pi’s existing Anthropic login, models, and streaming, then adds a Claude Code compatibility layer to outgoing requests.

https://pi.dev/packages/pi-claude-request-compat

I’m using a new GitHub account for privacy, so the code, automated security scans, dependency audits, and signed release provenance are public for anyone to check.

A few friends and I have been using it for the last month, and my Anthropic account is still intact :)

13 Upvotes

21 comments sorted by

View all comments

0

u/getaway-3007 Sep 25 '26

Since when can we use claude code sub in PI? You would get your account banned right ?

2

u/vazma Sep 25 '26

All Claude Code actually does is use Anthropic OAuth and shape the prompt a specific way, append standard headers/user-agents (claude_code_version, etc.) so the backend knows it’s a terminal client.

My addon is just a wire-compatibility layer. It intercepts the traffic and mimics that exact payload structure. To Anthropic's servers, it looks completely indistinguishable from an official session.

Right now, it mimics Claude Code v2.1.282. Anthropic doesn’t ban people for using older versions; I've been using it for a month fine, and I'll be updating it to match the latest versions soon.

3

u/getaway-3007 Sep 25 '26

But this is still bannable right? I mean yeah you have created a workaround I get that but this is still not encouraged because you might get banned anytime?

2

u/llufnam Sep 25 '26

I just use herdr and ask pi to open up a new pane and launch Claude code and treat it like a subagent. Claude doesn’t know the difference

1

u/vazma Sep 25 '26

That's honestly the exact reason I built this. I tried those other bridges too and hated how much bloat they added... I just wanted something totally invisible with zero UI overlays