pi-cc-router

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

原始内容

pi-cc-router

Route pi LLM calls through the Claude Code CLI. 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