opencode icon indicating copy to clipboard operation
opencode copied to clipboard

setting github copilot as provider asks for api key

Open wahaabm opened this issue 1 year ago • 10 comments

When running 'opencode auth login' and setting github copilot as provider, it asks for an api key instead of opening an oauth session in the browser to verify.

Image

wahaabm avatar Jun 24 '25 17:06 wahaabm

My Coplit Login was working for an initial session, but now I get

Image

Image

Version: 0.1.128

sluipmoord avatar Jun 24 '25 18:06 sluipmoord

@sluipmoord when selecting models you need to switch provider to GitHub Copilot using left and right

GontarzM avatar Jun 24 '25 18:06 GontarzM

can you try this again?

thdxr avatar Jun 25 '25 01:06 thdxr

The issue still seems to persist, tried reinstalling as well.

Image

Mel28vin avatar Jun 25 '25 03:06 Mel28vin

@thdxr On my end, it seems to have worked this morning. Thank you. Other models are a bit too pricey, especially where I'm from, but I have access to Github Copilot Pro, so I'm excited to have the ability to use opencode

Image

Version 0.1.133

sluipmoord avatar Jun 25 '25 06:06 sluipmoord

@Mel28vin try to type anything as an API key and complete the auth process, then try to open opencode auth again. It fixed the issue on my instance :D I had the same problem and suddenly it started working.

niba avatar Jun 26 '25 06:06 niba

It works now, thanks

wahaabm avatar Jun 26 '25 06:06 wahaabm

When running 'opencode auth login' and setting github copilot as provider, it asks for an api key instead of opening an oauth session in the browser to verify.

Image

Same problem for me

philippe-granet avatar Jun 27 '25 00:06 philippe-granet

@Mel28vin try to type anything as an API key and complete the auth process, then try to open opencode auth again. It fixed the issue on my instance :D I had the same problem and suddenly it started working.

I tried this @niba but it still doesn't seem to work, I've tried upgrading to v0.1.150 as well via brew.

Mel28vin avatar Jun 27 '25 09:06 Mel28vin

This is definitely still an issue! Me and a colleague tried the GH Copilot auth setup independently on fresh installations and it seems to roll a dice on whether to ask for an API key or start the oauth flow 😅 @thdxr

Benjoyo avatar Jul 11 '25 14:07 Benjoyo