> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloud.cdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cursor

> Cursor は、Anysphere が開発したAI を活用した統合開発環境（IDE）です。以下の手順に従って、Cursor のトラフィックをConnect AI のLLM Gateway 経由でルーティングします。

## 前提条件

Cursor がConnect AI のLLM Gateway を使用できるように設定する前に、プロバイダーを登録し、ルーティングルールを作成し、プロジェクトを作成し、仮想キーを発行する必要があります。詳細については、[LLM Gateway](/ja/LLM-Gateway/LLM-Gateway) を参照してください。

<Note>Connect AI のPersonal Access Token（PAT）はLLM Gateway では使用できません。リクエストの認証に使用できるのは仮想キーのみです。</Note>

## Cursor の設定

<Steps>
  <Step>
    Cursor を開き、**Cursor Settings** > **Models** に移動します。
  </Step>

  <Step>
    下部までスクロールし、**API Keys** を展開します。
  </Step>

  <Step>
    **OpenAI API Key** に、Connect AI のLLM Gateway から取得した仮想キーを入力します。
  </Step>

  <Step>
    **Override OpenAI Base URL** を有効にします。
  </Step>

  <Step>
    新しいOpenAI Base URL を入力します—*[https://cloud.cdata.com/gateway/v1](https://cloud.cdata.com/gateway/v1)* 。
  </Step>

  <Step>
    **Cursor Settings** を閉じます。変更はすぐに反映されます。
  </Step>
</Steps>

Cursor は、すべてのリクエストをConnect AI のLLM Gateway 経由でルーティングします。ゲートウェイは、プロジェクトのルーティングルールに基づいてプロバイダーとモデルを選択します。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.