# DISABLE_COST_WARNINGS

> Set to 1, it hides the cost warning messages.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** DISABLE_COST_WARNINGS=1

## Think of it like

It is like you turn off the beep that says a meter is high.

## Definition

DISABLE_COST_WARNINGS set to 1 hides the messages that warn you about cost. The cost itself does not change. Only the warning goes away.

## Example

Emma's script reads Claude's output, and a cost warning broke the parse. She sets this, and the output stays clean.

## Example code

```bash
export DISABLE_COST_WARNINGS=1
claude -p "Summarize the log"
```

Keep cost notes out of a script's output.

## Why it matters

A warning in the wrong place can break a script that reads the output.

## Common mistake

Thinking it saves money. The cost is the same. You just stop seeing the note.

## Three principles

- **Hides warnings.** Only.
- **Cost unchanged.** Same spend.
- **Clean output.** For scripts.

## Related terms

- [/usage Command](https://learn.benibix.com/term/ai/usage-command)
- [--max-budget-usd Flag](https://learn.benibix.com/term/ai/max-budget-usd-flag)
- [Non-Interactive Mode](https://learn.benibix.com/term/ai/non-interactive-mode)

---

Source: https://learn.benibix.com/term/ai/disable-cost-warnings-variable
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-16
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
