Cursor agent permissions, run modes and sandboxing

Cursor's agent can run commands without approval depending on its run mode, and its terminal sandbox limits files and network on macOS and Linux. This page shows which settings admins can lock and what to configure before approval.

On this page

Does Cursor agent permissions and sandboxing meet our approval requirement?

Your first decision is which run mode the Cursor agent may use without a person approving each step. Cursor's run modes documentation describes three options: Auto-review (recommended), Allowlist and Run Everything. Run Everything executes every tool call with no sandbox and no classifier, so it does not meet a per-step approval requirement and should be excluded by policy. In Auto-review, allowlisted calls run immediately, other shell commands run in the sandbox where possible, and any call that cannot be sandboxed goes to an LLM classifier. Allowlist is the stricter choice for teams that want a fixed list of permitted commands. Confirm with your Cursor account team which of these modes your plan exposes, and whether a per-step human approval option exists for your use case, since the documentation does not present one as a separate mode.

The run modes and sandbox are documented for local agents only. Cloud Agents run on their own machine and never ask for approval, so a policy that covers local sessions does not automatically cover cloud tasks. Admins can override which run modes are available and configure sandbox networking rules, and team settings take precedence over individual and project configuration. The documentation does not state in one place which of these controls require the Teams plan and which require Enterprise, so check each setting in the Cursor enterprise documentation before you write the requirement into a policy. Also confirm whether a team can disable cloud agents for its members, because that is the gap most likely to remain open.

To meet the requirement, set the organization policy to Auto-review, remove or block Run Everything, and keep the Browser, File-Deletion, External-File and .cursor directory protections enabled, as the hardening guide recommends. Sandboxed commands have network access blocked by default and protect paths such as .git/config, .git/hooks, .vscode and .cursorignore, so test whether your build and package tasks still work under those limits. The sandbox also depends on platform: Seatbelt on macOS requires Cursor v2.0 or later, and Landlock with seccomp on Linux requires kernel 6.2 or later with Landlock v3. Machines below those levels fall outside the documented sandbox and need a separate control. Record the gaps you accept: cloud agent actions, any allowlist entries and the sandbox networking exceptions.

Run mode, sandbox and admin control support by edition

This table compares Cursor agent run modes, sandbox requirements and admin controls across individual plans and team plans. Use it to see which settings are documented for each edition and which still need confirmation from Cursor before you approve a rollout. The main takeaway is that the sandbox has version and kernel prerequisites, and team settings override individual choices, so the admin policy is where you control risk.

CapabilityIndividual plansTeams and EnterpriseConfirm before approval
Auto-review (recommended)Documented run mode for local agentsHardening guide sets this as the recommended organization policyNon-sandboxable calls go to an LLM classifier
AllowlistDocumented run mode for local agentsAdmins can override which run modes are offeredConfirm which commands are allowlisted by default and who edits the list
Run EverythingAvailable as a documented run mode with no sandboxHardening guide recommends Auto-review instead of this modeAsk whether admins can block this mode on your edition
macOS Seatbelt sandboxRequires Cursor v2.0 or laterSame Cursor v2.0 or later requirement applies to managed machinesConfirm sandbox coverage across your managed macOS fleet
Linux Landlock with seccomp sandboxRequires kernel 6.2 or later with Landlock v3Same kernel requirement applies to Linux developer hostsCheck kernel versions on every Linux workstation and build host
Network blocked by default in sandboxSandboxed commands have no network access by defaultAdmins can configure sandbox networking rulesConfirm how rules are scoped and where they are set
Protected pathsIncludes .git/config, .git/hooks, .vscode and .cursorignoreKeep Browser, File-Deletion, External-File and .cursor protection enabledConfirm protection covers paths your repositories add
Admin override of run modesIndividual and project settings apply only where no team setting overrides themTeam settings take precedence over individual and project configurationConfirm which run modes an Enterprise admin can lock
Cloud Agents approval behaviorRun Modes do not apply, and Cloud Agents never ask for approvalSame behavior applies to cloud runs under team accountsReview what cloud agents can reach before enabling them

