
Introducing the world's most powerful model, Opus 4.8
Back to 4.6[1m] I go

Back to 4.6[1m] I go
I have a bunch of tools and workflows built around claude -p aka print mode. With the June 15 change moving claude -p and Agent SDK into a separate credit pricing, I'll be paying out the wazoo if I want to continue using those tools.
So I built clarp: an open source CLI meant to be a drop-in replacement for claude -p for local tools.
In most projects, the migration is changing the binary name from claude to clarp.
Under the hood, it launches the normal interactive Claude Code CLI in a hidden PTY, then uses a local read-only proxy to observe the Anthropic API stream and reconstruct claude -p style output. It does not modify Claude’s requests or responses.
What works:
What does not fully match native claude -p:
I’d call it high parity for common claude -p use, but not a perfect reimplementation of Claude Code’s internal print-mode pipeline.
Lots of help from Claude: implementing the proxy/session pieces, writing parity tests, finding edge cases in argument parsing, and tightening the release/docs. I basically whipped Claude.
Repo: https://github.com/dn00/clarp
npm: npm install -g clarp-cli