Claude Code headless mode (claude -p) now uses plan credits
Melvin Vivas · X post · 2026-06-16 · Open on X
Topics: AI Dev Tools & Productivity, LLMOps, Deployment & Monitoring · Level: intermediate
Summary
A short billing update: running Claude Code in non-interactive (print/headless) mode with claude -p now draws from your subscription plan credits. It is no longer charged as extra usage. This matters for anyone scripting or automating Claude Code.
Key points
claude -pruns Claude Code non-interactively (print/headless mode), which is useful for scripts and automation.- According to the creator,
claude -pusage now comes out of plan credits rather than additional/extra billing. - Check your plan's usage limits before running heavy automated
claude -pjobs.
Resources mentioned
- Claude Code · tool · code.claude.com · paid · recommended by both Bashiri Smith & Melvin Vivas
Build agents and pipelines from the terminal; the guide's main agentic coding tool.
Also in: First impressions: Claude Code in the cloud is good and fast (Melvin Vivas on X · notes), Why Claude Code feels faster: gzipped turns and instant cloud sessions (Melvin Vivas on X · notes), Watch What Fills Your Coding Agent's Context and When to Clear (Melvin Vivas on X · notes), Claude Code's Right Sidebar and Context Breakdown (Melvin Vivas on X · notes) and 124 more
Try this
- If you automate with `claude -p`, keep an eye on how it uses up your plan credits.
More in AI Dev Tools & Productivity
- Grok Imagine Video 1.5: xAI's New Image-to-Video Model
- Request for Claude Code to support AGENTS.md
- Factory 2.0: From Coding Agents to Software Factories
- Creator refreshed his website quickly using Cursor
- Automated daily 'AI News Today' page built with Cursor automations
- Cursor Cloud Agents: guardrailed PR auto-approval without a human