pi-cc-patch

内容来源:README.md(说明文档) · 原始地址 · 查看安装指南

原始内容

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