Skip to main content

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.
All scripts must be run as root (or with administrator privileges). When deploying through your MDM provider, ensure the execution context is set to run with root-level permissions.
Before deploying, ensure your MDM provider is connected or devices are imported and you have an admin API key from your Unbound applications page.
In every command below, replace the following placeholders with your actual values:
  • YOUR_ADMIN_API_KEY — an admin API key from your Unbound applications page
  • https://backend.getunbound.ai — if your organization uses a custom backend URL, replace this with your own

Cursor

Run the following command to configure Cursor:
python3 -c "$(curl -fsSL https://raw.githubusercontent.com/websentry-ai/setup/refs/heads/main/cursor/mdm/setup.py)" --url https://backend.getunbound.ai --api_key YOUR_ADMIN_API_KEY

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:
python3 -c "$(curl -fsSL https://raw.githubusercontent.com/websentry-ai/setup/refs/heads/main/claude-code/gateway/mdm/setup.py)" --url https://backend.getunbound.ai --api_key YOUR_ADMIN_API_KEY

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:
python3 -c "$(curl -fsSL https://raw.githubusercontent.com/websentry-ai/setup/refs/heads/main/claude-code/hooks/mdm/setup.py)" --url https://backend.getunbound.ai --api_key YOUR_ADMIN_API_KEY

Gemini CLI

Run the following command to configure Gemini CLI:
python3 -c "$(curl -fsSL https://raw.githubusercontent.com/websentry-ai/setup/refs/heads/main/gemini-cli/gateway/mdm/setup.py)" --url https://backend.getunbound.ai --api_key YOUR_ADMIN_API_KEY

Codex

Run the following command to configure Codex:
python3 -c "$(curl -fsSL https://raw.githubusercontent.com/websentry-ai/setup/refs/heads/main/codex/gateway/mdm/setup.py)" --url https://backend.getunbound.ai --api_key YOUR_ADMIN_API_KEY

Remove Unbound Configuration

To remove the Unbound Gateway configuration from a device, append --clear to the end of any deployment command above. This removes all Unbound-related settings for that tool and restores it to its default state. For example:
python3 -c "$(curl -fsSL https://raw.githubusercontent.com/websentry-ai/setup/refs/heads/main/cursor/mdm/setup.py)" --url https://backend.getunbound.ai --api_key YOUR_ADMIN_API_KEY --clear