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.
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 sinceAnthropic'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…headlesssee the edit
Added sinceA 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-referencesee 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…