pi-cc-patch

Use Claude Pro/Max subscription with pi — bypasses third-party app detection

Packages

Package details

extension

Install pi-cc-patch from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-cc-patch
Package
pi-cc-patch
Version
1.0.0
Published
Jul 13, 2026
Downloads
133/mo · 133/wk
Author
picassio
License
MIT
Types
extension
Size
6 KB
Dependencies
0 dependencies · 0 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

pi-cc-patch

Use your Pro/Max subscription billing with pi instead of getting the "Third-party apps now draw from your extra usage" error.

What it does

The API classifier detects pi as a third-party app and blocks subscription billing. This extension patches the request payload to bypass it:

  1. Sanitizes trigger phrases from the system prompt
  2. Adds billing header for subscription rate-limit routing
  3. Strips prefix block that triggers detection

Scope: this patch only runs for Anthropic/Claude provider requests. Other providers are left unchanged.

No token swap, no SDK dependency, no proxy. Just a before_provider_request hook. Pi's built-in provider handles everything else — caching, token refresh, thinking, streaming, tool mapping.

Install

pi install git:github.com/picassio/pi-cc-patch

Then restart pi. Use /login if you haven't already.

Uninstall

pi remove git:github.com/picassio/pi-cc-patch