@pi-plugins/claude-oauth
Make pi's Anthropic OAuth requests match the current Claude Code client so OAuth login works correctly.
Package details
Install @pi-plugins/claude-oauth from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@pi-plugins/claude-oauth- Package
@pi-plugins/claude-oauth- Version
0.3.0- Published
- Jul 23, 2026
- Downloads
- 226/mo · 199/wk
- Author
- kedom1337
- License
- MIT
- Types
- extension
- Size
- 40.2 KB
- Dependencies
- 1 dependency · 1 peer
Pi manifest JSON
{
"extensions": [
"./dist/index.mjs"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
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-oauth
For a one-off run without adding it to settings:
pi -e npm:@pi-plugins/claude-oauth
For local development, load it straight from this directory:
pi -e ./plugins/claude-oauth
Usage
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.