Skip to content

Cursor

Cursor is an AI-powered IDE that supports OpenAI-compatible APIs and MCP (Model Context Protocol). By connecting Cursor to DeepIntShield, you get access to any provider/model in your DeepIntShield configuration, plus MCP tools and governance features like virtual keys.

Setting up DeepIntShield for Cursor

  1. Open Cursor Settings

    Press Cmd+, (macOS) or Ctrl+, (Windows/Linux) and navigate to Models.

  2. Enter your API key

    In the OpenAI API Key field, enter your DeepIntShield virtual key or provider API key.

  3. Override the base URL

    Toggle Override OpenAI Base URL to ON and enter your DeepIntShield endpoint:

    http://localhost:8080/cursor

    For deployed instances, use your DeepIntShield deployment URL (e.g., https://deepintshield.example.com/cursor).

  4. Add custom models (optional)

    Type a model name in the Add or search model field using the provider/model-name format:

    Adding a custom model in Cursor

    Examples: anthropic/claude-sonnet-4-5-20250929, openai/gpt-5, gemini-2.5-pro

    ProviderFormatExample
    Anthropicanthropic/model-nameanthropic/claude-sonnet-4-5-20250929
    Geminimodel-namegemini-2.5-pro
    OpenAIopenai/model-nameopenai/gpt-5
    Bedrockbedrock/model-namebedrock/anthropic.claude-3
    Vertex (non-Gemini)vertex/model-namevertex/text-bison
    Other providersprovider/model-namegroq/llama-3.3-70b-versatile

DeepIntShield Virtual Keys can be used as the OpenAI API Key in Cursor. Virtual keys let you enforce budgets, rate limits, and provider access controls for each user or team.

Cursor assigns models to different features — Chat, Agent, Inline Edit, and Tab Completion. After configuring DeepIntShield, you can assign any provider/model-name to each feature for optimal cost and performance:

  • Use a powerful model like openai/gpt-5 or anthropic/claude-sonnet-4-5-20250929 for Agent mode
  • Use a fast model like groq/llama-3.3-70b-versatile for Tab completion

DeepIntShield routes requests to the correct provider based on the model name. Use the provider/model-name format to access any configured provider through the single OpenAI-compatible endpoint:

anthropic/claude-sonnet-4-5-20250929
openai/gpt-5
gemini/gemini-2.5-pro
mistral/mistral-large-latest

DeepIntShield supports the following providers with the provider/model-name format:

openai, anthropic, azure, gemini, vertex, bedrock, mistral, groq, cerebras, cohere, perplexity, xai, ollama, openrouter, huggingface, nebius, parasail, replicate, vllm, sgl

All Cursor requests through DeepIntShield are logged. Monitor them at http://localhost:8080/logs — filter by provider, model, or search through conversation content.