How Cursor decides whether a shell command runs, is sandboxed or is reviewed

Cursor's agent does not treat every shell command the same way. Under Auto-review, which Cursor's run modes documentation lists as the recommended mode, the decision follows three paths. Calls on the allowlist run immediately. Other shell commands run inside the sandbox when the sandbox can contain them. Calls that cannot be sandboxed go to an LLM classifier, which decides whether they proceed. The classifier is a model-based check, not a human approval step, so a reviewer should not assume a person sees every risky call. Ask Cursor to confirm how the classifier decides and what it does when it is uncertain.

The sandbox is what limits a command's reach on the developer's machine. Cursor's run modes documentation states that it uses Seatbelt on macOS (Cursor v2.0 or later) and Landlock with seccomp on Linux (kernel 6.2 or later with Landlock v3). Sandboxed commands have network access blocked by default. Protected paths include .git/config, .git/hooks, .vscode and .cursorignore, which matter because changes to hooks or editor configuration can make later commands run outside the reviewer's expectations. Confirm that the fleet meets the macOS and kernel requirements, since machines below them may fall back to a different behavior. Pair this with the protection options in the security and privacy hardening guide.

Run Everything removes both the sandbox and the classifier, so every tool call executes with the developer's own permissions. Treat it as a mode to block, not a convenience setting. Cloud Agents are a separate case: Cursor's documentation states that they run on their own machine and never ask for approval, so Run Modes do not govern them at all. Any review of Cloud Agent use must therefore rely on other controls, such as the team and admin settings and the access policies described elsewhere on this page.

Decision path for a shell command under Auto-review

A tool call from the agent enters the decision path first. If the command matches the allowlist, it runs immediately. If not, Cursor checks whether the sandbox can take it. Sandboxed commands run with network access blocked by default and protected paths such as .git/config, .git/hooks, .vscode and .cursorignore kept out of reach. Calls that cannot be sandboxed go to an LLM classifier, which decides whether they are allowed or blocked. Run Everything is the bypass: it skips the sandbox and the classifier entirely. Check which path your organization's policy permits.

Auto-review routing for a local shell command, with the Run Everything bypass shown separately.

Decisions the organization must make before approval

Before approving Cursor agents, the organization has to settle a small set of policy choices. Each one trades developer friction against the risk of an agent running commands, reading files or reaching the network without a human check. Settle them together, then record them as team-level settings so individual users cannot override them.

Default run mode for the organization

Cursor documents three run modes: Auto-review (recommended), Allowlist and Run Everything. Auto-review runs allowlisted calls immediately, sends other shell commands to the sandbox where possible and routes calls that cannot be sandboxed to an LLM classifier. The security hardening guide recommends setting the organization policy to Auto-review rather than Run Everything as the baseline. Confirm which modes your edition lets admins make available, and test the default with a few real tasks before you publish it.

Run modes docs

Allowlist scope and ownership

An allowlist decides which shell commands run without any review, so a broad list removes most of the protection Auto-review provides. Name an owner, usually platform engineering or the security team, and require a change request for each addition. Start with read-only and build commands the team already uses, and review the list on a fixed schedule. Developers gain speed from a long list, but every entry is a command that can run without anyone seeing it.

Whether to remove Run Everything

Run Everything runs every tool call with no sandbox and no classifier, so it removes the controls that limit file and network access. Admins can override which run modes are available, which makes removal a policy decision rather than a training problem. Removing it is the stronger control. Keeping it for a small group of maintainers, on machines without access to production credentials, is the common compromise. Decide this before rollout, because users who have already used it will push back.

Sandbox network rules

Sandboxed commands have network access blocked by default, so package installs and builds fail until you allow their destinations. Decide which package registries, internal artifact hosts and Git servers the sandbox may reach, and keep the list narrow. Admins can configure sandbox networking rules, and team settings take precedence over individual and project configuration. Test a standard build on each supported operating system (macOS and Linux) before you widen any rule, because the two platforms have different sandbox mechanisms.

