From 74a0655a1b44885d79c51f89cbe2535337dfe63f Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Thu, 12 Feb 2026 14:57:58 +0000 Subject: [PATCH] Correct instructions to avoid 403 when auth'd via PAT You need to give the token "Models" permissions, otherwise when authing non-interactively with COPILOT_GITHUB_TOKEN you get a 403. There are a few open issues in the Copilot CLI repo about this, eg https://github.com/github/copilot-cli/issues/1316 --- content/copilot/how-tos/copilot-cli/install-copilot-cli.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/copilot/how-tos/copilot-cli/install-copilot-cli.md b/content/copilot/how-tos/copilot-cli/install-copilot-cli.md index 7614c916d7d7..b4614dde0ae8 100644 --- a/content/copilot/how-tos/copilot-cli/install-copilot-cli.md +++ b/content/copilot/how-tos/copilot-cli/install-copilot-cli.md @@ -118,7 +118,7 @@ On first launch, if you're not currently logged in to {% data variables.product. ### Authenticating with a {% data variables.product.pat_generic %} -You can also authenticate using a {% data variables.product.pat_v2 %} with the "{% data variables.product.prodname_copilot_short %} Requests" permission enabled. +You can also authenticate using a {% data variables.product.pat_v2 %} with the "{% data variables.product.prodname_copilot_short %} Requests" and "Models" permissions enabled. 1. Visit [{% data variables.product.pat_v2_caps_plural %}](https://github.com/settings/personal-access-tokens/new). 1. Under "Permissions," click **Add permissions** and select **{% data variables.product.prodname_copilot_short %} Requests**.