> For the complete documentation index, see [llms.txt](https://docs.tabnine.com/main/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tabnine.com/main/getting-started/tabnine-cli/features/yolo-mode.md).

# YOLO Mode

YOLO mode is Tabnine CLI’s “approve everything” mode for tool calls.

When enabled, Tabnine CLI sets the approval mode to `yolo`, adds a policy rule that allows `*` tools, and automatically approves tool calls that would normally ask for confirmation first. This can include potentially destructive actions such as shell commands, file edits, and tool redirections, unless another security or admin policy blocks them.

### Enable YOLO from Tabnine CLI

Use the legacy YOLO flag:

```bash
tabnine --yolo
```

You can also use the short flag:

```bash
tabnine -y
```

Alternatively, set the approval mode explicitly:

```bash
tabnine --approval-mode=yolo
```

### **Restrict YOLO Mode (**[**v6.4.0**](https://docs.tabnine.com/main/getting-started/tabnine-cli/features/pages/risy3bTOlfBfgFRRXK8K#v6.4.0)**)**

YOLO mode lets users run the Tabnine CLI with automatic approval of all tool calls without manual confirmation. While useful for trusted automation scenarios, unrestricted YOLO access can pose a security risk when users or CI scripts execute arbitrary tools against organizational resources.

The **Restrict YOLO mode** toggle on the Agent Features admin page allows admins to block all YOLO entry points org-wide for regular users:

| Entry point                     | Blocked when restricted |
| ------------------------------- | ----------------------- |
| `--yolo` / `-y` flag            | ✅                       |
| `--approval-mode=yolo`          | ✅                       |
| In-session approval-mode picker | ✅                       |
| Headless mode (`-p`)            | ✅                       |

To enable it, go to the Admin Console and navigate to **Agent Features**.

Under **Security**, locate **Restrict YOLO (auto-approve) mode in the CLI**. Toggle the setting **ON**.

The restriction is **off by default**; in other words, YOLO mode is permitted unless an admin explicitly restricts it via this toggle.

**Note:** The setting takes effect on the user's **next CLI session**. Users with an active session must restart the CLI for the restriction to apply.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.tabnine.com/main/getting-started/tabnine-cli/features/yolo-mode.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
