Show HN: Claude-pee: use Claude -p without the programmatic usage credit pool

Use Claude Code programmatically as an interactive user - sbhattap/claude-pee
6 points by subarnab 161 days ago github.com 2 comments
Summary not yet generated for this article.

Original Text

Anthropic announced today that starting June 15, paid Claude plans get a separate monthly credit pool for programmatic usage (claude -p, Agent SDK). Seems OK at first glance but it turns out the monthly credit pool is charged at API rates, which effectively kills any serious programmatic usage for hobbyists.

This is a small Claude Code wrapper which runs claude in a PTY, injecting input, finding the session transcript jsonl file, and using a stop hook to determine when claude is done.

It's a drop-in replacement for claude code. All arguments except the "-p" argument are forwarded as-is.

claude-pee -p "hello world"

Could be used as a cheap way of using Anthropic subscriptions for OpenClaw, Hermes, etc.

Written in Rust, MIT license.

Comments (2 of ) ⌛

Loading more comments... ⌛
Scroll down to load more comments
No comments available.
Type to search HN and engineering blog articles
Press Escape to close  |  ↑↓ to navigate  |  Enter to open