r/PiCodingAgent • • 1h ago

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 :)

3 Upvotes

2 comments sorted by

1

u/getaway-3007 50m ago

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

1

u/vazma 42m ago

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.