@pi-plugins/claude-oauth
v0.3.2
Published
Make pi's Anthropic OAuth requests match the current Claude Code client so OAuth login works correctly.
Downloads
613
Maintainers
Readme
@pi-plugins/claude-oauth
A pi-agent extension that makes pi's Anthropic OAuth requests match the current Claude Code client, so signing in with a Claude subscription (OAuth) works correctly.
Install
pi install npm:@pi-plugins/claude-oauthFor a one-off run without adding it to settings:
pi -e npm:@pi-plugins/claude-oauthFor local development, load it straight from this directory:
pi -e ./plugins/claude-oauthUsage
There is no new provider to add and no setup required. Once installed, the extension
automatically augments pi's existing built-in anthropic provider and applies to its
OAuth requests; every other request passes through unchanged. Existing Anthropic
cache breakpoints on OAuth requests receive the extended one-hour TTL, without
requiring the process-wide PI_CACHE_RETENTION=long setting. An explicit
PI_CACHE_RETENTION=short keeps the standard five-minute TTL, which is how
@pi-plugins/subagent prevents extended retention from leaking into child agents.
Keep using the anthropic provider exactly as you normally would.
