Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.326 ·

Background sessions started from a --bare session explain the key refusal

A background session started from a --bare session now explains why it can't use that session's API key and what to run instead

You'll notice Improvements
JSON All of v2.1.326
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
SessionsArea: what it touches
ImprovementsKind: in v2.1.326,
ImprovementsSection of the release
What

--bare starts Claude Code in a minimal mode, and --bg starts a session in the background. If you start a background session from inside a --bare session, it is not --bare itself, so it cannot use that session's API key. Claude Code now explains this, saying the key is one "which nobody approved". It suggests running the task in the terminal or starting it with claude --bare --bg.

Why

It makes clear which credentials a background session may use when it is started from a --bare session.

Read from
Names in the bundle--bare
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Confirmed since Anthropic's documentation has since written up --bare, on Run Claude Code programmatically. Add `--bare` to reduce startup time by skipping auto-discovery of your hooks, skills, custom commands, [subagents](https://code.claude.com/docs/en/sub-agents.md), installed plugins, MCP servers, auto memory, and CLAUDE.md. Without it, `cla… headless see the edit
Added since A small documentation edit on CLI reference touched a line naming --bare after this was published. | `--bare` | Minimal mode: skip auto-discovery of your hooks and of skills, custom commands, subagents, installed plugins, MCP servers, auto memory, and CLAUDE.md so scripted calls start faster. Skills in a directory you pass with `--add-d… cli-reference see the edit
How sure we are
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agreesA small documentation edit on CLI reference touched a line naming --bare after this was published.
Anthropic's release notes agreeChanged --bare sessions on an unapproved API key: moving one to the background is now refused in most setups, and claude --bare --bg exits…

See this entry in the whole of v2.1.326 →

Feedback