pi-cc-router

Pi coding agent extension that routes LLM calls through Claude Code CLI

Packages

Package details

extension

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

$ pi install npm:pi-cc-router
Package
pi-cc-router
Version
0.4.0
Published
Mar 30, 2026
Downloads
35/mo · 4/wk
Author
xonika9
License
MIT
Types
extension
Size
71.2 KB
Dependencies
1 dependency · 2 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-router

Route pi LLM calls through the Claude Code. Use your Claude Pro/Max subscription as the backend — no API key required.

Installation

pi install npm:pi-cc-router

Select a Claude model via /model. All Claude models appear under the pi-cc-router provider.

Requirements

  • Claude Code CLI installed and authenticated (claude on PATH)
  • Claude Pro or Max subscription

How it works

Each request spawns a claude -p subprocess using the stream-json protocol. Claude proposes tool calls — pi executes them natively. Custom pi tools are exposed to Claude via a schema-only MCP server.

  • Streams text, thinking, and tool call tokens in real-time
  • Maps tool names and arguments bidirectionally between Claude and pi
  • Configurable thinking effort with elevated budgets for Opus models
  • Cross-platform: Windows, macOS, Linux

License

MIT