eca icon indicating copy to clipboard operation
eca copied to clipboard

Using PAT for github copilot company

Open snoopier opened this issue 9 months ago • 5 comments

To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.

It is possible to use a long term github copilot PAT as apikey (github_pat_xyz123) via env variable ?

thx

snoopier avatar Feb 23 '26 07:02 snoopier

@snoopier AFAIK it's not possible to reach copilot models using only PAT, but if possible somehow it should be possible with ECA

ericdallo avatar Feb 23 '26 12:02 ericdallo

Background why i tried to use a PAT. Because i get every 24h

Error on copilot login: { "message": "Bad credentials", "documentation_url": "https://docs.github.com/rest", "status": "401" } Error: Auth token renew failed Check ECA stderr for more details.

Then i 've to /login again thats anoying

snoopier avatar Feb 24 '26 09:02 snoopier

@snoopier the renew token should work if not we should fix, can you help debug why is renewing not working for you? What you see in stderr logs eca-show-stderr?

ericdallo avatar Feb 24 '26 15:02 ericdallo

yes of course, i've to wait for tomorrow and then i check the stderr

snoopier avatar Feb 24 '26 15:02 snoopier

i'm back tested with latest sources two days and can't reproduce. Renewing is working fine so no need for PAT.

closing

snoopier avatar Feb 27 '26 08:02 snoopier