@bzzimmy/pi-claude-oauth0.2.0
Use a Claude Pro/Max subscription (Claude Code OAuth) inside the pi coding agent.
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
pi-claude
Use your Claude Pro/Max subscription inside the pi coding agent, no proxy needed.
Pi already ships the Anthropic OAuth login, the You are Claude Code system block, the OAuth betas
and the Claude Code identity headers. The one thing left is that Anthropic fingerprints three phrases
in pi's system prompt and answers Third-party apps now draw from your extra usage. This extension
rewrites those phrases on the wire, for Anthropic OAuth requests only.
Install
pi install npm:@bzzimmy/pi-claude-oauth
Or from a checkout: pi install /path/to/pi-claude (or pi -e /path/to/pi-claude for one run).
Then inside pi: /login → Anthropic (Claude Pro/Max), and /model → any anthropic/claude-* model.
Develop
npm install
npm test # unit tests
npm run lint # biome + tsc
If pi's system prompt changes and the 400 comes back, find the phrases that trip the gate and update REWRITES.
This relies on unsupported behavior and may violate Anthropic's Terms of Service. Use at your own risk.
License
MIT © Ben Zimmermann