# Cursor

Use Tensorix models with [Cursor](https://cursor.sh), the AI-powered code editor.

## Installation

Download and install [Cursor](https://cursor.sh).

## Configuration

{% hint style="warning" %}
**Important:** Clear existing OpenAI environment variables before configuration
{% endhint %}

### Step 1: Configure API Settings

1. Open Cursor **Settings** → **Models**
2. Expand **API Keys** section
3. Enable **Override OpenAI Base URL**
4. Enter Base URL: `https://api.tensorix.ai/v1`
5. Enter your Tensorix API key in the **OpenAI API Key** field
6. Click the verification button to test the connection

### Step 2: Add Custom Model

1. In **Models** section, click **Add Custom Model**
2. Enter model name: `minimax/minimax-m2`
3. Click **Add**
4. Enable the model
5. Select it in the chat panel

## Available Models

| Model             | ID                     | Best For                        |
| ----------------- | ---------------------- | ------------------------------- |
| GLM-5.1 (Default) | `z-ai/glm-5.1`         | Coding, reasoning, functions    |
| MiniMax-M2.5      | `minimax/minimax-m2.5` | Reasoning, functions            |
| Kimi-K2.5         | `moonshotai/kimi-k2.5` | Vision, functions, long context |
| MiniMax-M2        | `minimax/minimax-m2`   | Coding, fast responses          |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tensorix.ai/ai-coding-assistants/cursor.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
