dn00

dn00 / clarp

Public

Drop-in replacement for claude -p that runs on your Claude Code subscription instead of metered API pricing.

14
3
85% credibility
Found May 26, 2026 at 14 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
TypeScript
AI Summary

Clarp is a command-line tool that acts as a free drop-in replacement for Claude Code's programmatic mode, letting existing scripts and automation tools use your Claude Code subscription instead of paying per API call.

How It Works

1
💡 You need Claude Code for your scripts

You want to automate tasks with Claude, but using the programmatic mode costs money per call.

2
📦 You install clarp

You run a simple install command and clarp sets itself up on your computer alongside your existing Claude Code.

3
🔄 You swap one command name

Instead of calling 'claude -p', you call 'clarp' with the same arguments and prompts you were already using.

4
🤖 Clarp runs Claude Code invisibly

Clarp starts Claude Code in a hidden terminal window and connects it through a local relay on your computer.

5
You choose how to interact
💬
Single prompt

Type your question and get an answer back immediately

🔗
Multi-turn chat

Send multiple prompts and Claude remembers context between them

🔒
Permission handling

When Claude wants to run a command, you can approve or deny it

6
📤 You get the same output format

Your scripts receive the same structured data they expected from 'claude -p', so nothing breaks.

✅ Your automation works, subscription-style

Your scripts run without modification, but you're using your existing Claude Code subscription instead of paying per call.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 14 to 14 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is clarp?

Clarpt is a CLI tool that acts as a transparent drop-in replacement for `claude -p`, routing your scripts and automation through Claude Code's existing subscription rather than metered API calls. It works by spinning up Claude Code in a hidden terminal and running a local HTTP proxy that passively observes the API traffic flowing through. The tool mirrors the exact input/output protocol that `claude -p` uses, so your existing pipelines and IDE extensions work without modification. It supports streaming JSON, multi-turn sessions, permission handling, and most Claude Code flags.

Why is it gaining traction?

The core appeal is cost: if you already pay for Claude Code, running scripts through `clarp` costs nothing extra while `claude -p` usage now carries per-call pricing. The tool is particularly attractive to teams running automated code review, CI pipelines, or editor integrations that make heavy use of the print-mode interface. It handles the messy parts like permission dialogs, session resumption, and token-level streaming without requiring users to understand the underlying PTY or proxy mechanics.

Who should use this?

DevOps and CI/CD engineers who have Claude Code in their build environments and want to automate tasks without racking up API bills. Developers building editor extensions or scripts that already target the `claude -p` interface and want to avoid the pricing shift. Teams on Claude Max, Pro, or Team plans who have headroom in their subscriptions and want to use it for batch operations.

Verdict

Clarpt delivers on its promise with solid test coverage and a thoughtful architecture, but the 0.85% credibility score reflects a very new project with only 14 stars and an explicit experimental warning. Use it in production at your own risk, and keep an eye on whether Anthropic restricts the `ANTHROPIC_BASE_URL` approach in future Claude Code releases. For non-critical automation where subscription overhead is acceptable, this is a clever workaround worth watching.

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.