# /auto-mode-setup Command

> It drafts the list of places auto mode may trust.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** /auto-mode-setup, autoMode.environment

## Think of it like

It is like a list of friends you give the guard, so he lets them in.

## Definition

/auto-mode-setup writes a first draft of the places auto mode may trust. At the start, auto mode trusts only your work folder and this project's own code host. A push to your company's other code, or a write to a team cloud bucket, is blocked. This command reads your project and your recent sessions, lists the code hosts, buckets and sites you use, and shows you the draft. If you say yes, it saves it to ~/.claude/settings.json.

## Example

In auto mode, Claude is blocked each time it pushes to Jack's company code host. He runs /auto-mode-setup, checks the draft, and saves it. The pushes now go through.

## Example code

```console
/auto-mode-setup
```

Draft the places auto mode may trust.

## Why it matters

Auto mode blocks anything going to a place it does not know. This tells it which places are yours.

## Common mistake

Saving the draft without reading it. Each line is a place Claude may now send your work to without asking.

## Three principles

- **Drafts a trust list.** Hosts, buckets, sites.
- **From your work.** Project and sessions.
- **You review it.** Then it saves.

## Related terms

- [Auto Mode](https://learn.benibix.com/term/ai/auto-mode)
- [Permission Rule](https://learn.benibix.com/term/ai/permission-rule)
- [/fewer-permission-prompts Command](https://learn.benibix.com/term/ai/fewer-permission-prompts-command)
- [/update-config Command](https://learn.benibix.com/term/ai/update-config-command)

## Taught in

- [Setup and Config Commands](https://learn.benibix.com/learn/ai-claude-code-commands/setup-and-config-commands): Claude Code Commands, 9/17

![Three commands, each writing to a settings file: /auto-mode-setup to your user settings, /fewer-permission-prompts to the project settings, /update-config to whichever file fits.](https://learn.benibix.com/diagrams/cmd-settings-writers.svg)

---

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