> ## 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.

# Claude Code

> Claude Code は、Anthropic のエージェント型コーディングツールで、ターミナル、IDE、デスクトップアプリ、ブラウザからコードベースを読み取り、ファイルを編集し、コマンドを実行します。以下の手順に従って、Claude Code を自社アプリケーションのLLM エンジンとして使用します。

## 前提条件

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

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

## Claude Code の設定

Claude Code をConnect AI のLLM Gateway に向けるには、次の環境変数を設定します。ゲートウェイは、プロジェクトのルーティングルールに基づいてプロバイダーとモデルを選択します。

<Tabs>
  <Tab title="macOS / Linux">
    ```bash theme={null}
    export ANTHROPIC_BASE_URL="https://cloud.cdata.com/gateway/v1"
    export ANTHROPIC_API_KEY="<your-virtual-key>"
    ```
  </Tab>

  <Tab title="Windows (PowerShell)">
    ```powershell theme={null}
    $env:ANTHROPIC_BASE_URL = "https://cloud.cdata.com/gateway/v1"
    $env:ANTHROPIC_API_KEY = "<your-virtual-key>"
    ```
  </Tab>
</Tabs>

## セッションの開始

環境変数を設定したら、Claude Code を起動します：

```bash theme={null}
claude
```


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