# Add GitHub token environment variable support for Copilot \(\#31392\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/1fe10117b70297dfda104c73a9847950eb3b476a)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 1fe10117b70297dfda104c73a9847950eb3b476a

Requested commit: 1fe10117b70297dfda104c73a9847950eb3b476a

Commit: 1fe10117b70297dfda104c73a9847950eb3b476a

Tree: 996672e5c467decb5474fcc02110f6d89690c0ec

Author: Clauses Kim

Committer: GitHub

## Message

```
Add GitHub token environment variable support for Copilot (#31392)

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

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.

Release Notes:

- Added support for manually providing an OAuth token for GitHub Copilot
Chat by assigning the GH_COPILOT_TOKEN environment variable

---------

Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
```

## Parents

- [78fd2685d51be66aa64b657d0ab9d36b287e17fd](https://git.cafe/gitcafe/zed/commit/78fd2685d51be66aa64b657d0ab9d36b287e17fd?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/1fe10117b70297dfda104c73a9847950eb3b476a?format=markdown)
