elidickinson/pi-claude-bridge
Claude Code inference provider for Pi. Allows the use of Claude Code of Pro/Max subscriptions from pi.dev.
What it solves
This project provides a bridge between the Pi agent environment and Claude Code, allowing users to use Claude's advanced models (like Opus and Sonnet) and tool-calling capabilities directly within the Pi TUI. It eliminates the need to switch between different interfaces by integrating Claude Code as either a primary model provider or a delegatable tool.
How it works
The bridge uses the Anthropic Agent SDK to connect Pi to Claude Code. It operates in two primary modes:
- Provider Mode: It registers Claude models as providers in Pi, bridging Pi's tools to Claude Code. This includes support for streaming, session persistence, and context synchronization.
- AskClaude Tool: It adds a specialized tool to Pi that allows other LLM providers to delegate specific tasks, questions, or code reviews to Claude Code autonomously.
Who it’s for
Developers using the Pi agent framework who want to leverage Claude's coding capabilities, high-context windows (up to 1M tokens), and tool-use efficiency without leaving their current workflow.
Highlights
- Deep Integration: Supports streaming, MCP tool bridging, and session resume/persistence.
- Flexible Delegation: The
AskClaudetool allows non-Claude providers to call Claude Code for second opinions or complex task execution. - High Context Support: Enables 1M context windows for specific Opus and Sonnet models based on the user's Anthropic plan.
- Context Sync: Synchronizes conversation history and skills between Pi and Claude Code, ensuring consistency across turns.
Related
- Project
- Project
- Project
- Project
- Project