Search the documentation
12 pages for --bare.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Authentication
Claude Code CLI · in the page
authentication
…mode) does not read `CLAUDE_CODE_OAUTH_TOKEN`. If your script passes `--bare`, authenticate with `ANTHROPIC_API_KEY` or an `apiKeyHelper` instead.
Claude Code changelog
Claude Code CLI · in the page
changelog
…le payload * Background sessions now preserve `--ide`, `--chrome`, `--bare`, `--remote-control`, and other flags across retire→wake, and respawn state validation was hardened * Background sessions…
Explore the .claude directory
Claude Code CLI · in the page
claude-directory
…ld files beneath it. * **Bare mode**: when you run `claude -p` with [`--bare`](/docs/en/headless#start-faster-with-bare-mode), Claude Code doesn't run the sweep in that session. * **Paused sweep**: if…
CLI reference
Claude Code CLI · in the page
cli-reference
…| | `--bare` | Minimal mode: skip auto-discovery of hooks, skills, custom commands, subagents, p…
Environment variables
Claude Code CLI · in the page
env-vars
…en/memory#auto-memory). Set to `0` to force auto memory on even when `--bare` mode or [`autoMemoryEnabled: false`](/docs/en/settings-reference#automemoryenabled) would otherwise disable it. When disab…
Glossary
Claude Code CLI · in the page
glossary
…n-modes#eliminate-prompts-with-auto-mode) ## B ### Bare mode With `--bare`, Claude Code starts without loading hooks, skills, custom commands, subagents, plugins, MCP servers, auto memory, or CLAUD…
Run Claude Code programmatically
Claude Code CLI · in the page
headless
…ilure as the result on stdout. ### Start faster with bare mode Add `--bare` to reduce startup time by skipping auto-discovery of hooks, skills, custom commands, [subagents](/docs/en/sub-agents), plu…
Monitoring
Claude Code CLI · in the page
monitoring-usage
…ssion that exits sooner emits nothing. When you run `claude -p` with `--bare`, Claude Code doesn't run the sweep and emits nothing. Like every OTel event on this page, it goes only to the telemetry b…
Configure permissions
Claude Code CLI · in the page
permissions
…ither the project's settings files nor its `.mcp.json` * Start with [`--bare`](/docs/en/headless#start-faster-with-bare-mode) so Claude Code reads no hooks, skills, custom commands, subagents, plugins…
Claude Code settings reference
Claude Code CLI · in the page
settings-reference
…mething that outranks this key turns it off for the session, such as `--bare`, safe mode, or `CLAUDE_CODE_DISABLE_AUTO_MEMORY` * `false`: Claude doesn't read from or write to the auto memory directo…
Create custom subagents
Claude Code CLI · in the page
sub-agents
…frontmatter: * [`--strict-mcp-config`](/docs/en/cli-reference) and [`--bare`](/docs/en/cli-reference) * [Enterprise managed MCP configuration](/docs/en/managed-mcp) * [`allowedMcpServers` and `denied…
Tools reference
Claude Code CLI · in the page
tools-reference
…the web](/docs/en/claude-code-on-the-web) * **Startup mode**: not a [`--bare`](/docs/en/headless#start-faster-with-bare-mode) session. Bare mode loads only shell and file tools, so the tool is never r…