# CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS

> Set to 1, it strips pre-release betas from each request.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** CLAUDE_CODE_DISABLE_STRUCTURED_OUTPUTS

## Think of it like

It is like you peel the new stickers off a toy. Then it fits in the old box.

## Definition

CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS set to 1 takes the beta headers out of each request. Their fields go too. Use it when a gateway fails with an error about them. Some features then stop, such as tool search. A second one, for structured output, takes out just that beta.

## Example

Jack's gateway says Extra inputs are not permitted on every call. He sets this, and the calls go through.

## Example code

```bash
export CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1
claude
```

Send only plain requests to a strict gateway.

## Why it matters

Strict gateways reject fields they do not know. This makes the requests plain enough to pass.

## Common mistake

Leaving it on after the gateway is fixed. You keep losing the beta features for no reason.

## Three principles

- **Strips betas.** Headers and fields.
- **For strict gateways.** Unexpected value errors.
- **Some features stop.** Such as tool search.

## Related terms

- [ANTHROPIC_BETAS](https://learn.benibix.com/term/ai/anthropic-betas-variable)
- [--betas Flag](https://learn.benibix.com/term/ai/betas-flag)
- [DISABLE_INTERLEAVED_THINKING](https://learn.benibix.com/term/ai/disable-interleaved-thinking-variable)

---

Source: https://learn.benibix.com/term/ai/claude-code-disable-experimental-betas-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.
