Skip to main content

Cursor

Connect Cursor to AI Studio through the OpenAI-compatible API.

This quickstart guide shows you how to connect Cursor to Hyperstack AI Studio using an OpenAI-compatible API endpoint. You will configure a custom model inside Cursor, authenticate with a Hyperstack API key, and validate the connection using a live prompt. This setup enables Cursor to use any base or fine-tuned model hosted in Hyperstack AI Studio.

Full Guide

For the complete walkthrough with architecture details, advanced testing, and workflow enhancements, see Integrate Hyperstack AI Studio with Cursor for Smarter Coding Assistance.

Why Integrate Cursor with Hyperstack AI Studio

Cursor is an AI-powered code editor built on top of VS Code. It goes beyond autocomplete by understanding your repository context and developer intent. Through its chat interface and inline editing capabilities, Cursor helps generate code, refactor logic, debug issues, and reason across multiple files directly inside your editor.

By connecting Cursor to Hyperstack AI Studio, you control the model powering those interactions. Instead of relying on a fixed third-party backend, you can choose any base or fine-tuned model that fits your performance, cost, and privacy requirements.

With this integration, you can:

  • Use any base or fine-tuned model hosted in AI Studio
  • Maintain full control over your model backend
  • Standardize model configuration across your team
  • Connect using an OpenAI-compatible API without additional adapters

Hyperstack AI Studio provides a unified platform for training, fine-tuning, deploying, and monitoring large language models. Because it exposes an OpenAI-compatible API, Cursor can connect using the built-in OpenAI Compatible provider option without a proxy layer.

In this setup, Hyperstack AI Studio handles inference, scaling, and authentication, while Cursor remains the developer interface inside VS Code, sending structured requests to your selected model.

For advanced workflows and architecture details, refer to the full integration guide.

How to Install and Connect Cursor to Hyperstack AI Studio

Follow these steps to install Cursor, generate AI Studio credentials, configure a custom model endpoint, and validate the integration. For step-by-step screenshots and expanded explanations, see the full integration guide.

  1. Install Cursor

    a. Visit the official Cursor website.
    b. Download and install the application for your operating system.
    c. Launch Cursor after installation.
    d. Log in to your Cursor account.
    e. Ensure you are using a Pro plan or active trial, as custom model endpoints require this tier.

  2. Get API Credentials from Hyperstack AI Studio

    Generate the necessary credentials to authenticate with Hyperstack AI Studio.

    a. Log in to the Hyperstack Console.
    b. Navigate to the AI Studio Playground and select your desired base model, for example openai/gpt-oss-120b.
    c. Select the API tab to retrieve your Base URL: https://console.hyperstack.cloud/ai/api/v1.
    d. Visit the API Keys page and click Generate New Key.
    e. Provide a name such as cursor-integration-key, then copy and securely store the generated API key. It will only be shown once.

  3. Configure a Custom Model in Cursor

    a. Open Cursor.
    b. Click the Settings icon.
    c. Navigate to the Models section.
    d. Enable the OpenAI Compatible API provider option.
    e. Add a new custom model configuration.

    To connect Hyperstack, provide Cursor with:

    • The Base URL of the API endpoint: https://console.hyperstack.cloud/ai/api/v1
    • The model name you are adding as a custom model: openai/gpt-oss-120b
    • The API key generated from the Hyperstack Console: <YOUR_HYPERSTACK_API_KEY>

    In the Models section, locate the Custom Model or OpenAI Compatible API field and enter these values accordingly. Ensure this model is set as the active or default model after saving. For UI screenshots and troubleshooting tips, refer to the full integration guide.

    f. Save the configuration and confirm the model appears in the available model list without errors.

  4. Select the Hyperstack Model in Cursor

    a. Open the Command Palette using:

    • macOS: Cmd + Shift + P
    • Windows/Linux: Ctrl + Shift + P

    b. Select Open Chat.
    c. From the model selector dropdown, choose openai/gpt-oss-120b.

  5. Validate the Integration

    a. In the Cursor chat panel, send a simple prompt such as Hello.
    b. Confirm that the model returns a valid response.
    c. Optionally test code generation with a prompt such as Create a Python file named hello_world.py that prints "Hello, World!".

    If a valid response is returned, the integration is complete and Cursor is now using your Hyperstack-hosted model for inference.

Next Steps

For fine-tuning workflows, team-wide configuration strategies, and advanced usage patterns, see Integrate Hyperstack AI Studio with Cursor for Smarter Coding Assistance.


Back to top