Failed to list models: 403 : unauthorized: not authorized to use this Copilot feature
Describe the bug
My organization has enabled copilot cli. However, I am not able to see any of the models. I receive the following log message:
Failed to list models: 403 : unauthorized: not authorized to use this Copilot feature
Affected version
0.0.355
Steps to reproduce the behavior
- Open copilot cli
- enter a simple prompt
sfeldman@PRTM-SFeldman ~ % copilot Welcome to GitHub Copilot CLI Version 0.0.355 · Commit 90c0eb793
Copilot can write, test and debug code right from your terminal. Describe a task to get started or enter ? for help. Copilot uses AI, check for mistakes.
● Connected to GitHub MCP Server
● Logged in as user: SteveFeldman
✗ No model available. Check policy enablement under GitHub Settings > Copilot
Expected behavior
One other user in the enterprise is able to see several models. The only difference is his account is only for our enterprise. My account is my longtime github account that has been added to the organization.
Additional context
No response
@SteveFeldman : first, my apologies for the friction around this 🙇
I'm working internally to understand the root cause of this, however it seems the controls and policies associated with you were cached with GitHub Copilot CLI being unconfigured / disabled. I believe your situation should be alleviated, however I'd like to follow up with you over the next 24 hours to confirm this isn't a recurring issue.
That did the trick @andyfeller. Thank you so much! I took the latest release 356 and the problem is gone.
I have the same exact issue, except my version is: Version 0.0.357 · Commit 339872d6f.
This is also for me true too: One other user in the enterprise is able to see several models. The only difference is his account is only for our enterprise. My account is my longtime github account that has been added to the organization.
I have the same exact issue, except my version is: Version 0.0.357 · Commit 339872d6f.
This is also for me true too: One other user in the enterprise is able to see several models. The only difference is his account is only for our enterprise. My account is my longtime github account that has been added to the organization.
Thank you and my apologies, @iovardas. I appreciate the extra data points to get to the bottom of this. 🙇
Thank you for your reply, @andyfeller. After some digging, I discovered that my issue was not actually related to copilot-cli, but rather to a problem on my company’s side. For example, I noticed that Copilot Chat wasn’t working on GitHub.com, which is normally enabled by my company. So in my case, I’m certain it had nothing to do with copilot-cli. For your information, it seems to be working now, though I’m not sure why or how.
Thank you for that follow up, @iovardas, as that reaffirms my suspicion there is a more complex problem on the GitHub.com side that is affecting GitHub Copilot CLI. 🙇