> 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/en-us/pre-basic/providers/github-copilot.md).

# GitHub Copilot

To use GitHub Copilot, you first need a GitHub account and a subscription to the GitHub Copilot service. A free subscription is also available, but the free plan does not support the latest Claude 3.7 model. For details, please refer to [GitHub Copilot official website](https://github.com/features/copilot).

## Get Device Code

Click "Log in to GitHub" to obtain and copy the Device Code.

<figure><img src="/files/2826575d7c72a63d12fd26edf490d20ac4664856" alt="获取 Device Code 示例图片"><figcaption><p>Get Device Code</p></figcaption></figure>

## Enter the Device Code in the browser and authorize

After successfully obtaining the Device Code, click the link to open the browser, log in to your GitHub account in the browser, enter the Device Code, and authorize.

<figure><img src="/files/65a3a73c38b93bab340181a1c977a6a49e171229" alt="GitHub授权.png 示例图片"><figcaption><p>GitHub Authorization</p></figcaption></figure>

After authorization is successful, return to Cherry Studio and click "Connect GitHub". Once successful, your GitHub username and avatar will be displayed.

<figure><img src="/files/9b8941c3cdf83f5e58d46029244901883635b250" alt="GitHub连接成功示例图片"><figcaption><p>GitHub connected successfully</p></figcaption></figure>

## Click "Manage" to get the model list

Click the "Manage" button below, and it will automatically connect to the internet to retrieve the list of currently supported models.

<figure><img src="/files/cf0e0a63307079051cb2c5fb4309dda7586d168e" alt="管理按钮获取模型列表示例图片"><figcaption><p>Get model list</p></figcaption></figure>

## Frequently asked questions

### Failed to get Device Code, please try again

<figure><img src="/files/259aaa55f496e289c30b9770653d9bdd97f7b846" alt="获取 Device Code 失败示例图片"><figcaption><p>Failed to get Device Code</p></figcaption></figure>

Currently, requests are built using Axios. Axios does not support SOCKS proxies. Please use the system proxy or an HTTP proxy, or simply do not set a proxy in CherryStudio and use a global proxy instead. First, make sure your network connection is working properly to avoid failures in obtaining the Device Code.

***

### 💡 Get help and submit feedback

If you encounter any questions, bugs, or have suggestions for feature improvements during configuration or use, please refer to [Feedback and Suggestions](/docs/en-us/question-contact/suggestions.md) the official channels provided there.


---

# 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://docs.cherryai.com.cn/docs/en-us/pre-basic/providers/github-copilot.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.
