> For the complete documentation index, see [llms.txt](https://help.aikido.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.aikido.dev/docs/docs-ja/ai-totsru/ide-plugins-overview/troubleshooting/vs-code-proxy-setup.md).

# VS Codeのプロキシ設定

ネットワークでプロキシが必要な場合は、このガイドを使用してください [Aikido への送信トラフィック](/docs/docs-ja/ai-totsru/ide-plugins-overview/troubleshooting/troubleshooting-ide-plugin-connectivity.md) VS Code で。

## 設定

1. VS Code を開く `設定` (`Cmd+,` macOS では、 `Ctrl+,` Windows/Linux では）。
2. 検索する `プロキシ`.
3. 設定 `HTTP: プロキシ サポート` を次に設定します: `上書き` （または `オン` （お使いの環境ですでにプロキシ処理が正しく行われている場合）。HTTP: プロキシ サポート<br>

   <figure><img src="/files/46ba62c4ed4b3913813f35f94b26bcf6f5c63c43" alt=""><figcaption></figcaption></figure>
4. 設定 `HTTP: プロキシ` プロキシ URL に（例： `http://proxy.company.local:8080`）。HTTP: プロキシ<br>

   <figure><img src="/files/71748088d8631aec714d4c4dc3cee0101facfe70" alt=""><figcaption></figcaption></figure>
5. 有効のままにする `HTTP: プロキシ Strict SSL` 有効（`true`可能な場合は常に有効にします。HTTP: プロキシ Strict SSL

   * 使用 `true` プロキシ/サーバーの証明書チェーンが信頼されている場合（公開 CA または正しくインストールされた社内 CA）。
   * 会社で TLS インスペクションまたはカスタム/自己署名証明書を使用している場合、 `true` その CA がインストールされるまで、信頼エラーで失敗することがあります。
   * 推奨の対処法: 社内 CA 証明書（PEM）を次で追加します： `aikido.extraCaCerts` （または `NODE_EXTRA_CA_CERTS`）これにより、検証は引き続き有効のままです。
   * 設定するのは `HTTP: プロキシ Strict SSL` を次に設定します: `false` 制御された環境での一時的なトラブルシューティング手順としてのみ。元に戻す: `true` 証明書の信頼設定が完了した後。

   <figure><img src="/files/2ef735aba13d5de1845ce5a81127fd990011bac2" alt=""><figcaption></figcaption></figure>
6. VS Code を再読み込み（`開発者: ウィンドウの再読み込み`).
7. ファイルを開くか保存して Aikido スキャンを開始します。

### \`settings.json\` を使った別の設定方法

例 `settings.json`:

```json
{
  "http.proxySupport": "override",
  "http.proxy": "http://proxy.company.local:8080",
  "http.proxyStrictSSL": true
}
```

### 会社で認証付きプロキシを使用している場合

`HTTP: プロキシ認証`

<figure><img src="/files/0b9b65893ed4a74ecc917d509a8052b8fb9327d7" alt=""><figcaption></figcaption></figure>

推奨:

```json
{
  "http.proxyAuthorization": "Basic <base64(username:password)>"
}
```

代替:

```json
{
  "http.proxy": "http://username:password@proxy.company.local:8080"
}
```

### 会社で TLS インスペクションを使用している場合

`Aikido: 追加 CA 証明書`

<figure><img src="/files/e8819bdd0214c63523dc105c632dd25f2890f951" alt=""><figcaption></figcaption></figure>

プロキシが証明書を再署名する場合は、社内 CA バンドルを追加してください：

```json
{
  "aikido.extraCaCerts": "/absolute/path/to/corporate-ca.pem"
}
```

### 接続を確認

* プロキシ変更後に VS Code を再読み込みします。
* ファイルを開く/保存して Aikido スキャンを実行します。
* ログにプロキシ認証や TLS 信頼エラーがないことを確認します。
* SCA スキャンを実行し、依存関係のダウンロードが成功することを確認します。

### よくある解決策

* **`407 プロキシ認証が必要`**
  * 再確認 `http.proxyAuthorization` 形式（`Basic ...`).
  * 必要に応じて、プロキシ URL の資格情報形式で認証情報を確認してください。
* **TLS エラー（`自己署名`, `検証できません`, `証明書が不明`)**
  * 有効な `aikido.extraCaCerts` パスを設定（または `NODE_EXTRA_CA_CERTS`).
  * 有効のままにする `http.proxyStrictSSL: true` 可能な限り。
  * 証明書を変更した後、VS Code を再読み込みします。
* **プロキシが使用されていない**
  * 確認してください `http.proxySupport` ではありません `オフ`.
  * 次のいずれかが設定されていることを確認してください： `http.proxy`, `HTTPS_PROXY`、または `https_proxy` が設定されています。
  * 更新後に VS Code を再読み込みします。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://help.aikido.dev/docs/docs-ja/ai-totsru/ide-plugins-overview/troubleshooting/vs-code-proxy-setup.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
