← Back to Leaderboard
Pelidickinson

elidickinson/pi-claude-bridge

Agent SDK provider that brings Claude Code inference and session sync to Pi

View on GitHub ↗
Engineering Health (Methodology)
A · 86/100
Maintenance Activity
● Updated 3d ago
Latest Release
Rolling commits (main)
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption20/25
Release Cadence11/20
License Clarity20/20
CLI
Total Stars
★ 878
24h Growth
+1
7d Growth
+18
Forks
231

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

elidickinson/pi-claude-bridge Star History (2026-03-29 - 2026-12-04) ALL-TIME STAR HISTORY (2026-03 – 2026-12) +877 in 250d · avg +4/day 927 464 0 2026-03-29: ★ 12026-04-18: ★ 502026-05-09: ★ 832026-05-30: ★ 1112026-06-20: ★ 1272026-07-11: ★ 1892026-08-01: ★ 2382026-08-22: ★ 2962026-09-12: ★ 3702026-10-03: ★ 5322026-10-24: ★ 7042026-11-09: ★ 7942026-11-25: ★ 8552026-12-04: ★ 878 ★ 878 2026-03 2026-08 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

pi-claude-bridge is a Node.js model-provider extension for Pi, not a standalone inference server. Pi renders prompts, holds the user-facing conversation, and supplies tools. The extension sends that input to a Claude Code subprocess through @anthropic-ai/claude-agent-sdk and bridges the Pi tools back into the turn. The manifest also lists @modelcontextprotocol/sdk, cc-session-io, @earendil-works/pi-ai, and @earendil-works/pi-coding-agent.

The harder part is keeping Pi history aligned with Claude Code's on-disk sessions. Before a fresh query, the bridge compares conversation content: unchanged history resumes the same session; tree navigation, edits, forks, and clones use records up to a safe shared prefix; model or instruction changes import Pi history into a new session. Session pointers, content digests, and record IDs persist under claude-bridge/sessions/ in Pi's agent directory so matching can recover after restart. Compaction and branch summaries use isolated queries rather than altering the live session.

Key Capabilities & Differentiators

The claude-bridge/... selector is populated from pi-ai's Anthropic catalog, omitting dated snapshots. The bridge also lists Mythos 5.1 and 5.2, but listing does not grant access: accounts outside approved programs receive a 404. Long-context support can reach 1M tokens; Opus 4.6 requires the matching Max-class plan configuration or, on Pro, Extra Usage, while Sonnet 4.6 uses the Extra Usage option. forceTwoHundredK provides a per-model 200K fallback. Pi's modelOverrides do not reliably change bridge model limits.

Pi skills and prompt or message edits reach Claude Code. By default, Pi's system prompt follows Claude Code's preset; the preset can be disabled. Mid-turn steering arrives at the next tool boundary, and bridged Bash commands get a 120-second timeout. The extension does not render a quota display itself: it exposes available rate-limit fields through Pi's after_provider_response event, and an event that arrives after a turn can surface on the next provider call.

Trade-offs & Limitations

The closest alternative, pi-claude-code, runs claude -p each turn and rewrites requests through a local proxy. The bridge avoids that on-the-wire rewrite by using the Agent SDK, but takes on the complexity of synchronizing native session records. Prompt changes can trigger a full uncached import and discard prior thinking; transient context messages can repeatedly invalidate cache reuse. Rewritten suffixes may also lose Claude Code file snapshots, and two bridge processes must not operate on the same Pi session concurrently.

The permission boundary is not identical to native Claude Code. User-level Claude hooks can run on normal turns, project hooks are not loaded, and isolated summary queries do not run hooks. Do not rely on Claude Code permission rules or PreToolUse hooks to block tools; enforce authorization in Pi. Local MCP config is blocked by default and cloud MCP is always blocked. The extension's MIT license is separate from Anthropic's service terms, and subscription coverage and Extra Usage billing should be checked before adoption.

Hardware & Deployment Guide

