Junie sandbox, allowlist and brave mode: what the agent may run

Junie CLI asks for approval before sensitive actions unless brave mode is on, and its early access sandbox limits filesystem access on macOS and Linux. The published sources do not describe organization-level enforcement, so reviewers need compensating controls.

On this page

Junie permissions: what the agent may run without approval

An approver deciding whether Junie's per-action approvals, allowlist and sandbox meet an internal permissions requirement should know first that these controls are built into Junie CLI and configured per user, and that the sources reviewed do not describe organization-level enforcement of the allowlist, brave mode or sandbox. The edition each control applies to must also be confirmed with JetBrains before approval. Until that is confirmed in writing, treat every setting as something an individual developer can change, not something the organization can lock.

Junie CLI asks for approval before running terminal commands, MCP tools and other actions it considers sensitive, unless brave mode is enabled. The /brave slash command cycles brave mode through Off, Auto and On, which changes how much the agent relies on user approval. The CLI action allowlist covers five action types, fileEditing, executables, mcpTools, readOutsideProject and readSecretFile, stored in ~/.junie/allowlist.json. Because that file lives in each user's home directory, a reviewer should ask who can edit it, whether developers can pre-approve categories such as executables, and how a change would be detected. The /sandbox feature is in early access on macOS and Linux only. It restricts filesystem access for agent terminal commands and native edits, and it leaves network access unrestricted by default.

To close the gap, the reviewer should write down the permission baseline the organization requires and then test Junie against it on a managed workstation. Confirm whether brave mode is permitted at all, which allowlist entries are acceptable, and whether network egress from sandboxed commands must be limited by an outside control such as an egress proxy or host firewall, since the sandbox does not do this by default. Changes to ~/.junie/sandbox.json made through the agent require fresh human approval each time, which is a useful safeguard, but it does not stop a developer from editing the file directly. Ask JetBrains which controls can be enforced centrally through Air Governance, and record the answer and the applicable edition before the tool is approved for use.

Which permission controls Junie CLI provides and where they stop

This table compares each permission control Junie CLI offers for terminal commands, MCP tools, file access and network access, with its status as stated in the Junie documentation. Read the last column as the list of questions to put to JetBrains before approving the tool. The main takeaway is that the documented controls are per-user settings, and the sources do not describe organization-level enforcement.

ControlStatusWhat to confirm with JetBrains
Approval before terminal commands, MCP tools and sensitive actionsApplies unless brave mode is enabledWhich action categories count as sensitive, and whether approval prompts can be disabled for specific developers or projects
Allowlist action types: fileEditing, executables, mcpTools, readOutsideProject, readSecretFileFive types, stored per user in ~/.junie/allowlist.jsonWhether an administrator can set or lock allowlist entries centrally, or whether each developer manages their own file
Brave mode: Off, Auto and On (/brave)Cycles between three settings controlling reliance on user approvalWhat Auto approves in practice, whether On can be restricted by policy, and whether the setting persists across sessions
Sandbox (/sandbox) for terminal commands and native editsEarly access on macOS and Linux onlyWhether Windows is planned, the GA timeline, and which filesystem paths are blocked or permitted by default
Network access from the sandboxUnrestricted by defaultWhether egress can be limited to named hosts, and how that setting is configured and enforced
Changes to ~/.junie/sandbox.json made through the agentRequire fresh human approval each timeWhether the same protection applies to allowlist and brave mode changes, and whether a developer can bypass it from a local shell
Organization-level enforcement of allowlist, brave mode or sandboxNot described in the Junie CLI allowlist or slash command documentationWhether any central policy, managed configuration or audit log covers these settings, and which plan or edition includes it

How the approval gate, allowlist and sandbox decide what runs

Junie CLI decides what runs through three layers, and a reviewer should evaluate them in that order. The first is the approval gate. Unless brave mode is enabled, Junie CLI asks the developer before running terminal commands, MCP tools and other actions it considers sensitive. The second is the per-user allowlist, which records the action types a developer has pre-approved so those actions no longer prompt. It is stored in ~/.junie/allowlist.json and covers five types: fileEditing, executables, mcpTools, readOutsideProject and readSecretFile. The third is the sandbox, which restricts filesystem access for agent terminal commands and native edits. Each layer answers a different question: whether a human is asked, which kinds of action were pre-cleared, and where the agent can touch files.

Brave mode is the setting that controls how much Junie CLI depends on that human approval step. The /brave command cycles through Off, Auto and On. The decision for your organization is which level, if any, is acceptable for which repositories and which people, and whether a developer can change it without a policy. Confirm with JetBrains whether any setting can be enforced centrally, because the public allowlist and slash command documentation does not describe organization-level enforcement of the allowlist, brave mode or sandbox. Until that is confirmed, treat each developer's local settings as the control point and plan your review around that.

The sandbox is in early access on macOS and Linux only, and it leaves network access unrestricted by default. A filesystem boundary therefore does not limit data leaving the machine. Plan egress controls at the network layer, such as a managed proxy or firewall policy for developer endpoints, and confirm with JetBrains what the sandbox covers before you rely on it. Also note that changes to ~/.junie/sandbox.json proposed through the agent require fresh human approval each time, which is a useful safeguard, but it still depends on a person reading the request carefully.

How a requested Junie action is approved, allowed or blocked

The path starts when Junie CLI requests an action, such as a terminal command, an MCP tool call or a file read outside the project. Junie checks whether the action is sensitive, then consults brave mode (Off, Auto or On), then checks the allowlist entry for that action type in ~/.junie/allowlist.json. Terminal commands and native edits pass through the /sandbox filesystem limits, which are early access on macOS and Linux only. A human approval prompt appears only when approval is still required. Check the node marked as unrestricted network access, and the node with no documented central check, because neither is covered by a documented organization-level control.

Decision path for one Junie CLI action, with the gaps an organization must check.

Decisions the organization must make before approving Junie permissions

Junie CLI asks for approval before terminal commands, MCP tools and other sensitive actions unless brave mode is on, and its sandbox and allowlist change how far that approval reaches. Each decision below sets a boundary that developers will feel in daily work, so assign an owner to each one before rollout. The documented controls are per-user settings, and the vendor pages do not describe organization-level enforcement, so confirm that gap with JetBrains before relying on any of them.

Brave mode level per team

Brave mode, switched with /brave, moves between Off, Auto and On and sets how much Junie CLI relies on user approval before potentially sensitive actions. Decide which teams may use Auto or On, and which must stay at Off, based on the repositories they touch and the credentials present on their machines. Developers on Off see the most prompts and the least speed. Ask JetBrains whether an administrator can set or lock this level centrally, because the documentation describes it as a per-user control.

Slash commands docs

Pre-approved allowlist action types

The allowlist stores five action types in ~/.junie/allowlist.json: fileEditing, executables, mcpTools, readOutsideProject and readSecretFile. Set a policy for which types a developer may pre-approve on their own. Pre-approving fileEditing or executables saves time on routine work. Treat readOutsideProject and readSecretFile as security decisions: a pre-approved read of a secret file lets the agent open credentials without a prompt. Most organizations should require a review step for these two types.

Allowlist docs

Sandbox requirement on macOS and Linux

The /sandbox command is in early access on macOS and Linux only. It restricts filesystem access for agent terminal commands and native edits. Decide whether the sandbox is mandatory for developers on those two systems, and whether anyone may run Junie CLI without it. Early access features can change, so ask JetBrains for the current status and support terms before making it a condition of approval.

Slash commands docs

Coverage for Windows developers

The documented sandbox does not cover Windows, so Windows developers have no sandbox from this source. Decide whether they may use Junie CLI at all, whether they must run it in a Linux environment such as a managed container or VM, or whether brave mode must stay off on those machines. Confirm the Windows position with JetBrains in writing, since a gap in coverage changes the risk profile for the same team.

Network boundary outside the sandbox

The sandbox leaves network access unrestricted by default. An agent that can run commands can still send data to any host the machine can reach, so filesystem limits alone do not contain exfiltration. Decide whether egress from developer machines is controlled by the endpoint or network team, such as through a proxy or firewall rules, and whether that control applies to Junie CLI traffic. Confirm the network configuration options with JetBrains.

MCP tools limited to approved servers

Junie CLI asks for approval before MCP tools run, and mcpTools is an allowlist action type. Decide whether developers may connect only to MCP servers on an approved list, or whether individuals may add their own. An unvetted server can expose tools and data the reviewers never assessed. Confirm with JetBrains whether the server list can be enforced across the organization, since the documentation does not describe that control.

How the permission answer changes by platform and data sensitivity

On macOS and Linux, Junie CLI has a sandbox that is in early access. According to the slash commands documentation, /sandbox restricts filesystem access for agent terminal commands and native edits, but it leaves network access unrestricted by default. The sandbox is a per-developer control, so the security team should decide whether the default posture is acceptable before developers enable it.

  • Built in: Filesystem restriction for terminal commands and native edits, available as an early access feature on these two operating systems.
  • Built in: Approval prompts for terminal commands, MCP tools and other sensitive actions, which remain active unless brave mode is enabled.
  • Must add: A written standard requiring developers to turn the sandbox on and to keep it on, since the sources do not describe an organization-level enforcement setting.
  • Must add: Network egress controls at the host or network layer, because network access is unrestricted by default.
  • Confirm with JetBrains: The early access status, the sandbox behavior for each release, and whether a managed setting can enforce it.

Before approval, ask your team to confirm the sandbox state on a sample developer machine and record the result.

Gaps in Junie's permission model and how teams usually close them

The Junie documentation describes approvals, an allowlist, brave mode and a sandbox, but it does not describe organization-level enforcement of any of them. The cards below mark where that leaves a gap and name the controls teams usually put in place outside Junie to close it. Confirm each point with JetBrains before you rely on it.

No documented central enforcement

The allowlist, brave mode and sandbox pages describe per-user settings only. Nothing in the public documentation says an administrator can lock these settings for a team, so a developer can change them on their own machine. Ask JetBrains in writing whether any of these controls can be enforced centrally today. Until that is confirmed, treat the developer's local configuration as the control point and compensate with endpoint management policy that restricts who can run Junie CLI and where it is installed.

Sandbox limited to macOS and Linux

The sandbox is in early access and covers macOS and Linux only. Windows developers on the same team do not get filesystem restriction for agent terminal commands or native edits. Inventory which operating systems your developers use before you approve Junie CLI, and decide whether Windows users need a different control, such as limiting Junie CLI to approved hosts or keeping brave mode off on those machines.

Slash commands docs

Network access open by default

The sandbox leaves network access unrestricted by default, so a command the agent runs can still send data to any host. Filesystem limits do not stop exfiltration over the network. Teams usually route developer egress through a forward proxy or secure web gateway with destination allowlists and logging, and apply endpoint firewall rules on developer devices. None of these controls come from Junie, so confirm they cover the hosts Junie CLI and its tools reach.

Sandbox config editable by the agent

Changes to ~/.junie/sandbox.json made through the agent need fresh human approval each time. That protects against silent edits, but the file lives in each user's home directory, so every developer has an independent copy. Teams usually watch these files with endpoint detection or file integrity monitoring, and they review approval prompts as part of routine developer security awareness. Verify that your endpoint tooling can detect changes to this path.

Per-user allowlists hard to audit

Each allowlist of five action types, fileEditing, executables, mcpTools, readOutsideProject and readSecretFile, is stored in ~/.junie/allowlist.json on the individual machine. Security teams cannot see across the organization which developers have approved which actions without collecting these files. Teams often collect the files through endpoint management, or require repository and secret scanning in CI so that a risky action still shows up in a system the security team already monitors.

Order of work to put Junie's permission controls into production

This sequence confirms what Junie's permission controls apply to, sets a tested baseline in a pilot group, and closes the gaps the tool does not cover so the organization can approve or restrict Junie CLI with evidence. Each step ends with a check that must pass before the next one starts.

  1. Confirm the edition and enforcement scope with JetBrains

    The security or procurement lead asks JetBrains in writing which Junie edition and plan the CLI action allowlist, brave mode and sandbox apply to, and whether any organization-level enforcement of these settings is planned or available. The public allowlist and slash command pages do not describe organization-level enforcement, so do not assume it exists. Done means a written answer that names the plan, states whether admins can lock these settings, and lists any roadmap commitments with dates the vendor confirms in writing. Record the answer in the approval file before any pilot starts.

  2. Set the brave mode and allowlist baseline in a pilot group

    The engineering lead chooses a small pilot group and sets brave mode to Off for the first phase, using the /brave command, which cycles through Off, Auto and On. Review the five allowlist action types (fileEditing, executables, mcpTools, readOutsideProject and readSecretFile) stored in ~/.junie/allowlist.json and remove any entry the security team has not approved. Because these files live on each developer machine, record the baseline and how each pilot member confirmed it. Done means every pilot machine shows the same reviewed file contents and the agent prompts for approval on a terminal command in a test run.

  3. Test the sandbox on macOS and Linux

    The platform engineering lead enables /sandbox only on pilot machines running macOS or Linux, since the feature is in early access on those two systems. Run a set of agent terminal commands and native edits that attempt to read or write outside the project folder, and confirm the sandbox blocks the filesystem access. Network access stays unrestricted by default, so note that as an open gap. Confirm that any change the agent proposes to ~/.junie/sandbox.json pauses for fresh human approval each time. Document the Windows position as not covered by this sandbox and state the compensating control for Windows machines. Done means a written test log for each operating system.

  4. Add network egress and secret controls outside the tool

    The security engineer assumes Junie cannot be relied on to restrict outbound traffic and places egress controls at the network, endpoint or proxy layer that the organization already operates. Apply controls for the secret stores and credential files used on pilot machines, such as moving secrets out of the project folder and out of readable paths, so that a permission prompt is not the only barrier. Verify each control with a test that the pilot developer environment cannot reach an unapproved destination or read a credential file. Done means a control inventory with the owner, the test result and the date of each check.

  5. Test that the agent cannot read secrets or edit outside the project

    A security reviewer runs a pilot repository that contains a dummy secret file and a file outside the project root. Ask Junie to read each file and to edit the outside file, with allowlist and brave mode at the agreed baseline, then repeat with the sandbox on. Confirm that readSecretFile and readOutsideProject actions trigger approval and that the agent does not complete the action without it. Use only test credentials, never production secrets. Done means a signed test record showing the expected prompt or block for each case, and a list of any case that passed without a prompt, which must be resolved before wider use.

  6. Define who reviews approval behavior

    The CISO or head of IT names an owner for approval decisions and a second reviewer, and writes down which allowlist changes, brave mode changes and sandbox changes each one can approve. Set the rule that any entry added to the allowlist, any move to brave mode, and any sandbox.json change proposed by the agent needs a recorded human decision. Create a short log format that captures the developer, the action type, the decision and the reason. Done means the approver list is signed off and the first two weeks of pilot approval logs have been reviewed by the named owner.

  7. Schedule re-review when the tool surface changes

    The governance owner sets a recurring review of Junie's permission controls and adds two triggers that force an earlier review: the sandbox leaving early access, and the Junie IDE plugin retirement, which stops working on December 3, 2026 on IDE version 2026.2 and is already off on 2026.3. When either trigger occurs, repeat the sandbox and allowlist tests and confirm that the workflow still runs in the surface the team uses. Done means a dated review calendar, a named owner for each trigger, and a record that the post-change tests were completed before the pilot expanded.

What a security reviewer asks to see for Junie's permission controls

This table lists the questions a reviewer should put to Junie's approval, allowlist, brave mode and sandbox controls, the evidence to request for each, and where that evidence comes from. Read each row as a gap check: if the answer comes only from a developer's own settings, the organization has not yet seen organization-level enforcement. The main takeaway is that the public documentation describes per-developer controls, so enforcement across the organization needs a written answer from JetBrains.

Reviewer questionEvidence to requestWhere it comes from
Which actions require approval by default?Written list of action types that prompt before running, including terminal commands, MCP tools and other actions Junie CLI treats as sensitiveJunie CLI action allowlist documentation, confirmed by a test run on a managed developer endpoint
What is the baseline brave mode setting?Confirmed default state of brave mode for a fresh install, and the states it cycles through (Off, Auto, On)Junie slash commands documentation, verified on the approved CLI version
What does each developer's allowlist contain?Export of ~/.junie/allowlist.json from sample endpoints, covering fileEditing, executables, mcpTools, readOutsideProject and readSecretFileDeveloper endpoint inspection, collected by IT under an agreed collection method
Is the sandbox active, and on which platforms?Sandbox state from /sandbox on each approved platform, noting that early access covers macOS and Linux onlyJunie slash commands documentation and endpoint testing; confirm Windows status with JetBrains
Who controls network egress from the agent's commands?Confirmation that network access is unrestricted by default in the sandbox, plus the firewall or proxy rules the organization appliesOrganization's network controls; the sandbox does not restrict network access by default
How are changes to agent and sandbox files approved and logged?Evidence that edits to ~/.junie/sandbox.json and allowlist files need fresh human approval, and that endpoint or file integrity logs capture changesJunie slash commands documentation for approval behavior; organization endpoint management for logs
Can the organization enforce allowlist, brave mode and sandbox settings centrally?Written statement from JetBrains describing any organization-level enforcement, its availability, and its plan or edition scopeVendor's written answer; public allowlist and slash command pages do not describe central enforcement

Questions buyers ask before approving Junie's permissions

Can an organization stop developers from turning on brave mode in Junie CLI?

The sources supplied for this page do not describe any organization-level enforcement of brave mode, so you should not assume you can lock it. The Junie slash commands page explains that /brave cycles through Off, Auto and On, and the CLI action allowlist page describes approval behavior per user. Neither describes an admin policy that prevents a developer from changing the setting. Ask JetBrains in writing whether Air Governance or any other administrative control can disable or pin brave mode for Junie CLI, and request the answer for the exact plan and CLI version you plan to deploy. Until that is confirmed, treat brave mode as a developer-controlled setting and plan compensating controls outside the tool.

What does the Junie sandbox block, and what does it leave open?

The early access sandbox, enabled with /sandbox, is available on macOS and Linux only. It restricts filesystem access for agent terminal commands and native edits. Network access is left unrestricted by default, so the sandbox does not by itself limit which hosts an agent command can reach. Changes to ~/.junie/sandbox.json made through the agent require fresh human approval each time, which protects that file from silent edits. Confirm the exact filesystem paths the sandbox permits and blocks on your builds, and test whether reads of secrets or files outside the project are constrained in practice.

What drives the effort and cost of closing gaps with outside controls?

The main cost drivers are the number of endpoints in scope, whether your organization already has egress filtering, proxying and endpoint management that can apply rules to developer machines, the number of teams with different approval needs, and whether Windows is in use, since the early access sandbox does not run there. Internal platform, endpoint and network staff usually carry most of the work, and the cost recurs when new developers, IDE versions or CLI versions appear. Ask any outside provider for a written scope that names the endpoints, operating systems, egress paths and deliverables, because a fixed-scope quote follows from that scope. DeployOpen does not publish a price list.

Can our own security and platform staff set up these controls without outside help?

Yes, many organizations can build these controls with their own endpoint and network staff, because the work is mostly policy on developer machines, egress rules and approval workflows. Confirm the vendor-supported behavior first, then write the rules and test them. Pilot testing benefits from independent security testing, because an agent can find routes around a rule that an internal team did not anticipate, such as commands that reach the network through an allowed tool. DeployOpen runs security testing that covers AI systems and agents, and it can be scoped as a fixed engagement for a pilot if your team wants that check.

What changes when the early access sandbox becomes generally available?

The supplied sources describe /sandbox as early access on macOS and Linux only, so general availability has not been described and you should not plan around a date. When it becomes generally available, confirm three things: whether support extends to Windows, whether network access remains unrestricted by default or can be restricted, and whether administrators can enforce the sandbox setting centrally. Re-test your controls against each new release, because the filesystem scope and default behavior could change. Ask JetBrains for release notes and for the Junie documentation version that applies to your deployment.

How do the allowlist action types change what Junie can run without approval?

The Junie CLI action allowlist page lists five action types: fileEditing, executables, mcpTools, readOutsideProject and readSecretFile. The allowlist is stored in ~/.junie/allowlist.json, which is a user file. Because it sits in the user's home directory, a developer who can edit it can change what is pre-approved, so it is not an enforced organizational control on the sources supplied. Review the file contents on managed devices, decide which action types your teams should never pre-approve, and confirm with JetBrains whether the allowlist can be controlled centrally.

How DeployOpen helps test and govern Junie's permissions

DeployOpen helps organizations decide what Junie may run, read and change before developers rely on it. We scope the review of approval prompts, the CLI action allowlist, brave mode and the early access sandbox, then test how those settings behave on the operating systems your teams use.

How we scope

  • Engagements are fixed-scope, with the permission areas, operating systems and Junie surfaces agreed in writing first
  • We list which action types are in scope, including terminal commands, MCP tools and reads outside the project
  • Ongoing support and repeat testing can be added as a retainer once the written scope is accepted

How we build

  • We map the allowlist file, brave mode setting and sandbox configuration on each developer machine in the agreed scope
  • We test whether a risky action is blocked, asks for approval or runs, and record the result for each setting
  • We check whether the sandbox limits filesystem access and document how network access is handled in your environment

How we hand over

  • You receive written test results, configuration baselines and a list of settings that individuals can change
  • We document a standard for when brave mode and allowlist changes need sign-off, written for your own review
  • We confirm with you which controls are enforced centrally and which depend on each user, so gaps are visible

How we support

  • Retainers can cover re-testing after Junie CLI updates, since approval behavior may change between versions
  • We can repeat the permission review when the sandbox moves beyond early access or when new action types appear
  • Support questions about governance gaps are answered against the written scope and the current vendor documentation

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.