@sloppykebap/pi-provider-cc-sdk
v0.2.1
Published
Use your Claude subscription with pi using their official Claude Code SDK.
Downloads
81
Maintainers
Readme
pi-provider-cc-sdk
Use your Claude subscription with pi using Anthropic's official Claude Code SDK.
Based on pi-claude-bridge by Eli Dickinson.
Setup
pi install npm:pi-provider-cc-sdkRequires claude CLI installed and logged in. Then /reload in pi.
Usage
Use /model to select one of:
claude-sdk/claude-opus-4-8claude-sdk/claude-opus-4-7claude-sdk/claude-opus-4-6claude-sdk/claude-sonnet-4-6claude-sdk/claude-haiku-4-5
Prompt strategy
This provider now defaults to a safer prompt composition path for Claude subscription auth:
- keep the Claude Code preset
- strip Claude dynamic sections from the system prompt
- append a safe subset of Pi's prompt
- append nearest
AGENTS.md - append Pi skills block
- keep Pi documentation out of the always-on system prompt
The Pi documentation block is intentionally excluded because it can trigger Anthropic's subscription extra usage error on the Claude SDK path.
Prompt modes
Control the append strategy with PI_CLAUDE_SDK_PROMPT_MODE:
safe-pidefault: safe Pi base + nearestAGENTS.md+ skills blocksafe-pi-base: safe Pi base onlysafe-pi-no-skills: safe Pi base + nearestAGENTS.mdsafe-pi-no-agents: safe Pi base + skills blockpreset-only: Claude Code preset only
Recommended docs strategy
Instead of appending large documentation blocks into the Claude SDK system prompt, load docs on demand through Pi skills or by reading the installed Pi docs from disk when the user asks Pi-specific questions.
