Cline permissions: auto-approve, YOLO mode and the CLI defaults

Cline's permission model is built in on the open source extension and CLI, with no sandbox feature documented for auto-approve, and YOLO mode is on by default for CLI prompts. Enforcement needs admin configuration and outside controls.

On this page

Does Cline's permission model meet our approval requirement?

A security reviewer must decide what a coding agent may read, edit and run without a prompt, and Cline gives you per-category auto-approve toggles and a YOLO mode in the open source extension and CLI, with no paid edition required for these settings. The documented controls are approval toggles, not a sandbox or a command allowlist: Cline's auto-approve page says it does not use a fixed allowlist to decide which commands are safe, and the model marks each command with a requires_approval flag. Enforcement therefore has to be built around the tool, not assumed from it.

Before approval, confirm which toggles each group of users can switch on. The Cline auto-approve documentation lists separate toggles for reading files, editing files, safe commands, all commands, the browser tool and MCP tools, and recommends enabling only reading project files at first. Ask whether your teams will keep that default, and whether an enterprise admin can prevent staff from enabling the broader categories. The enterprise remote configuration covers some of this, so check which settings it can lock in your Cline client version before you rely on it.

Then check the CLI separately, because its defaults differ from the extension. The Cline CLI reference states that prompts run in YOLO mode by default, with tool auto-approval set to true unless --auto-approve false or plan or act mode is passed, and that the CLI has no allow or deny list for shell commands. It suggests a PreToolUse hook to cancel disallowed command calls, so decide whether your team will build and test that hook. The same reference mentions a CLINE_SANDBOX variable described only as enabling sandbox mode, and the auto-approve page describes no sandbox feature, so ask Cline what that variable enforces before you count it as a control.

Permission controls by surface and edition

This table compares the permission controls in Cline's open source VS Code extension, the Cline CLI and Cline Enterprise, using the status labels built in, paid only, outside component and not documented. Read each row against the surface you plan to deploy, because approval defaults differ between the extension and the CLI. The main takeaway is that CLI prompts run in YOLO mode by default, so confirm approval settings before any rollout.

ControlOpen source extensionCline CLICline Enterprise
Read project filesBuilt in. Separate auto-approve toggle, and the recommended first toggle to enable.Built in. Governed by tool auto-approval, which defaults to true.Confirm with Cline which auto-approve settings remote configuration can enforce.
Edit filesBuilt in. Separate auto-approve toggle from reading files.Built in. Covered by the same tool auto-approval default.Confirm with Cline.
Safe and all commandsBuilt in. Separate toggles for safe commands and all commands. The model sets a requires_approval flag; no fixed allowlist.Not documented as separate toggles. Confirm with Cline.Confirm with Cline.
Browser tool and MCP toolsBuilt in. Separate auto-approve toggles for the browser tool and MCP tools.Confirm with Cline.Confirm with Cline which MCP and browser approvals an admin can set.
YOLO modeBuilt in. Disables all safety checks. Cline recommends throwaway projects or sandboxed environments first.Built in by default. Prompts run in YOLO mode unless changed.Confirm with Cline whether an admin can set or lock YOLO mode.
CLI tool auto-approval defaultNot applicable. Approval is set through the toggles above.Default true unless --auto-approve false or plan or act mode is passed. ACP mode defaults to false.Confirm with Cline whether an organization can change this default.
CLI shell allow or deny listNot documented. The model marks each command; no fixed allowlist.Not built in. No allow or deny list. Docs suggest a PreToolUse hook to cancel disallowed calls.Confirm with Cline.
Sandbox mode (CLINE_SANDBOX)Not documented. The auto-approve page describes no sandbox feature.Not documented beyond the CLINE_SANDBOX variable, which enables sandbox mode.Confirm with Cline whether sandbox mode can be set centrally.
Organization enforcement via remote configurationBuilt in for VS Code and JetBrains. Organization-controlled settings show a lock icon.Confirm with Cline which CLI settings honor remote configuration.Paid only. Settings are read at member sign-in and locked settings show a lock icon.

How Cline decides a command needs approval

Cline does not decide whether a command is safe from a fixed list. According to Cline's auto-approve documentation, the model marks each command with a requires_approval flag, and Cline does not use an allowlist of safe commands to override that marking. A reviewer therefore cannot predict approval behavior by reading a published list of commands. The practical step is to test the tool in a non-production project and record which commands it runs without a prompt under each setting you plan to allow.

