Pi Claude Directsdk — Development skill for Claude Code
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
[](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, includingclaude-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
claudeprocess. - 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(seeQUALIFIED_CLI_RANGEinsrc/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
Related Skills
Legacy Maintenance
Onboard onto an unfamiliar or legacy codebase and change it WITHOUT breaking the
Skill Compact
Shrink Claude Code SKILL.md token cost without breaking skills. Trigger-preserving description gate + lossless
Cocos Creator Files
Claude Code skill: read, edit and generate Cocos Creator 3.x project files (.prefab/.scene/.meta/.anim/.mtl/.e
Music Editing
Music Editing — cutting a song to length without breaking it
Claude API Workers
Run Claude Code sub-agents and workflows on your Anthropic API key while your session stays on your Claude pla
Specforge
SpecForge's job is to keep the good parts — artifact gating, progressive loading, profile tailoring, sub-agent
Related Agents
Research Plugin Spec
Researches Claude Code plugin, skill, and sub-agent authoring from official Anthropic documentation. Shared by
Arch Debugger
Isolate a bug to a specific module or contract boundary, produce a minimal repro, and fix it without breaking
X402 Profit Oracle
Audits this x402 repo as a commercial surface and raises revenue without breaking discovery, settlement, or th