Claude Print — Development skill for Claude Code
Drop-in replacement for claude -p that drives the interactive TUI via PTY, preserving subscription billing.
How to install Claude Print
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open jedarden/claude-print and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Print does
Drop-in replacement for claude -p that drives the interactive TUI via PTY, preserving subscription billing.
Alternatives in Development
- Ccusage — CLI for analyzing Claude Code/Codex usage from local JSONL files 11.8k ★
- Hive — Browser-native hive-mind for CLI coding agents — Claude Code, Codex, Gemini, and OpenCode collaborate as real 473 ★
- Openclaw Billing Proxy — Route OpenClaw API requests through Claude Code subscription billing instead of Extra Usage 460 ★
README
claude-print
Drop-in replacement for `claude -p` (print/headless mode) that drives the Claude Code interactive TUI via PTY — keeping sessions on the unlimited subscription pool rather than the per-token Agent SDK credit pool.
Why this exists
Anthropic routes `claude -p` (headless/SDK mode) through a separate Agent SDK credit pool ($100–$200/month on Max plans). Only the interactive TUI (`cc_entrypoint=cli`) draws from the unlimited subscription.
The billing path is determined by an `isatty` check inside the `claude` binary: when stdout is a TTY, the session is tagged `cc_entrypoint=cli` and billed against the subscription. When stdout is a pipe (as with `claude -p`), it becomes `cc_entrypoint=sdk-cli` and draws from the credit pool instead.
`claude-print` allocates a PTY, drives the interactive TUI over it, auto-dismisses the trust dialog, injects the user prompt via bracketed paste, waits for the Stop hook via a FIFO, reads the JSONL transcript, and emits clean stdout output — giving callers `claude -p` wire-compatible output while billing against the subscription.
Prerequisites
- Claude Code must be installed and authenticated. See claude.ai/code.
- An active Claude subscription (Pro or Max plan) is required. The whole point is to bill against subscription, not credits.
HOMEmust be set to a non-empty value for the user runningclaude-print. Claude Code configuration, trust state, and transcripts are resolved beneath this directory.- Linux only. PTY support requires POSIX — no Windows ConPTY.
Install
sh install.sh
`install.sh` downloads a pre-built static musl binary from GitHub Releases (`jedarden/claude-print`), runs `--check` to verify the setup, and copies `claude-print.yaml` to `~/.needle/agents/` if NEEDLE is present.
Set `SKIP_MOCK_CLAUDE=1` to skip the `mock_claude` test fixture download.
Build from source
git clone https://github.com/jedarden/claude-print
cd claud
Related Skills
Claude Agent Tui
Runs the official Claude Code TUI over a PTY and exposes it via ACP, so Claude Code threads render natively in
Yggdrasil MCP
Reasoning orchestration MCP server — Tree of Thoughts with deep planning, branching, and revision. Drop-in rep
Paperclip Adapter Hermes Local Plus
Drop-in replacement for Paperclip's built-in hermes_local adapter — production-grade Hermes Agent integration
Claudecode Next
drop-in replacement for claude code cli but it's completely free
ChatGPT Use
Turn your ChatGPT web subscription into a coding-agent backend — no API key, no Codex billing. Built on chrome
Opencode Anthropic Auth Fix
One-command OpenCode fix for Anthropic subscription billing. Installs @ex-machina/opencode-anthropic-auth, pat
Related Agents
Tui UX
Terminal-UI (TUI) UX expert. Validates TUI work by rendering it to light/dark images offline (and driving it o
Shux Vt Solid QA
Hard-gate QA subagent for shux VT, raster, resize, Unicode, and rich TUI compatibility changes. Use before any
Protocol Parity
Cross-references the lockstep surfaces a protocol must touch (TUI ScreenId, admin route, live broker/session w