Skip to main content
Cursor IDE is an AI-first code editor that deeply understands your whole codebase to offer natural-language coding, multi-file refactoring, and smart autocomplete. It blends project-level context with LLM-powered agents to speed up development while letting you review exactly what changes before applying them.

Prerequisites

Before setting up the integration, ensure you have:
  • Unbound Application: A configured application in your Unbound Security dashboard

Installation

Step 1: Install Cursor

Download and install Cursor

Step 2: Configure Environment Variables

To configure Cursor to use the Unbound AI Gateway, run the following command in your terminal:
python -c "$(curl -s https://raw.githubusercontent.com/websentry-ai/setup/refs/heads/main/cursor/setup.py)" --domain <DOMAIN>
Replace <DOMAIN> with your Unbound Gateway URL, for example: gateway.getunbound.ai Once the script starts, it will generate a login URL. Click the URL or open it in your browser. The page will automatically:
  • Authenticate your account through the Unbound dashboard.
  • Retrieve and register your gateway credentials.
  • Redirect you back to a success page.
You can close the browser window once the callback is complete. Return to your terminal. The installation will finish automatically. Cursor will automatically restart. If not, manually do so.

Usage

Basic Usage

After configuration, Cursor will automatically route completions and AI actions through the Unbound Gateway. You can:
  • Use AI autocomplete
  • Ask questions directly in the Cursor chat
  • Run multi-file edits
  • Refactor or fix bugs with AI assistance

Security Benefits

Using Cursor with Unbound Security AI Gateway provides:
  • Request Monitoring: All AI requests are logged and monitored
  • Analytics:
  • Compliance: Ensure AI interactions meet your organization’s standards
  • Audit Trail: Complete visibility into AI usage patterns