Skip to content

All requests show "403 Unauthorized: not authorized to use this Copilot feature\n" #18

Description

@kwkraus

Describe the bug

Image

Affected version

Version 0.0.326 · Commit afa22a8

Steps to reproduce the behavior

No response

Expected behavior

No response

Additional context

No response

Activity

  1. added theissue type on Sep 25, 2025
  2. TeplrGuy commented on Sep 25, 2025

    @TeplrGuy

    I am also getting the same 403 error from Gitbash on my windows machine.

    Image
  3. TeplrGuy commented on Sep 25, 2025

    @TeplrGuy

    I am also getting the same 403 error from Gitbash on my windows machine.

    Image

    Looks like this feature needs to be enabled in Copilot feature settings page.

    Image

    Documentation: https://github.com/proxy/docs.github.com/en/copilot/concepts/agents/about-copilot-cli

  4. RyanHecht commented on Sep 25, 2025

    @RyanHecht
    Collaborator

    Hi folks! As @TeplrGuy pointed out, this error means that your organization needs to enable the "Copilot CLI" policy on the Copilot feature settings page. We have an internal action item to make the message clearer, stay tuned for an update on that!

  5. francovp commented on Sep 25, 2025

    @francovp

    @RyanHecht Hi RyanHecht, I enable the policy like 30 minutes ago, but I still can't use the CLI and still got the same error. It's takes time for the policy to take effect? I logged in again, just in case, but got the same.

  6. asw101 commented on Sep 25, 2025

    @asw101
    Member

    @RyanHecht I am also seeing this issue.

  7. devslimbr commented on Sep 26, 2025

    @devslimbr

    Same problem and the CLI policy was enabled from the beginning of my account
    × Model call failed: "401 401 unauthorized: Personal Access Token does not have Copilot Requests permission\n"

    × Execution failed: 401 401 unauthorized: Personal Access Token does not have Copilot Requests permission

  8. RyanHecht commented on Sep 26, 2025

    @RyanHecht
    Collaborator

    We've improved the error message to make this clearer in https://github.com/github/copilot-cli/releases/tag/v0.0.328!

  9. JGalego commented on Sep 29, 2025

    @JGalego

    Getting a × You are not authorized to use this Copilot feature, it requires an enterprise or organization policy to be enabled. error even after enabling the GitHub CLI policy - any tips?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions