“Code Mode (experimental) isn't available”: Claude Code fix
Claude Code started without Code Mode. The reason after the colon names the cause: version, surface, model, gateway or a setting. Here is each fix.
"Code Mode (experimental) isn't available" means Claude Code started your session with its ordinary tools, because something rules out Code Mode, its experimental way of running tools from JavaScript. The cause is usually on your side or a documented limit (an old version, an app that doesn't support it, the wrong model, a gateway, a setting in the wrong file), and the reason after the colon names it. Only two reasons point at Anthropic.
claude-for is an independent guide, not affiliated with Anthropic. Everything below was checked on December 5, 2026 against Anthropic's Code Mode docs, the Claude Code CHANGELOG and public GitHub reports.
The exact wording, and its variants
The full line, as quoted in GitHub issue #110347 on Claude Code 2.1.325:
"Code Mode (experimental) isn't available: it doesn't yet work with an installed mod (a plugin with JavaScript hooks) that checks tool calls. Starting with the ordinary tools."
The start and the end never change; the middle is the reason. Anthropic's troubleshooting section says the line appears near the top of the session, and that /status shows the reason too. The wording is present in Claude Code 2.1.337, checked December 5, 2026.
Reasons seen in reports and in the docs:
- "for now it only works in the interactive terminal", from a chat app built on Claude Code (#109679, version 2.1.325) and from Claude Desktop (#110673).
- "for now it only works in the terminal, with claude -p, and in Agent SDK apps, and not in cloud, remote, or prewarmed sessions", the newer text, quoted in #112894 on 2.1.332.
- "it isn't open to your account yet" and "Anthropic has turned it off for now", listed in the docs.
Two look-alikes are not errors. "Code Mode (experimental) will be on after you quit and start Claude Code again the same way. This session uses the ordinary tools." only asks for a restart. "Code Mode (experimental) is on" is the line you want.
What Code Mode is
Without Code Mode, Claude calls Bash, Read or Edit one at a time and reads each result. With it, Claude writes a short JavaScript program that makes several tool calls in one step, and Claude Code runs it in your session. The docs suggest it for changes repeated across many files, searches that need filtering, and commands that can run in parallel.
It arrived in Claude Code 2.1.323, released November 12, 2026. It is experimental and off by default, and the docs warn it "may change or be removed in any release".
Where Code Mode works
| Where you run Claude Code | Code Mode? |
|---|---|
claude in a terminal, Anthropic API | Yes, from 2.1.323 |
| Terminal on Bedrock, Agent Platform, Foundry | Yes, from 2.1.331 |
claude -p and Agent SDK apps | Not in the docs; see below |
| Claude Desktop's Code tab | No |
| VS Code panel, cloud sessions | No |
Remote Control, background (--bg) sessions | No |
| A gateway, or Claude for Government | No |
Sources: the docs' requirements and the "What's not available" list on Anthropic's Desktop page.
The Claude moves worth stealing, by email
Workflows tested on real jobs, sent only when they are worth it. Free.
Why it isn't available
- Version. You need 2.1.323 or later. Some setups need more: 2.1.326 with agent teams, 2.1.327 with a mod that hooks tool calls, 2.1.329 with telemetry turned off or OpenTelemetry events on, 2.1.333 with OpenTelemetry tracing.
- The switch is in the wrong file. Claude Code ignores the variable in a project's
.claude/settings.jsonand.claude/settings.local.json. A0in any file wins over a1elsewhere. - The model. "it only works with Opus 5.5, Sonnet 5.5 and later models". Haiku 5.5 and Fable 5.2 also qualify.
- The connection. "it isn't offered yet through a gateway or proxy", or "it doesn't work with an API key helper". A plain
HTTPS_PROXYis fine. - Your organization. An admin can block it in managed settings ("your organization's settings don't allow it"). HIPAA and zero data retention organizations can't use it.
- Anthropic's side. "it isn't open to your account yet", or "Anthropic has turned it off for now".
How to fix it
Read the reason
It follows the colon on the startup line. Run /status if it scrolled away.
Update Claude Code
Run claude --version, then claude update. If the stable channel lags behind, switch to the latest channel.
Put the switch in the right place
Start with CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1 claude, or add it to the env block of ~/.claude/settings.json. Remove any 0.
Restart and confirm
Quit, start claude the same way, and select “Yes, turn on Code Mode”. Look for “Code Mode (experimental) is on” near the top.
Name a supported model
Pass the full name, for example --model claude-opus-5-5. Aliases can select older models on some providers.
Remove what blocks it
Drop gateway settings and apiKeyHelper, start in the foreground without --remote-control or --restricted, and take REPL out of your deny rules.
Move to a terminal
In Claude Desktop or VS Code, run claude in a terminal window instead.
Seeing no Code Mode line at all usually means Claude Code never read the variable: an old version, a 0 somewhere, or the switch sitting in a file it ignores.
Agent SDK and claude -p: what the docs leave out
The docs still list an interactive terminal as the only surface. The CLI disagrees: from 2.1.330, released November 20, its own refusal text names claude -p and Agent SDK apps as places Code Mode works. In local binaries, the old "interactive terminal" text is in 2.1.328 and 2.1.329 and gone from 2.1.330, checked December 5, 2026.
The catch, per #112894: headless runs honor the variable only in the env block of --settings, the SDK's settings option. Exported in your shell, it is ignored without a word (#112954). Apps that label themselves, such as T3 Code, still get the refusal (#109679).
That self-label is CLAUDE_CODE_ENTRYPOINT, which Anthropic doesn't document. Some users change it to get Code Mode. Whether that is allowed on a subscription is an open question in #107106, so we don't recommend it.
When to stop and wait
Two reasons are not yours to fix. For "it isn't open to your account yet" on 2.1.323 or later, the docs say to check your connection, start again, and try another day. For "Anthropic has turned it off for now", update or start again later.
Which of the two you get depends on your version. In the local binaries, the account wording is in 2.1.328 and gone from 2.1.329, where the switch-off wording takes its place. Anthropic doesn't say whether the check behind it changed too. Check status.claude.com for a wider incident, and watch the CHANGELOG for Code Mode entries.
The honest limits
Anthropic doesn't say who gets Code Mode when, or how long a switch-off lasts. It gives no date for Desktop, Agent SDK hosts, Remote Control or background sessions.
We counted 13 GitHub issues about Code Mode not starting or not being offered, opened November 13 to December 1, 2026, with 50 reactions; the Agent SDK request has 29. As of December 5, no Anthropic staff member had replied to the requests for Desktop, the SDK, Remote Control or background sessions.
Claude Code 2.1.334 added a separate reason for sessions Claude Desktop starts: "Claude Desktop didn't start this session in a way that allows it." It is in the local 2.1.337 binary; we don't know if the app shows it. We read docs, issues and binaries; we did not run Code Mode.
Questions people ask
What is Code Mode in Claude Code?
An experimental, off-by-default feature added in Claude Code 2.1.323. Claude writes JavaScript that makes several tool calls in one step, instead of calling Bash, Read or Edit one by one. You turn it on with CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1 in your shell or user settings.
Does Code Mode work in Claude Desktop's Code tab?
No. Anthropic's Desktop docs say Desktop sessions start without Code Mode, even if you turn it on in your settings, and tell you to run the CLI in a terminal. Feature request #110673 asks for Desktop support. See our Desktop bridge guide for moving sessions.
Can I use Code Mode with the Agent SDK or claude -p?
Not according to the docs. In practice, users report it running since 2.1.330 when the variable sits in the env block of --settings, the SDK's settings option (#112894). Exported only in the shell, it is silently ignored.
Do I need a Max plan for Code Mode?
The docs name no plan tier: a Claude subscription, a Console account or a supported cloud provider all qualify. What rules it out is a gateway, Claude for Government, an older model, or an organization setting such as an admin block, HIPAA or zero data retention.
Code Mode is not fast mode, which keeps the same tools and only speeds up output. If Anthropic opens Code Mode to Desktop or the SDK, the newsletter will say so in one line.
