# CLAUDE_CODE_DISABLE_THINKING

> Set to 1, it leaves the thinking field out of each request.

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

## Think of it like

It is like you leave a box blank on a form. It does not mean no.

## Definition

CLAUDE_CODE_DISABLE_THINKING set to 1 leaves the thinking field out of each request. It is for a proxy that rejects that field. It does not turn thinking off. A model that thinks by default may still think. To ask for no thinking, set MAX_THINKING_TOKENS to 0.

## Example

Emma's proxy failed every request with an error about thinking. She set this, and the requests went through.

## Example code

```bash
export CLAUDE_CODE_DISABLE_THINKING=1
claude
```

Stop sending the thinking field to a strict proxy.

## Why it matters

Some proxies reject fields they do not know. This lets Claude Code work through them.

## Common mistake

Using it to save money on thinking. It does not turn thinking off. Use MAX_THINKING_TOKENS=0 for that.

## Three principles

- **Leaves the field out.** Of every request.
- **For strict proxies.** That reject it.
- **Not an off switch.** Use 0 tokens.

## Related terms

- [MAX_THINKING_TOKENS](https://learn.benibix.com/term/ai/max-thinking-tokens-variable)
- [CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING](https://learn.benibix.com/term/ai/claude-code-disable-adaptive-thinking-variable)
- [DISABLE_INTERLEAVED_THINKING](https://learn.benibix.com/term/ai/disable-interleaved-thinking-variable)

## Told apart from

- [CLAUDE_CODE_DISABLE_THINKING vs MAX_THINKING_TOKENS=0](https://learn.benibix.com/compare/claude-code-disable-thinking-variable-vs-max-thinking-tokens-variable): People think CLAUDE_CODE_DISABLE_THINKING turns thinking off. It does not. It only leaves the thinking field out of the request, for a proxy that rejects the field. A model that thinks by default may still think. MAX_THINKING_TOKENS=0 is the one that asks the Anthropic API for no thinking. On a cloud provider, both just leave the field out. Some new models cannot have thinking turned off at all.

![MAX_THINKING_TOKENS=0 asks for no thinking. DISABLE_THINKING sends nothing, so a model may still think.](https://learn.benibix.com/diagrams/env-thinking-off.svg)

---

Source: https://learn.benibix.com/term/ai/claude-code-disable-thinking-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-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
