# GitHub Copilot

Using GitHub Copilot requires first having a GitHub account and subscribing 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 "Sign 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>

## Fill in the Device Code in the browser and authorize

After successfully obtaining the Device Code, click the link to open the browser, sign 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 succeeds, 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 currently supported model list.

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

## FAQ

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

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

Currently, requests are built using Axios, which 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, please make sure your network connection is working properly to avoid failures when obtaining the Device Code.


---

# Agent Instructions: 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:

```
GET https://docs.cherry-ai.com/docs/en-us/pre-basic/providers/github-copilot.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