Protected paths and .cursor directory

Protected paths include .git/config, .git/hooks, .vscode and .cursorignore, and the hardening guide recommends keeping Browser, File-Deletion, External-File and .cursor directory protection enabled. These paths are where an agent could change Git behavior, add hooks that run later, or alter editor settings. Turning any protection off should require a documented exception. Confirm that the team setting enforces these protections for every developer, not only in new projects.

Whether to allow Cloud Agents

Run Modes apply only to local agents. Cloud Agents run on their own machine and never ask for approval, so the run mode settings and the sandbox do not govern them. Decide whether they are allowed at all, and if so, for which repositories and data. Ask Cursor how Cloud Agents access source code and secrets, where they run, and how their actions appear in the audit log. Many organizations start by prohibiting Cloud Agents on repositories that hold regulated data.

How the answer changes by operating environment

On macOS, Cursor's terminal sandbox uses Seatbelt, and the run modes documentation ties that sandbox to Cursor v2.0 or later. The first check is therefore version: confirm that every workstation runs a release at or above that version before your team relies on sandboxing for shell commands. Auto-review is the mode the documentation recommends. Allowlisted calls run immediately, other shell commands run in the sandbox when possible, and only calls that cannot be sandboxed go to the LLM classifier.

  • Version floor: Verify the minimum Cursor version on every managed Mac before the rollout starts.
  • Network posture: Sandboxed commands block network access by default. Confirm that your sandbox networking rules match the hosts you have approved.
  • Protected paths: Keep .git/config, .git/hooks, .vscode and .cursorignore protected so agents cannot change repository hooks or editor settings.
  • Locks to set: Remove Run Everything from the modes available to developers, since team settings take precedence over individual and project configuration.

Run a pilot on the exact macOS build and Cursor version your fleet will use, and record the sandbox behavior before approving broad access.

Order of work to lock down agent permissions in production

This sequence moves Cursor from its default agent behavior to a locked organization policy in which Auto-review governs local shell commands, Run Everything is removed, and sandbox and protected-path settings are verified before wide rollout. Each step ends with a check you can record for your approval file.

  1. Confirm the plan that carries admin overrides

    Before changing anything, confirm with your Cursor account team and the pricing page which plan gives admins the ability to override available run modes and configure sandbox networking rules. Run modes and team settings are documented as taking precedence over individual and project configuration, but the plan that exposes these controls is the first thing to verify in your own account. Done means a written note naming the plan, the admin owners and the exact settings page you will use, filed with the approval record.

  2. Set the organization policy to Auto-review

    Have an admin set the organization run mode to Auto-review, which Cursor documents as the recommended mode and which its hardening guide recommends over Run Everything. In this mode allowlisted calls run immediately, other shell commands run in the sandbox when possible, and commands that cannot be sandboxed go to an LLM classifier. Verification: export or screenshot the team setting, then confirm on a test seat that the individual user cannot switch to a less restrictive mode.

  3. Remove or lock Run Everything

    Confirm that Run Everything, which executes every tool call with no sandbox and no classifier, is either removed from the modes available to developers or locked so individuals cannot select it. Ask your administrator to confirm which setting controls availability in your edition, since the override is a plan-dependent admin feature. Verification: a test account attempts to select Run Everything and the option is absent or refused, and the result is recorded in the change ticket.

  4. Build and review the command allowlist

    Collect the shell commands your developers run in normal work, such as build, test and package commands, and have a security owner review each entry before it is added to the allowlist. Allowlisted calls run immediately without sandboxing, so each entry should be narrow and justified. Verification: a signed-off allowlist document with an owner for each entry, reviewed again whenever the team adds a new toolchain.

  5. Set sandbox network rules

    Confirm that sandboxed commands have network access blocked by default, then configure any sandbox networking rules your admins need, such as limited egress for package registries your teams already use. Keep the list short and document the destination and reason for each rule. Verification: from a sandboxed test command, confirm that an unlisted external host is unreachable and that an approved registry resolves as intended.

  6. Keep protected path settings enabled

    Verify that Browser, File-Deletion, External-File and .cursor directory protection are all on, and that the protected paths include .git/config, .git/hooks, .vscode and .cursorignore. Do not let these be disabled at the project level for convenience. Verification: a test run attempts to modify a protected file and the agent is prompted or blocked, and the admin export shows the protections enabled.

  7. Pilot with a small group and test blocked commands

    Roll the policy to a small pilot group and have a security engineer run a scripted set of commands that should be blocked or sent for approval, including commands with network calls, writes to protected paths and deletions outside the project. Record what happened for each case and adjust the allowlist or sandbox rules where developers are blocked for legitimate work. Verification: a pilot report listing each test, the expected result and the observed result, with no unexplained passes.

  8. Roll out and review the settings on a schedule

    After the pilot results are accepted, extend the locked policy to the full group and keep the settings export in your change records. Re-check the run mode, allowlist, sandbox rules and protected paths after each Cursor version update, and review Cursor's security advisories for sandbox or approval issues before upgrading. Verification: a recurring review record showing the settings still match the approved configuration and the advisory review was completed.