Use Node.js 20+ and Pi 1.5.1 or newer. Install with pi install npm:pi-claude-bridge, authenticate with claude auth login rather than Pi's /login, then select a claude-bridge/... model. Provider settings live in ~/.pi/agent/claude-bridge.json; pathToClaudeCodeExecutable can point to an installed Claude binary if the bundled one cannot run. Inference is remote. Locally, size for Pi, Claude Code subprocesses, tool workloads, and session storage rather than model weights or GPU memory.

Claude Code inherits Pi's environment, so exported Anthropic endpoint or credential variables can override the intended login path. Provider-scoped env values in ~/.pi/agent/auth.json can override or remove them; HOME, USERPROFILE, and CLAUDE_CONFIG_DIR are excluded there because session lookup relies on Pi's values. npm run test:unit runs offline; npm test adds API-backed integration tests that spawn Pi and Claude Code and need write access to ~/.claude. The supplied GitHub snapshot lists no latest release, so there is no tagged release milestone to assess.

Provider routing: claude-bridge/... model IDs use Claude Code's Agent SDK path, separate from Pi's anthropic/... provider.
Session reconciliation: content digests and record IDs identify the reusable history prefix across restarts, forks, and edits.
Summary isolation: cacheRetention: "none" routes compaction and branch-summary requests away from the live Claude Code session.
Context controls: forceTwoHundredK pins selected models to 200K; Opus 4.6 and Sonnet 4.6 have plan-dependent 1M options.
Tool boundaries: MCP strict mode blocks configured local MCP servers by default, cloud MCP is always blocked, and tool authorization belongs in Pi.
Quota integration: Claude Code rate-limit events become anthropic-ratelimit-unified-* headers on Pi's after_provider_response event.
Best For

Pi users who want to keep Pi's tools and branching workflow while using a Claude Code login, and whose extensions keep prompts and history stable across turns.

Skip If

You need offline inference, depend on Claude Code hooks for tool authorization, frequently rewrite request history, or run the same session from multiple processes.

Reviewed on 2026-12-04 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

CLI
pi install npm:pi-claude-bridge

Comparison vs. Top Coding, Skills & MCP Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
pi-claude-bridge ★878+18JavaScriptMITAgent SDK provider that brings Claude Code inference and session sync to Pi
ECC316.1k+4.2kJavaScriptMITPlugins and CLI workflows for planning, reviewing, and verifying agent-written c
ponytail204.4k+4.1kJavaScriptMITA prompt-driven coding-agent plugin for smaller changes and focused tests.
spec-kit153.8k+1.3kPythonMITA Python CLI for spec-driven coding-agent workflows and reviewable handoffs

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/elidickinson/pi-claude-bridge.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

elidickinson/pi-claude-bridge Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about pi-claude-bridge

Which application owns conversation history, and how does session resume work?

Pi remains the owner of the visible conversation and tool workflow; the bridge uses the Claude Agent SDK to run Claude Code as the model provider. It resumes the Claude Code session when history matches, reuses the matching prefix when branching or editing, and starts a fresh session when the model or instructions change.

Does this need a GPU, and what should I size on the workstation?

The local stack is Node.js 20+, Pi, and a Claude Code subprocess. Model inference is remote, so there is no local model VRAM to size. Budget host resources for concurrent subprocesses, the tools they run, and session or debug files. A 1M-token context setting describes a model limit, not a local GPU requirement.

Can a company deploy this under MIT and use its Claude subscription?

The extension is MIT-licensed, but that license does not grant rights to Claude Code, hosted models, or subscription capacity. You can run the extension locally; it is not a self-hosted inference server. Confirm current Anthropic terms, plan eligibility, and your organization's data-handling requirements before deployment. Some long-context configurations can incur Extra Usage charges.

When should I choose pi-claude-code or Pi's built-in Anthropic provider instead?

Choose the bridge if you want the Agent SDK path and explicit session-history reconciliation. Evaluate pi-claude-code if your Pi extensions frequently alter prompts or messages: it runs claude -p per turn and uses a local proxy to rewrite requests, which creates a compatibility dependency on Claude Code traffic. Pi's built-in anthropic provider bypasses Claude Code and does not use the Claude Code subscription path.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining elidickinson/pi-claude-bridge? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature elidickinson/pi-claude-bridge on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare