Overview
The scripts are designed to be executed on end-user devices through your MDM (Mobile Device Management) platform. They configure each AI coding tool to route through the Unbound Gateway.Before deploying, ensure your MDM provider is connected or devices are imported and you have an admin API key from gateway.getunbound.ai/connect.
YOUR_ADMIN_API_KEY— an admin API key from gateway.getunbound.ai/connecthttps://backend.getunbound.ai— if your organization uses a custom backend URL, replace this with your own
Cursor
Run the following command to configure Cursor:Claude Code
Claude Code supports two deployment methods depending on how your organization uses Anthropic.Method 1: Using API Key
Use this method to route all Claude Code traffic through the Unbound Gateway without requiring an Anthropic subscription on the device:Method 2: With Anthropic Account
Use this method if the user already has an active Anthropic subscription. This configures hooks for tracking and analytics while preserving the existing Anthropic authentication:Gemini CLI
Run the following command to configure Gemini CLI:Codex
Codex supports two deployment methods depending on how your organization uses OpenAI.Method 1: Using API Key
Use this method to route all Codex traffic through the Unbound Gateway without requiring an OpenAI subscription on the device:Method 2: With OpenAI Account
Use this method if the user already has an active OpenAI subscription. This configures hooks for tracking and analytics while preserving the existing OpenAI authentication:GitHub Copilot
Run the following command to configure GitHub Copilot. Hooks-based — works with both the VS Code extension and thecopilot CLI on the user’s existing Copilot subscription:
Remove Unbound Configuration
To remove the Unbound Gateway configuration from a device, run that tool’smdm-install command with only the --clear flag. Clearing does not require an API key or backend URL. This removes all Unbound-related settings for that tool and restores it to its default state.
For example, to clear Cursor:
Keep enforcement in place
Deploying through MDM installs Unbound as managed settings that standard users can’t remove. Schedule the deployment to run daily so enforcement stays resilient.Tamper Resistance
Best practices for keeping Unbound active on every device with managed settings.