Evidence a security reviewer asks for on run modes and sandboxing

This table lists the artifacts a security reviewer should collect before approving Cursor agent run modes and sandboxing, and what each one proves. Read it as a checklist: each row names the evidence, the question it answers, and where to get it from Cursor's admin settings or from your own inventory. The main takeaway is that a configured policy is only proof when an admin export or override record confirms that the setting is actually enforced across the organization.

Evidence itemWhat it provesWhere it comes from
Organization run mode policy settingWhich run mode is the team default, and whether Run Everything is blocked for local agentsTeam admin settings in Cursor, recorded with the date and the admin who set it
Admin override of available run modesThat admins have restricted which run modes users can select, and that individual settings cannot widen itScreenshot or export of the admin configuration showing the modes offered to members
Sandbox networking rule setWhich domains or network paths sandboxed commands may reach, with network access blocked by defaultAdmin sandbox networking configuration, exported or captured with a reviewer-dated record
Protected paths listThat .git/config, .git/hooks, .vscode, .cursorignore and the .cursor directory are guarded from agent writesCursor security hardening guide checked against the active team configuration
Allowlist with owner and review dateThat each allowed command has a named owner, a business reason and a scheduled re-approvalYour own change log or ticket system, linked to the allowlist entries
Linux kernel and Cursor version inventoryWhether each Linux host meets the kernel 6.2 or later with Landlock v3 requirement, and whether macOS hosts run Cursor v2.0 or laterEndpoint management inventory query for kernel and Cursor client versions
Cloud Agents usage decisionThat the organization has decided where Cloud Agents may be used, since they run outside Run Modes and never ask for approvalWritten policy approved by security, plus the list of teams permitted to use Cloud Agents
Hardening guide review recordThat the organization compared its settings with Cursor's recommended Auto-review default and protection togglesDated review record referencing the Cursor enterprise security and privacy hardening documentation

Questions buyers ask before approving Cursor agent permissions

Can an admin disable Run Everything for all users in Cursor?

Yes, according to Cursor's run modes documentation, admins can override which run modes are available, so Run Everything can be removed from the choices developers see. Run Everything runs every tool call with no sandbox and no classifier, which makes it the setting most reviewers want removed first. The same documentation states that team settings take precedence over individual and project configuration, so a team-level restriction should hold against local overrides. Before you approve, confirm with Cursor how the restriction is applied in your plan, test it with a non-admin account on each operating system you support, and check whether a developer can still change the mode in a project file. The security and privacy hardening guide recommends setting the organization policy to Auto-review instead of Run Everything.

What does the Cursor sandbox block by default?

By default, sandboxed shell commands have network access blocked, and the sandbox limits which files a command can change. On macOS the sandbox uses Seatbelt in Cursor v2.0 or later. On Linux it uses Landlock with seccomp on kernel 6.2 or later with Landlock v3. The documentation also lists protected paths that stay guarded, including .git/config, .git/hooks, .vscode and .cursorignore. The hardening guide recommends keeping Browser, File-Deletion, External-File and .cursor directory protection enabled. Engineers should verify these controls on a test machine, because a command that cannot be sandboxed falls back to the LLM classifier in Auto-review mode rather than being blocked outright.

Can a Free or individual Cursor plan enforce an agent permission policy?

No. Admin controls that set run modes and sandbox networking rules belong to team and organization administration, so individual plans cannot enforce a central policy. Cursor's pricing page lists team-wide privacy settings on the Teams plan, and lists repository, model and MCP access controls on Enterprise. Confirm with Cursor which run-mode override controls apply to Teams and which require Enterprise, because the pricing page does not map each run-mode control to a plan. If a developer uses a personal account for work, the company policy does not reach that session, so block personal sign-in on managed devices as part of the rollout.

How do Cloud Agents differ from local agents under run modes?

Run modes apply only to local agents. Cloud Agents run on their own machine and never ask for approval, so the Auto-review, Allowlist and Run Everything settings do not govern them. For reviewers, this means the sandbox and approval controls described for local agents do not cover cloud runs. Ask Cursor which controls govern Cloud Agents, including what repository access they receive, which network paths they use, and how their activity appears in logs. Cursor's Enterprise pages cover repository and access controls, so review those with your security team before allowing cloud runs on sensitive repositories.

What effort does a Cursor permissions rollout take, and what drives it?

Cursor does not publish a rollout duration, so treat any timeline as something to confirm with Cursor and your own change process. The effort is driven by fleet size, because each managed device and operating system needs its own test of the sandbox. Allowlist complexity adds work, since each approved command needs a review and an owner, and projects with many build tools produce longer lists. The OS mix matters too: macOS uses Seatbelt and Linux uses Landlock and seccomp with a kernel requirement, so Linux fleets on older kernels need upgrades or a different plan. Ask for a written list of what the vendor will support and what your own team must test.

Can our own team configure Cursor permissions internally without outside help?

Yes, the controls described in Cursor's documentation are set by your own administrators, so an internal platform or security team can configure run modes, sandbox networking rules and protected paths without an outside firm. The main internal work is testing each setting on each operating system, writing an allowlist review process, and keeping the policy in step with Cursor releases. DeployOpen can plan, implement and test a Cursor deployment in your own environment as a fixed-scope engagement with written deliverables, and it can run security testing of agent behavior. DeployOpen does not issue audit reports or certifications, so independent assessors still review evidence. Any quote follows from the written scope.

How DeployOpen helps you configure and test agent permissions

DeployOpen works on Cursor agent permissions as a written, fixed-scope engagement inside your own environment. We map which run modes your teams may use, check how the terminal sandbox behaves on your macOS and Linux machines, and test the settings your admins can lock before anything is rolled out.

How we scope

  • Agree in writing which run modes, teams and developer machine types the engagement covers
  • Inventory the Teams or Enterprise admin settings that can restrict run modes and sandbox networking
  • Confirm which Cursor plan and version each developer group uses before setting policy
  • Record out-of-scope items such as Cloud Agents, which do not use Run Modes

How we build

  • Draft a team policy that sets Auto-review as the organization default, not Run Everything
  • Define sandbox networking rules and test that network access stays blocked by default
  • Verify protected paths such as .git/config, .git/hooks, .vscode and .cursorignore behave as expected
  • Test the admin override settings against individual and project configuration to confirm team precedence

How we hand over

  • Deliver a written permissions baseline with each setting, its owner and its expected behavior
  • Provide test evidence showing which tool calls ran unprompted, sandboxed or sent to review
  • Document the steps to reapply the policy after a Cursor upgrade or a change in admin settings
  • Walk your security and engineering leads through the findings and open questions

How we support

  • Offer ongoing support and periodic re-testing as a retainer after the fixed-scope work ends
  • Review new Cursor releases and advisories against the baseline and flag settings to revisit
  • Support red team testing of agent permissions and sandbox boundaries on request
  • Agree retainer scope and cadence in writing, with no prices stated here

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.