joaomj

Pi Claude Directsdk — Development skill for Claude Code

Development community

Use your claude sub with Pi without breaking Anthropic ToS.

How to install Pi Claude Directsdk

This entry records only its repository, not the path inside it, so there is no exact command to give. Open joaomj/pi-claude-directsdk and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Pi Claude Directsdk does

Use your claude sub with Pi without breaking Anthropic ToS.

Alternatives in Development

  • OpenAI Codex CLI — (Rust implementation) 67.8k ★
  • Research Codebase — You are tasked with conducting comprehensive research across the codebase to answer user questions by spawning 10k ★
  • Microsandbox — Open-source self-hosted MicroVM sandboxes with sub-200ms startup, hardware-level isolation via libkrun 5k ★

README

Pi Claude DirectSDK

[![npm version](https://img.shields.io/npm/v/pi-claude-directsdk.svg)](https://www.npmjs.com/package/pi-claude-directsdk)

Use Claude inside Pi through the unmodified Claude Code executable. Pi owns the transcript, tools, approvals, and retries. The CLI supplies subscription authentication as a model transport.

Capabilities:

  • Run sonnet, opus, haiku, and versioned routes as Pi models, including claude-haiku-5-5.
  • Execute Pi tools (read, bash, edit, write, codemode) with Claude models.
  • Resume sessions with exact replay of native signed thinking.
  • Switch providers mid-session; foreign thinking replays as ordinary assistant text.
  • Refresh model routes, limits, and prices from Claude Code and Anthropic documentation.
  • Work in interactive, print (-p), and resumed sessions.

Limits:

  • One Pi model call spawns one request-scoped claude process.
  • One Pi model call produces at most one upstream Messages request.
  • The provider never manages login, never reads credentials, and never falls back to another billing route.
  • Required strict constrained decoding (strict: "require") is rejected. See docs/architecture.md.

Requirements

  • Node 20 or later.
  • Claude Code in the qualified range >=2.1.263 <2.2.0 (see QUALIFIED_CLI_RANGE in src/models.ts).
  • A Claude paid plan. The free plan excludes the CLI.
  • A Claude Code login via claude auth login.

The installed-Pi harness is verified with Pi 1.1.0 and Claude Code 2.1.281. Verification includes offline startup and a paid request from a complete existing-session fork.

Install

Install the qualified Claude Code version:

npm install -g --ignore-scripts=false @anthropic-ai/claude-code@2.1.281

Sign in through the official CLI login:

claude auth login

Install the extension, then restart Pi:

pi install git:github.com/joaomj/pi-claude-directsdk

Refresh model catalogs once before selecting a Di