> For the complete documentation index, see [llms.txt](https://docs.cherryai.com.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cherryai.com.cn/docs/jp/pre-basic/providers/github-copilot.md).

# GitHub Copilot

GitHub Copilot を使用するには、まず GitHub アカウントを持ち、GitHub Copilot サービスに加入する必要があります。free 版のサブスクリプションでも構いませんが、free 版では最新の Claude 3.7 モデルはサポートされません。詳しくは [GitHub Copilot 公式サイト](https://github.com/features/copilot)を参照してください。

## Device Code を取得

「GitHub にログイン」をクリックして、Device Code を取得し、コピーします。

<figure><img src="https://3776196818-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Ut5BptC3t8CtSU1UWpM%2Fuploads%2Fgit-blob-3202ba64930247e41213bc08cdcd88f11b980b14%2F%E8%8E%B7%E5%8F%96DeviceCode.png?alt=media" alt="获取 Device Code 示例图片"><figcaption><p>Device Code を取得</p></figcaption></figure>

## ブラウザで Device Code を入力して認証

Device Code の取得に成功したら、リンクをクリックしてブラウザを開き、ブラウザで GitHub アカウントにログインし、Device Code を入力して認証してください。

<figure><img src="https://3776196818-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Ut5BptC3t8CtSU1UWpM%2Fuploads%2Fgit-blob-6915465c0a9938a7b7009a82ada2e1b720880f0f%2FGitHub%E6%8E%88%E6%9D%83.png?alt=media" alt="GitHub授权.png 示例图片"><figcaption><p>GitHub 認証</p></figcaption></figure>

認証に成功したら Cherry Studio に戻り、「GitHub に接続」をクリックします。成功すると GitHub のユーザー名とアバターが表示されます。

<figure><img src="https://3776196818-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Ut5BptC3t8CtSU1UWpM%2Fuploads%2Fgit-blob-e98cce5accc9f97d46b759a1b0ad3f554918d057%2FGitHub%E8%BF%9E%E6%8E%A5%E6%88%90%E5%8A%9F.png?alt=media" alt="GitHub连接成功示例图片"><figcaption><p>GitHub 接続に成功</p></figcaption></figure>

## 「管理」をクリックしてモデル一覧を取得

下の「管理」ボタンをクリックすると、現在サポートされているモデル一覧を自動的にオンラインで取得します。

<figure><img src="https://3776196818-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Ut5BptC3t8CtSU1UWpM%2Fuploads%2Fgit-blob-e20eaf3f12878378cba6d40bd790d51aed40ee77%2F%E7%AE%A1%E7%90%86%E6%8C%89%E9%92%AE%E8%8E%B7%E5%8F%96%E6%A8%A1%E5%9E%8B%E5%88%97%E8%A1%A8.png?alt=media" alt="管理按钮获取模型列表示例图片"><figcaption><p>モデル一覧を取得</p></figcaption></figure>

## よくある質問

### Device Code の取得に失敗しました。再試行してください

<figure><img src="https://3776196818-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Ut5BptC3t8CtSU1UWpM%2Fuploads%2Fgit-blob-e826ac02f651176d07d95e7f0e603ff89d1eccdb%2F%E8%8E%B7%E5%8F%96DeviceCode%E5%A4%B1%E8%B4%A5.png?alt=media" alt="获取 Device Code 失败示例图片"><figcaption><p>Device Code の取得に失敗しました</p></figcaption></figure>

現在は Axios を使ってリクエストを構築しています。Axios は socks プロキシをサポートしていないため、システムプロキシまたは HTTP プロキシを使用してください。あるいは、CherryStudio でプロキシを設定せず、グローバルプロキシを使用してください。まず、Device Code の取得失敗を避けるため、ネットワーク接続が正常であることを確認してください。

***

### ヘルプの取得とフィードバックの送信

設定や使用中に疑問、バグ、または機能改善の提案がある場合は、 [フィードバックと提案](https://docs.cherryai.com.cn/docs/jp/question-contact/suggestions.md) に記載の公式チャネルをご参照ください。


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.cherryai.com.cn/docs/jp/pre-basic/providers/github-copilot.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
