⌨️DISABLE_COST_WARNINGS
Also known as DISABLE_COST_WARNINGS=1
Set to 1, it hides the cost warning messages.
Think of it like
It is like you turn off the beep that says a meter is high.
Example
Emma's script reads Claude's output, and a cost warning broke the parse. She sets this, and the output stays clean.
Why it matters
A warning in the wrong place can break a script that reads the output.
Definition
Example code
bash
export DISABLE_COST_WARNINGS=1
claude -p "Summarize the log"Common mistake
Key takeaways
- 1Hides warnings. Only.
- 2Cost unchanged. Same spend.
- 3Clean output. For scripts.