# Bare Mode

> Starting Claude Code with none of your hooks, skills or memory loaded.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** claude --bare, --bare flag, CLAUDE_CODE_SIMPLE

## Think of it like

It is like a plain pizza. With no toppings, it tastes the same in every shop.

## Definition

Bare mode starts Claude Code without any of your extras. With the --bare flag, it skips hooks, skills, plugins, MCP servers, auto memory and CLAUDE.md. Skills in a folder you pass with --add-dir still load. Nothing from the machine is loaded, so a run gives the same result on every computer. It is meant for CI jobs and scripts, where a stray setting could change the outcome.

## Example

Emma's CI job gave different results on two runners. She adds --bare, and the runs match, because neither loads a local CLAUDE.md.

## Example code

```bash
claude --bare -p "run the linter and sum up the errors"
```

A clean run that ignores local extras.

## Why it matters

You can only trust a job that runs on its own if each run gives the same result.

## Common mistake

Using it for daily work. You lose your project rules and tools, so keep it for scripts.

## Three principles

- **Nothing extra.** No hooks, skills or memory.
- **Same everywhere.** Repeatable.
- **For CI.** And scripts.

## Related terms

- [Non-Interactive Mode](https://learn.benibix.com/term/ai/non-interactive-mode)
- [CLAUDE.md](https://learn.benibix.com/term/ai/claude-md)
- [Claude Code Skill](https://learn.benibix.com/term/ai/claude-code-skill)
- [Claude Code Plugin](https://learn.benibix.com/term/ai/claude-code-plugin)

## Told apart from

- [--safe-mode vs Bare Mode](https://learn.benibix.com/compare/safe-mode-flag-vs-bare-mode): People think --safe-mode and --bare do the same thing, since both skip your add-ons. They have different jobs. --safe-mode is for finding a fault. It turns off CLAUDE.md, plugins, hooks and the rest, but sign-in, tools and permissions work as usual. Bare mode is for scripts and CI. It never reads your saved sign-in, so it needs an API key, and it gives Claude just a few tools. Use safe mode when something is broken. Use bare mode for a run that must act the same on each machine.

## Taught in

- [Claude Code Run Modes](https://learn.benibix.com/learn/ai-claude-code/claude-code-run-modes): Claude Code, 16/16

![Bare mode starts Claude Code with the extras left out: no hooks, skills, plugins, MCP servers or CLAUDE.md.](https://learn.benibix.com/diagrams/cc-bare-mode.svg)

---

Source: https://learn.benibix.com/term/ai/bare-mode
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-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