The per-category auto-approve toggles sit on top of that flag. Separate toggles cover reading files, editing files, safe commands, all commands, the browser tool and MCP tools, and Cline's guidance is to enable only reading project files at first. Enabling all commands removes the prompt for every shell command the model proposes, which is a different risk from approving file reads. YOLO mode goes further: the documentation says it disables all safety checks and recommends trying it only in throwaway projects or sandboxed environments. Confirm which of these settings your Cline Enterprise remote configuration can lock, and which client versions honor the lock.

CLI defaults are the step most likely to surprise an administrator. The Cline CLI reference says prompts run in YOLO mode by default, with tool auto-approval defaulting to true unless --auto-approve false or plan or act mode is passed. In ACP mode the default is false. Any rollout that gives staff the CLI should set the flag explicitly in its standard invocation and test it. The same reference states the CLI has no allow or deny list for shell commands and suggests a PreToolUse hook to cancel disallowed calls, so that control is one your team would build and maintain. Also note that enforcement sits in the client: the documented controls run on the developer's machine, not in a server-side policy that a central team can audit at execution time.

Decisions to make before approving auto-approve categories

Each Cline permission category changes what the agent can read, edit, run or reach without a person clicking approve. Settle these decisions as a written policy before staff install the extension or the CLI, because the defaults differ between the two.

Which categories to enable

Start with the reading of project files only, which is the first step the Cline auto-approve documentation recommends. Each toggle covers a separate category: reading files, editing files, safe commands, all commands, the browser tool and MCP tools. Enabling editing or command categories lets the agent change code or run programs with no prompt. Record which categories are permitted for each team and who may change them. Confirm in your own tests how the toggles behave in your Cline version.

Auto-approve docs

Command execution and the approval flag

The model marks each command with a requires_approval flag, and Cline does not use a fixed allowlist to decide which commands are safe. That means the decision to run a command depends on what the model reports, not on a list you can audit. Treat the all-commands toggle as the highest-risk setting in the extension. Ask Cline to confirm in writing how the flag is set and whether an administrator can override it.

Whether YOLO mode is permitted

The Cline auto-approve documentation says YOLO mode disables all safety checks and recommends trying it only in throwaway projects or sandboxed environments first. Decide whether YOLO mode is allowed at all, and if so, on which machines and repositories. Organization-controlled settings can carry a lock icon in VS Code and JetBrains, so confirm which policy controls your Cline plan can enforce on this setting before you rely on it.

Plan or act mode, or explicit auto-approve false

The Cline CLI reference states that prompts run in YOLO mode by default, and tool auto-approval defaults to true unless you pass --auto-approve false or use plan or act mode. In ACP mode the default is false. Decide which of these the CLI wrappers and scripts must use, and test the chosen command before rollout. Scripts that omit the flag inherit the permissive default, so review every automation that calls the CLI.

CLI reference

Who owns the PreToolUse hook

The CLI has no allow or deny list for shell commands. The CLI reference suggests a PreToolUse hook that cancels disallowed command calls, so the hook may be the only command filter for CLI runs. Name an owner for the hook, store it under change control, and test that it blocks the commands your policy forbids. Also confirm whether the hook runs for every tool call and whether staff can disable it locally. Do not assume the CLI_SANDBOX environment variable provides isolation, because the documentation describes it only as enabling sandbox mode.

Workspaces and projects staff may open

An auto-approved agent can read and edit whatever folder it is pointed at, and a read-only category still exposes source code and secrets in that folder to the model provider. Define which repositories and workspaces are approved for agent use, and keep production credentials, customer data exports and infrastructure state out of those folders. Use throwaway or sandboxed environments for any test of YOLO mode. Assign a person to approve new repositories before they are added.

How the permission answer changes by situation

A developer who installs the open source VS Code extension or CLI on their own machine controls every permission setting personally. Auto-approve is off by default for each category, so Cline asks before it acts unless the developer turns a toggle on. The Cline auto-approve page recommends enabling only reading project files at first, and it describes separate toggles for reading files, editing files, safe commands, all commands, the browser tool and MCP tools.

  • Per-category toggles: Each toggle is set in the developer's own client, and nothing in the open source extension forces a common setting across staff.
  • Model-marked commands: The model tags each command with a requires_approval flag, and Cline does not use a fixed allowlist of safe commands.
  • YOLO mode: Available to the individual user, and the auto-approve page says it disables all safety checks, so it should be tried only in throwaway projects or sandboxed environments.
  • No organization enforcement: The open source tier has no remote configuration, so the organization cannot lock these settings.

