New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

pi-cc-patch

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pi-cc-patch

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

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

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:

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

Version 1.0.3 advertises Claude Code 2.1.280 in the subscription billing block to meet the minimum version reported by Anthropic for Opus 5.5. The previous 2.1.261 identity is rejected with claude_code_version_too_old. This updates the request identity; model availability still depends on Pi's model catalog and your Anthropic account.

Scope: this patch runs only for direct Anthropic OAuth requests, identified by Pi's OAuth-only Claude Code identity block. Anthropic API-key, Amazon Bedrock, OpenRouter, gateway, and other provider requests 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.

Verify locally

npm test

The tests cover Opus 5.5 and Fable 5.1 OAuth payload rewriting, replacement of an older billing block, preservation of existing metadata and prompt cache settings, and unchanged API-key/Bedrock/OpenRouter requests. They do not verify live API acceptance or billing.

To try the working tree before publishing, start Pi with pi -e ./index.ts, select Opus 5.5 via /model, and send a short prompt. Avoid loading another copy of this extension at the same time.

Uninstall

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

Keywords

pi-package

FAQs

Package last updated on 07 Oct 2026

Related posts