zed icon indicating copy to clipboard operation
zed copied to clipboard

Add GitHub token environment variable support for Copilot

Open clauses3 opened this issue 7 months ago • 1 comments

Add support for environment variables as authentication alternatives to OAuth flow for Copilot. Closes #31172

Release Notes:

  • Added support for GH_COPILOT_TOKEN environment variable Copilot authentication
  • OAuth flow remains unchanged when no token is provided

We can include the token in HTTPS request headers to hopefully resolve the rate limiting issue in #9483. This change will be part of a separate PR.

clauses3 avatar May 25 '25 18:05 clauses3

Removed added settings and UI matching other API keys. This change will be split off into a separate PR.

clauses3 avatar May 27 '25 11:05 clauses3

Thanks @clauses3! I changed the code to make it work with recent changes. Could you verify that it still works as expected on your end?

bennetbo avatar Jun 09 '25 10:06 bennetbo

Thanks for the changes @bennetbo. Tested and working on linux with the env var set.

clauses3 avatar Jun 09 '25 10:06 clauses3