Confirm with Cline which of these defaults applies to the exact extension version your staff install, and whether your policy requires individuals to record their settings.

Order of work before enabling Cline for staff

This sequence turns Cline's permission settings into a tested, reviewable baseline before any developer runs it on company code. Each step ends with a check you can record, so the pilot's permission state is known rather than assumed.

  1. Confirm which Cline surfaces staff will use

    The security owner and engineering lead list each surface in scope: the VS Code extension, JetBrains, the Cline CLI, and any ACP or remote host setups. Permissions differ by surface, so each one needs its own check in later steps. Record the editor versions, the CLI installation method, and whether any developer runs Cline on a shared or remote host. The step is done when every surface has a named owner and a written entry in the rollout record.

  2. Set the CLI auto-approval and YOLO defaults explicitly

    Do not rely on the CLI's built-in defaults. The Cline CLI reference states that prompts run in YOLO mode by default and that tool auto-approval defaults to true unless the user passes --auto-approve false or plan or act mode. Standardize a wrapper, shell profile or managed configuration that sets the values you approve, and confirm the ACP default, which the reference lists as false. The step is done when a test run on a clean machine shows the intended approval behavior, captured in a short written note.

  3. Enable only file-read auto-approval for the pilot

    In the extension, turn on the read-project-files toggle and leave edit files, safe commands, all commands, browser and MCP tool auto-approval off. Cline's auto-approve page recommends starting with reading project files only, and it states that the model tags each command with a requires_approval flag rather than using a fixed allowlist. The step is done when a pilot developer's settings screen matches the documented baseline and a sample task still prompts for every edit and command.

  4. Test command blocking in a disposable project

    The CLI reference states the CLI has no allow or deny list for shell commands and suggests a PreToolUse hook that cancels disallowed command calls. Build the hook in a throwaway repository, then ask the agent to run commands on your deny list, including destructive and network commands. Confirm the hook fires, the command does not execute, and the refusal appears in the transcript. The step is done when the test results, with hook configuration and output, are filed. Treat this as a control to verify, not a guarantee.

  5. Check the sandbox setting and apply OS or container isolation

    The CLI reference lists a CLINE_SANDBOX environment variable described only as enabling sandbox mode, and the auto-approve page describes no sandbox feature. Ask Cline in writing what CLINE_SANDBOX enforces before relying on it. Independently, run pilot sessions inside a container or virtual machine with restricted credentials and egress rules that allow only the inference provider and approved hosts. The step is done when the isolation boundary is documented and a test confirms the agent cannot reach an unapproved host or read files outside the mounted project.

  6. Verify lock icons where remote configuration applies

    If the organization uses Cline Enterprise, sign in a test account and confirm that organization-controlled settings display the lock icon in VS Code and JetBrains, as the remote configuration overview describes. Check that the YOLO and auto-approval policies you set centrally appear locked for that user. Where a surface does not show the lock icon, treat its settings as unmanaged and restrict that surface. The step is done when a screenshot or note records the locked and unlocked settings for each client.

  7. Review logs and set change control before wider access

    Confirm which events you can capture for each surface, such as tool calls, approvals and command executions, and where they are stored. Assign an owner for changes to auto-approval, YOLO defaults, hooks and sandbox settings, and require a review before any change reaches more users. Check the cline/cline security advisories page for changes to your version before each expansion. The step is done when the logging source, retention location and change approver are written down and the pilot group is approved to expand.

What the published advisories tell us about permission controls

Cline publishes security advisories on its GitHub repository, and three of them matter for this page: GHSA-9ppg-jx86-fqw7, GHSA-5c57-rqjx-35g2 and GHSA-3cj3-hqcr-g934. Read each one in full on the cline/cline security advisories page before approving a version. This page does not summarize their contents, so do not rely on a secondhand description of what they cover.

For each advisory, map the described weakness to the controls covered above: the auto-approve toggles for reading files, editing files, safe commands, all commands, the browser tool and MCP tools, whether YOLO mode was involved, and whether the flaw was reachable through the extension, the CLI or both. An advisory that depends on auto-approve being enabled is a different risk for a team that keeps those toggles off than for one that has enabled them broadly. Note whether the advisory changes the default behavior or only an edge case, because that determines whether your existing settings already limit exposure.

Record in your change file which released version fixes each advisory, the date you confirmed the fix, and the Cline client and version your developers actually run. Ask Cline to confirm the fixed version for each identifier in writing, and check that the CLI, the VS Code extension and the JetBrains plugin are each covered, since a fix in one client does not guarantee the others. Advisory-driven updates should be a recurring step in your rollout, not a one-time review, and the incident details covered on the security incidents page should feed the same record.

Evidence a security reviewer asks for on permissions

This table lists the evidence a reviewer should request for each Cline permission control, with the source that proves it. Read it as a checklist: a control is only verified when the organization can show the live setting, not just the documented default. Several Cline defaults differ between the extension and the CLI, so confirm each client separately.

ControlWhat to showWhere it comes from
Enabled auto-approve categories per teamA per-team record of which toggles are on for reading files, editing files, safe commands, all commands, the browser tool and MCP toolsCline auto-approve settings in each client, and the organization's own configuration records
YOLO and CLI default settingsThe effective YOLO state for each team, and the value of tool auto-approval in CLI runs, including any run where --auto-approve false was not passedCline CLI reference defaults, and the organization's own launch scripts and CI jobs
Documented approval decisionsA written decision for each enabled category, naming the approver, the project scope and the date the toggle was setThe organization's change records, since Cline does not use a fixed allowlist and the model flags each command with requires_approval
Hook configuration for cancelling disallowed commandsThe PreToolUse hook file, its version, and a test showing a disallowed command call is cancelledThe organization's repository and developer machine configuration, checked against the Cline CLI reference
Sandbox or isolation evidence for the hostProof of where agent runs execute, such as a dedicated VM or container, and a record of whether CLINE_SANDBOX was setThe host platform records, and the Cline CLI reference for the CLINE_SANDBOX variable, which it describes only as enabling sandbox mode
Remote configuration lock statusScreenshots or logs showing organization-controlled settings with the lock icon in VS Code and JetBrains, and the list of settings that are lockedCline remote configuration overview, and the organization's Cline Enterprise admin console
Advisory review and version recordThe installed Cline version on each host, and a dated review of advisories in the cline/cline repository against that versionThe cline/cline security advisories page on GitHub and the organization's software inventory

Questions buyers ask about Cline permissions

Is YOLO mode on by default in Cline?

It depends on the surface. The Cline CLI reference says prompts run in YOLO mode by default, with tool auto-approval defaulting to true unless --auto-approve false or plan or act mode is passed. In ACP mode the default is false. The auto-approve page describes YOLO mode as disabling all safety checks and recommends trying it only in throwaway projects or sandboxed environments first. For the VS Code extension, treat auto-approve as off until you have verified the setting on your own install, and confirm the current default with Cline. Your team's onboarding should state which surface each developer uses, because the CLI default is the one most likely to surprise a reviewer.

Can we block specific shell commands in Cline?

Not with a built-in allow or deny list for shell commands in the CLI. The Cline CLI reference states the CLI has no allow or deny list for shell commands and suggests a PreToolUse hook to cancel disallowed command calls. The auto-approve page adds that the model marks each command with a requires_approval flag and Cline does not use a fixed allowlist to decide which commands are safe. That means command blocking is a control you build around the tool, and its strength depends on how you write the hook and what it matches. Ask Cline whether a native policy for command blocking is planned, and test any hook against commands your developers actually run before relying on it.

Is there a sandbox for Cline commands?

The documentation supplied for this review does not establish a sandbox feature for Cline's command execution. The Cline CLI reference lists a CLINE_SANDBOX environment variable described only as enabling sandbox mode, and the auto-approve page describes no sandbox feature. Do not assume the variable isolates file access, network access or process execution. Ask Cline what CLINE_SANDBOX changes, which surfaces honor it, and what it does not restrict. Until you have a written answer, plan for Cline to run with the same local user rights as the developer, and limit risk with separate machines or containers that hold no production credentials.

What does it cost to set up permission controls, and what drives the effort?

The open source Cline extension, CLI and MCP Marketplace are free for individual developers, and the pricing page says the open source version has no subscriptions or seat fees. Users pay for AI inference at cost or bring their own API keys, so inference spend is the recurring cost to plan for. Setting permission policy is mostly internal effort: deciding which auto-approve categories are allowed, writing guidance, and building any PreToolUse hooks. Effort rises with the number of teams, the number of surfaces (extension, JetBrains, CLI), and how strict the command rules must be. Enterprise pricing is custom, so ask Cline for a quote that states which admin controls are included and how they are enforced.

Can we enforce these permission settings centrally?

Cline Enterprise supports central control. The Cline remote configuration page says Cline products read the organization's remote configuration when a member signs in, and organization-controlled settings show a lock icon in VS Code and JetBrains. Confirm in writing which permission settings, including auto-approve and YOLO mode, can be locked by remote configuration, and which Cline clients honor each one. The CLI is the surface to verify most carefully, because its defaults differ from the extension and a locked extension setting does not prove the same behavior in a terminal session. Ask for a test plan that signs in as a member and checks each surface.

What can our team handle without outside help?

Your team can start with the controls that need no vendor change: set auto-approve to read project files only, keep YOLO mode off in shared or production-adjacent repositories, and document which surface each developer uses. A small group can also test the PreToolUse hook approach in a throwaway project and write down its gaps. Work that needs more time includes tying remote configuration to your sign-in process, verifying the CLI defaults across every developer machine, and building a review cycle for hook logic. DeployOpen can plan, implement and document a self-hosted or governed rollout within a fixed scope agreed in writing, and it runs security testing of AI agents. Ask for a quote based on the scope you define.

Where to check each claim

Start with the Cline auto-approve documentation, which is the primary source for every permission claim on this page. It covers the separate toggles for reading files, editing files, safe commands, all commands, the browser tool and MCP tools, and it states that the model marks each command with a requires_approval flag rather than checking against a fixed allowlist. Read it alongside the Cline CLI reference, which is the only place the documented CLI defaults appear, including the YOLO-by-default behavior for prompts, the --auto-approve flag, and the ACP mode default. Confirm in that reference whether the CLINE_SANDBOX variable does anything beyond its one-line description, because the auto-approve page describes no sandbox feature. Record the exact version of the CLI and extension you tested, since the two surfaces document different defaults.

The security advisories on the cline/cline security page are the second source to check. Review the advisories for GHSA-9ppg-jx86-fqw7, GHSA-5c57-rqjx-35g2 and GHSA-3cj3-hqcr-g934 and confirm which versions they affect and which fixes they name. Then check the remote configuration overview in the Cline remote configuration documentation to see whether an organization can enforce any auto-approve or YOLO setting centrally, and which clients show the lock icon. Recheck all of these pages at every rollout and before each version upgrade, because defaults and configuration options change over time and this page reflects only the sources listed here.

How DeployOpen tests Cline permissions before rollout

DeployOpen approaches Cline permissions as a scoped, written engagement: we map what the agent may read, edit and run in each client, then test those settings against the organization's own rules before anyone relies on them. Our work covers the VS Code extension, JetBrains, and the CLI, where defaults differ.

How we scope

  • We agree in writing which Cline surfaces, versions and developer groups fall inside the engagement before work starts.
  • We inventory which auto-approve categories, YOLO mode settings and CLI flags are in use or permitted today.
  • We record which commands, paths and tools the organization considers unacceptable for an agent to run unattended.

How we build

  • We configure a test baseline that reflects the intended permission tiers, starting from read-only project access.
  • We attempt prompt injection and risky command scenarios against each tier to see what runs without approval.
  • We check where blocking relies on hook-based controls, since the CLI has no built-in allow or deny list for shell commands.

How we hand over

  • We deliver a written record of each permission setting, its tested behavior and any gaps that remain open.
  • We document the rollout rules for YOLO mode, including the throwaway or sandboxed environments the organization approves.
  • We provide evidence that supports the organization's own internal review and any assessment it commissions from an independent auditor.

How we support

  • Ongoing support is available as a retainer, covering re-testing when Cline releases new versions or changes its defaults.
  • We can repeat permission tests after changes to the organization's remote configuration or developer tooling.
  • Any retest follows the same written scope, so results stay comparable from one review to the next.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.