@saadjs/pi-claude-sub

Minimal Claude subscription OAuth compatibility for pi

Packages

Package details

extension

Install @saadjs/pi-claude-sub from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@saadjs/pi-claude-sub
Package
@saadjs/pi-claude-sub
Version
0.0.2
Published
Nov 6, 2026
Downloads
278/mo · 240/wk
Author
saadjs
License
MIT
Types
extension
Size
6.3 KB
Dependencies
0 dependencies · 2 peers
Pi manifest JSON
{
  "extensions": [
    "./index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

@saadjs/pi-claude-sub

A small Pi extension for Claude Pro/Max OAuth requests.

It keeps Pi's built-in Anthropic login, models, tool mapping, transport, and system prompt.

For Anthropic OAuth access tokens only, it adds a Claude Code-style billing block. API-key requests are untouched.

⚠️ Use at your own risk. If your Anthropic account gets banned or restricted for using this extension, I take zero responsibility. ⚠️

pi install npm:@saadjs/pi-claude-sub
# Or test locally:
pi -e ./extensions/claude-sub/index.ts

Run /login anthropic in Pi and select a Claude model.

If Anthropic raises the minimum supported Claude Code version before this package is updated, set PI_CLAUDE_SUB_VERSION=X.Y.Z to a verified current release.