@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.7
Published
Sep 20, 2026
Downloads
1,057/mo · 250/wk
Author
kedom1337
License
MIT
Types
extension
Size
640.6 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.

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.

Prompt-cache retention follows pi's own setting: set PI_CACHE_RETENTION=long for one-hour cache entries. The plugin never changes the markers pi emits.

This plugin is for subscription sign-ins, not API-key access.