| title | Getting started with the GitHub Copilot app | ||
|---|---|---|---|
| shortTitle | Copilot app quickstart | ||
| allowTitleToDifferFromFilename | true | ||
| intro | Sign in to the {% data variables.copilot.github_copilot_app %}, connect a repository or local folder, and create your first agent session to make code changes. | ||
| product | {% data reusables.gated-features.github-app %}<br>{% data reusables.copilot.github-app-download-button %} | ||
| versions |
|
||
| contentType | get-started | ||
| redirect_from |
|
||
| category |
|
For a conceptual overview of the {% data variables.copilot.github_copilot_app %}, see AUTOTITLE.
In this quickstart, you will:
- Install and sign in to the {% data variables.copilot.github_copilot_app %}.
- Connect a repository or local folder.
- Make code changes in an agent session.
- A {% data variables.product.github %} account.
- A {% data variables.product.prodname_copilot_short %} plan, or you can configure your own model provider.
- If you use your own model provider, you will need provider credentials such as an API key. For setup steps, see AUTOTITLE.
- Git installed on your computer.
Note
For {% data variables.copilot.copilot_business_short %} and {% data variables.copilot.copilot_enterprise_short %} users, the {% data variables.copilot.github_copilot_app %} policy must remain enabled. This policy is enabled by default and is separate from the {% data variables.copilot.copilot_cli_short %} policy. See AUTOTITLE or AUTOTITLE.
Download and install the {% data variables.copilot.github_copilot_app %} for your operating system. For other operating systems and architectures, see the download page.
{% data reusables.copilot.github-app-download-button %}
-
Open the {% data variables.copilot.github_copilot_app %}.
-
Click Sign in to {% data variables.product.github %} and follow the prompts to authenticate.
- If you use {% data variables.enterprise.data_residency %}, choose {% data variables.product.prodname_ghe_cloud %} and enter your
*.ghe.comhostname when prompted. - If you work on {% data variables.product.prodname_ghe_server %}, sign in with a cloud account first. You can add your {% data variables.product.prodname_ghe_server %} account later to access repositories, pull requests, and issues for that account.
- If you use {% data variables.enterprise.data_residency %}, choose {% data variables.product.prodname_ghe_cloud %} and enter your
-
If you do not have a {% data variables.product.prodname_copilot_short %} plan, choose whether to sign up for a plan or continue with your own model provider.
If you choose to use your own model provider, select a provider, enter any required credentials, then click Save and continue.
-
When prompted, select one or more repositories based on your recent {% data variables.product.github %} activity. You can also add a local folder or repository, or skip this step and add repositories later.
-
Choose a theme, then complete onboarding to open the app.
To work on code, you need at least one repository or local folder connected to the app. You can connect a folder already on your machine, including a repository you've already cloned locally, or a repository you clone from {% data variables.product.github %} or another remote Git host such as Azure DevOps. Connecting a repository or folder unlocks the core app workflow: reading code, making edits, and opening pull requests from agent sessions. If you skipped repository setup during onboarding, or want to add more repositories or folders later:
- In the sidebar, next to Sessions, click {% octicon "plus" aria-label="New" %}.
- Choose where to add the repository or folder from:
- Open local folder — Select a folder already on your machine, including one that contains a repository you've already cloned locally.
- Add {% data variables.product.github %} repository — Browse and clone a repository from {% data variables.product.github %}.
- Clone repository — Clone from a Git URL for repositories hosted outside {% data variables.product.github %} (for example, on Azure DevOps) or for private repositories without app access.
To add repositories hosted on {% data variables.product.prodname_ghe_server %}, sign in to your account. See AUTOTITLE.
-
In the sidebar, next to Sessions, click {% octicon "plus" aria-label="New" %}, then select the connected repository or folder under "Start session in."
-
Select a session mode from the dropdown below the prompt field—for example, Interactive to work collaboratively with the agent.
-
In the prompt box, paste this prompt:
Suggest a small low-risk code change in this repository, implement it, and explain the diff. -
Respond to any requests for input from the agent. After the agent makes changes, click Changes above the prompt box to view the diff.
-
Continue iterating in the same session until you are happy with the result.
-
If you want to keep the change, click Create PR to open a pull request for review.
-
If you create a pull request, click PR above the prompt box to view it directly in the app.
Optional: If you already have tasks you want to complete in your repository, click Issues in the sidebar to find an issue and start a session from it. For more information, see AUTOTITLE.
The sidebar gives you access to the main areas of the app:
- New — Start a new agent session.
- Pull requests — Browse pull requests, check CI status, and leave reviews.
- Issues — Browse issues and start agent sessions to work on them.
- Automations — Saved agent tasks that run on a schedule or on demand.
- Customize — Discover and manage plugins, skills, MCP servers, and canvases.
- Search — Search across your repositories directly from the app.
- Projects — Organize ongoing work with {% data variables.product.prodname_copilot_short %}. Within a project, you can start multiple sessions across repositories, track progress, share context, review artifacts, and set up recurring tasks. See AUTOTITLE.
- Sessions — View connected repositories, local folders, and their active agent sessions, or start a new session for a repository or folder.
- Chats — General conversations that do not require a dedicated branch or workspace.
Find out more about using the {% data variables.copilot.github_copilot_app %}: