ybouane

dash-p - Make Claude Scriptable Again

by
Want claude -p and the Agent SDK without paying per-token API pricing? dash-p scripts the Claude Code app you already use, on the subscription you already pay for. Your account, your auth, no API key — just composable. How? dash-p injects your prompts directly in the official Claude TUI and parses the output to give you programmatic access to Claude Code.

Add a comment

Replies

Best
ybouane
Maker
📌
As you probably know, on June 15th, Claude will start charging api pricing for all calls to `claude -p` and the use of the Agent SDK. This means that subscription weekly quota can no longer be used for using claude programmatically or through third party orchestration apps. That's the problem dash-p solves! If Claude can interact with apps through their interfaces, developers should be able to interact with Claude Code through theirs. Claude can click buttons, type into apps, read screens, and operate software through a GUI. So why shouldn’t developers be able to automate their own Claude Code session? dash-p is a CLI and TypeScript library that makes Claude Code scriptable by driving the real Claude TUI process you already use. It does not bypass Claude Code. It does not fake network requests. It does not bypass authentication. It simply launches the official claude command, injects input programmatically, reads output programmatically, and exposes a clean developer interface on top. The same Claude Code. The same local session. The same authentication flow. Just composable. Not a replacement for Claude Code. A bridge that makes it scriptable. Replace: claude -p "summarize this repo" with: dash-p "summarize this repo"