Production-ready Pi integration for the CommandCode Provider API.
Highlights
- Provider API is the default transport with robust streaming, tool calls, reasoning, images, retries, aborts, and overflow handling.
- Correct pause_turn continuation handling with accumulated content, usage, and cost, plus a bounded failure instead of silent truncation.
- Stable Pi session-based prompt caching on compatible OpenAI routes while preserving user payload hooks and Anthropic behavior.
- Live CommandCode model discovery with an offline catalog fallback, explicit pricing coverage, and automated catalog drift checks.
- Tested with Pi 0.84.4 and 0.85.0, including authenticated response and RPC smoke tests.
- Professional installation, configuration, troubleshooting, compatibility, and contributor documentation.
Install
pi install npm:@kushalkhemka/pi-commandcode-provider
Validation
- TypeScript, formatting, and full test suite
- npm audit: 0 vulnerabilities
- CodeQL, Semgrep, Gitleaks, and dependency review
- Clean registry tarball: 31 files, no bundled dependencies
Pull request: #1
This is an unofficial community integration and is not affiliated with CommandCode.