copilot-api icon indicating copy to clipboard operation
copilot-api copied to clipboard

"Invalid bearer token" - can't sign in at all [Windows]

Open ars-celare opened this issue 9 months ago • 4 comments

My problem is similar to this user: https://github.com/ericc-ch/copilot-api/issues/186 - except that, following the suggested steps, either installing v2.0.55 or adding hasCompletedOnboarding = true, I'm still unable to login.

Image

It seems like the 'invalid bearer token' has been a problem for many of us trying to use copilot-api. How do we finish it once and for all?

Is there anything that works at all?

Is there anything that works? I've tried opencode and come up against the same problems. Can't run it on claude, can't run it on opencode. I've just no idea what to do now.

Image

ars-celare avatar Feb 16 '26 13:02 ars-celare

why? Why do you need to log in if you have set hasCompletedOnboarding = true?

alexhoshina avatar Feb 16 '26 14:02 alexhoshina

why? Why do you need to log in if you have set hasCompletedOnboarding = true?

That's what I'm asking!

I don't want to log in, but claude is forcing me to, and clearly there's no actual way to do it without being asked to log in.

ars-celare avatar Feb 16 '26 14:02 ars-celare

why? Why do you need to log in if you have set hasCompletedOnboarding = true?

That's what I'm asking!

I don't want to log in, but claude is forcing me to, and clearly there's no actual way to do it without being asked to log in.

Using hasCompletedOnboarding = true works in the version 2.1.34 I am using. Which versions are you using?

alexhoshina avatar Feb 16 '26 14:02 alexhoshina

https://github.com/StarryKira/copilot-go look at my repo rewrite with go and with webui

StarryKira avatar Feb 28 '26 18:02 StarryKira