BlueRock Connector – MDM Deployment
The Mobile Device Management (MDM) deployment package provides the scripts required to install, configure, and enroll the BlueRock Connector Client application on Windows and macOS desktops from the MDM console. This package enables IT administrators to distribute the application seamlessly. Consequently, end users can access the BlueRock Sandbox directly from their coding agent IDEs without requiring manual configuration.
Deployment Components
The deployment package contains four core files categorised by platform:
The following components are deployed to Windows devices:
File
Purpose
Execution Context
windows\enroll_bluerock.ps1
Downloads the connector executable, runs the certificate enrollment with the bootstrap URL, configures the SSH host block, and launches the application.
Logged-on user
windows\managed-settings.json
Configures managed settings, disables local desktop sessions, and pre-configures the SSH target.
System / Administrator
The following components are deployed to macOS devices:
File
Purpose
Execution Context
macos\enroll_bluerock.sh
Downloads the macOS application, completes enrollment, updates the SSH configuration, and launches the menu bar application.
Logged-on user (GUI session)
macos\managed-settings.json
Configures managed settings for the macOS environment.
Root / Administrator
Prerequisites
Ensure the following requirements are met before initiating the deployment:
Operating System Version: Windows 10 1803+ or Windows 11 (requires
curl.exeand Windows PowerShell 5.1).Enrollment State: Devices must be MDM-enrolled and Entra ID joined or registered. A user must be signed into the device during the script execution.
Network Egress: The network firewall or proxy must allow access to the following hosts:
bluerock-public.s3.us-east-1.amazonaws.com(Connector download)identity.<your-environment>.bluerockenv.io(Enrollment / Bootstrap URL)sandbox.bluerock.io(SSH target)
OpenSSH Client: The system must have the OpenSSH client installed (an optional feature enabled by default on current Windows 11 systems).
Operating System Version: macOS (macOS 13 Ventura or later recommended).
Enrollment State: Devices must be MDM-enrolled and Entra ID registered. A user must be signed into the device during the script execution.
Network Egress: The network firewall or proxy must allow access to the following hosts:
bluerock-public.s3.us-east-1.amazonaws.com(Connector download)identity.<your-environment>.bluerockenv.io(Enrollment / Bootstrap URL)sandbox.bluerock.io(SSH target)
OpenSSH Client: The system must have the OpenSSH client installed (pre-installed by default on macOS).
Script Preparation
Both enrollment scripts contain a default $bootstrapUrl or bootstrap_url variable. Update this variable with the specific URL and fingerprint (#fp=...) for the target environment before uploading the script to the MDM platform.
Deployment Guidelines
Deploy the components in two distinct phases: deploy the managed settings file first, followed by the enrollment script.
Deploying Managed Settings
Deploy the managed-settings.json file to the target machines. This file must reside in a system-wide directory, requiring the deployment task to execute with administrative or root privileges.
Configure the MDM platform to copy or generate the settings file at C:\Program Files\ClaudeCode\managed-settings.json. The script or package must run in the SYSTEM context.
Use the following managed settings payload for Windows:
Configure the MDM platform to place the settings file at /Library/Application Support/ClaudeCode/managed-settings.json. The script or package must run as root.
Use the following managed settings payload for macOS:
managed-settings.json Script's Parameters
Parameter
Type
Description
disableDesktopLocalSessions
Boolean
Disables local desktop sessions within the Claude Code IDE.
sshHostAllowlist
Array
Specifies the list of permitted SSH hosts (e.g., sandbox.bluerock.io).
sshTransport
String
Defines the SSH transport mechanism to use (e.g., system-openssh).
sshConfigs
Array
Contains the pre-configured SSH connection details.
sshConfigs[].id
String
Unique internal identifier for the SSH configuration block.
sshConfigs[].name
String
Display name of the SSH target in the IDE interface.
sshConfigs[].sshHost
String
The SSH host alias that matches the system's SSH configuration block (bluerock-sandbox).
sshConfigs[].sshIdentityFile
String
The file path to the client identity key used for authentication.
Windows:
%USERPROFILE%\.config\bluerock\cobalt\bridge\client_ed25519macOS:
~/.config/bluerock/cobalt/bridge/client_ed25519
Deploying Enrollment Scripts
Configure the MDM platform to execute the enrollment scripts for the target devices. The script must execute in the context of the logged-on user.
Deploy enroll_bluerock.ps1 as a user-context script.
Reference Intune Settings:
Run this script using the logged on credentials: Yes
Enforce script signature check: No
Run script in 64-bit PowerShell Host: Yes
Deploy enroll_bluerock.sh as a user-context script. For MDM platforms that enforce root execution by default (such as Jamf Pro), prepend a script wrapper to execute the commands within the console user's GUI session.
Reference Intune Settings:
Run script as signed-in user: Yes
Hide script notifications: Yes
Deployment Validation
After deployment, verify the installation on a pilot device to ensure successful enrollment.
Launch and Sign In: Once the enrollment script runs successfully, the BlueRock Connector launches automatically. Follow the prompts to sign in to the connector.

Verify Sandbox Connection: After successful authentication, the connector interface displays your assigned BlueRock sandbox.

Validate IDE Integration: Open the Claude Code IDE. Confirm that the application automatically connects to the sandbox and that all local sessions are disabled, reflecting the applied managed settings.

Script Reference and Usage
This section provides additional details on script execution, available options, and internal operations for administrators.
Default Commands
Run the following command in Windows Powershell
Run the following command in macOS bash
Script Options
The following options are accepted by both scripts:
Option
Description
-BootstrapUrl
Bootstrap URL used for enrollment. Optional: if omitted, the URL set at the top of the script is used. Must be quoted on the command line.
-ConnectorDir
Folder the connector is downloaded into and run from. Optional; created if it does not exist. Default: ~\bluerock_connector (Windows), ~/bluerock_connector (macOS).
-SkipDownload
Do not download the connector; use the one already in the connector folder. Optional, and only valid together with -ConnectorDir.
-QuitClaude
Quit the Claude desktop app just before the connector is launched, so it picks up the new settings on its next start.
-Help / --help
Show the built-in help and exit with code 0, without changing anything.
What the Scripts Do
Both scripts perform the following sequence of operations:
Picks the bootstrap URL (the
-BootstrapUrlargument, otherwise the value set in the script) and shows which was used.Downloads the latest connector into the connector folder, replacing the existing one. If the download fails and a valid connector is already present, it falls back to the existing one with a warning.
Stops any running connector, removes the cobalt configuration folder, and runs the connector with
enroll-cert <bootstrap_url>.Adds or replaces the
Host bluerock-sandboxblock in the SSH config file.Launches the connector in the background (closing the Claude desktop app first if
-QuitClaudeis specified).Adds the bluerock sandbox entry to
sshConfigsin the Claude settings file, unless managed settings are already applying it.
Last updated