# 为自己设置GitHub Copilot

请按照以下步骤开始使用Copilot。

## 1. 获取访问权限 GitHub Copilot

可通过多种方式访问 GitHub Copilot：

* **使用 Copilot Free**。 无需付费计划，即可获得 Copilot 的有限体验：最多 2,000 次内联建议请求，以及使用聊天和智能体（有一定限制）。 请参阅 [GitHub Copilot计划](/zh/copilot/concepts/billing/individual-plans)。

* **注册付费计划**。 可以订阅以下计划之一：

  * **Copilot Pro**，其中包含高级模型的访问权限以及每月 AI credits 的额度。 [Copilot Pro订阅](https://github.com/github-copilot/signup?ref_product=copilot\&ref_type=purchase\&ref_style=text\&ref_plan=pro) 。
  * **Copilot Pro+**，包括更高的每月额度 AI credits，以及使用所有可用模型的权限。 [Copilot Pro+订阅](https://github.com/github-copilot/signup?ref_product=copilot\&ref_type=purchase\&ref_style=text\&ref_plan=pro) 。
  * **Copilot Max**，其中包括高级 AI 模型和我们最高个人每月津贴 AI credits。 [Copilot Max订阅](https://github.com/settings/billing/licensing?ref_product=copilot\&ref_type=purchase\&ref_style=text\&ref_plan=max) 。

* **在您的组织或企业内使用Copilot**。 如果你是某个具有Copilot计划的组织或企业的一员，可以在“从组织获取<https://github.com/settings/copilot”中[>]\(<https://github.com/settings/copilot)请求访问权限。>

* **已验证学生**可以注册 Copilot Student 免费访问 Copilot。 请参阅 [以学生身份免费访问GitHub Copilot](/zh/copilot/how-tos/copilot-on-github/set-up-copilot/enable-copilot/set-up-for-students)。

* **验证的教师或开放源代码维护人员**可能有资格免费使用 Copilot。 请参阅 [作为教师或开源维护者免费访问Copilot Pro](/zh/copilot/how-tos/copilot-on-github/set-up-copilot/enable-copilot/set-up-for-teachers-and-os-maintainers)。

## 2.安装 IDE 的 Copilot 扩展

如果要 Copilot 在 IDE 中使用，请安装 IDE 的 Copilot 扩展。 请参阅 [在环境中安装 GitHub Copilot 扩展](/zh/copilot/how-tos/set-up/install-copilot-extension)。

## 3.安装 Copilot 命令行的扩展

如果你想在命令行中使用 Copilot，请安装 Copilot 扩展到 GitHub CLI。 请参阅 [安装 GitHub Copilot CLI](/zh/copilot/how-tos/copilot-cli/set-up-copilot-cli/install-copilot-cli)。

## 4. 在Copilot中使用Windows Terminal

如果你想在 Copilot 中与 Windows Terminal 聊天，请在 Copilot Canary 中通过终端聊天连接 Windows Terminal。 请参阅 [GitHub Copilot 快速入门](/zh/copilot/get-started/quickstart?tool=windowsterminal)。

## 5. 设置网络（如必要）

如果你通过 HTTP 代理服务器或防火墙进行连接，请确保将关键 URL 添加到代理服务器或防火墙的允许列表中。 请参阅 [Copilot 允许列表参考](/zh/copilot/reference/copilot-allowlist-reference)。

你可能还需要在计算机上安装自定义 SSL 证书。 请参阅 [为 GitHub Copilot 配置网络设置](/zh/copilot/how-tos/configure-personal-settings/configure-network-settings#installing-custom-certificates)。

## 6. 配置设置（可选）

所有用户都可以在其 IDE 中配置 Copilot 设置。 请参阅 [在环境中配置 GitHub Copilot](/zh/copilot/how-tos/configure-personal-settings/configure-in-ide)。

如果你有自己的 Copilot 计划（而不是使用组织或企业计划），可以：

* **安装模型上下文协议（MCP）服务器**以实现与Copilot Chat的集成。 请参阅 [使用 MCP（模型上下文协议）服务器扩展 GitHub Copilot 对话助手](/zh/copilot/how-tos/provide-context/use-mcp-in-your-ide/extend-copilot-chat-with-mcp)。
* **管理策略**。 请参阅 [以个人订阅者身份管理 GitHub Copilot 策略](/zh/copilot/how-tos/manage-your-account/manage-policies)。
* **启用 Copilot Memory**，以便 Copilot 生成和存储有关存储库的有用信息。 请参阅 [关于GitHub Copilot内存](/zh/copilot/concepts/agents/copilot-memory)。

## 7. 开始使用 Copilot

开始使用 Copilot 以帮助更快、更高效地编写代码。 有关使用 Copilot的所有方法，请参阅 [GitHub Copilot操作说明](/zh/copilot/how-tos)。               在 IDE 中的 Copilot 代码建议、Copilot Chat in GitHub 和 Copilot Chat 是一个很好的起点。

若要开始使用代理驱动的开发 GitHub Copilot app，请参阅 [GitHub Copilot 应用入门](/zh/copilot/how-tos/github-copilot-app/getting-started)。

若要了解如何最好地使用 Copilot，请参阅 [使用 GitHub Copilot 的最佳做法](/zh/copilot/get-started/best-practices) 和 [GitHub Copilot 对话助手的提示设计](/zh/copilot/concepts/prompting/prompt-engineering)。