@pi-plugins/claude-oauth

Make pi's Anthropic OAuth requests match the current Claude Code client so OAuth login works correctly.

Packages

Package details

extension

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.8
Published
Sep 22, 2026
Downloads
1,239/mo · 265/wk
Author
kedom1337
License
MIT
Types
extension
Size
643.8 KB
Dependencies
0 dependencies · 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

Compatibility fixes for using a Claude subscription in pi. This plugin is for subscription sign-ins, not API-key access.

Install

pi install npm:@pi-plugins/claude-oauth

To try it for one session without changing your settings:

pi -e npm:@pi-plugins/claude-oauth

Usage

Sign in to Anthropic with /login, then select a Claude model from the built-in anthropic provider. The plugin works automatically, with no additional provider or configuration.

Cache retention

The plugin never changes the cache markers pi emits. Retention follows pi's PI_CACHE_RETENTION setting. The one-hour TTL survives longer breaks but writes to the cache at a higher rate, and that rate counts against subscription usage too. Claude Code itself uses one hour for the main conversation while within plan usage and five minutes for subagents and once on usage credits. Recommendation: set PI_CACHE_RETENTION=long for interactive sessions (subagents stay short via @pi-plugins/subagent), and leave it unset when you are on usage credits.