Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to install Github Copilot on code-server?#5063

Answeredbyim-coder-lg
yuchen1204 asked this question inQ&A
Discussion options

Screenshot 2022-04-04 06 30 05

You must be logged in to vote

Firstly, update your code-server instance and then retry. I seem to have noticed that you use Code 1.50.0, not the latest 1.64.*, hence run the install command again and launch code-server.

Replies: 11 comments 35 replies

Comment options

Firstly, update your code-server instance and then retry. I seem to have noticed that you use Code 1.50.0, not the latest 1.64.*, hence run the install command again and launch code-server.

You must be logged in to vote
8 replies
@im-coder-lg
Comment options

Can you share a screenshot or video of the same and which guide you followed?

@gukuhn
Comment options

I tried install a older version of the VSIX file and it worked!

thanks anyways!

@yuchen1204
Comment options

github capilot can't use on code-server
image

@yuchen1204
Comment options

image

@jsjoeio
Comment options

We're working on a VS Code upgrade soon!

Answer selected byjsjoeio
Comment options

Any updates on how to install copilot on code server 4.7.0?

You must be logged in to vote
5 replies
@TheMcSebi
Comment options

Download the vsix file from the marketplace.visualstudio.com and install it on the command palette (Ctrl+Shift+P, "vsix", Enter)

@xKliment
Comment options

I get this error for some reason "Command 'Extensions: Install from VSIX...' resulted in an error"

@ShubhamC1209
Comment options

Same i got the same error- Command 'Extensions: Install from VSIX...' resulted in an error extension/package.json not found inside zip.

@Neo11Neo
Comment options

works if you download the visx from their marketplace:marketplace.visualstudio.com

@Nagico
Comment options

And I need to decompress the vsix file before install, see here:https://stackoverflow.com/questions/66134532/vscode-marketplace-extension-corrupt-zip-end-of-central-directory-record-signa

Comment options

I found this video on YouTube that worked for me:https://www.youtube.com/watch?v=w_-zFFM0N-g. It may help you install Github Copilot on code-server as well.

You must be logged in to vote
0 replies
Comment options

August 2023

I just ran into this problem (Copilot doesn't show up when you search for it in extensions), so here's what worked for me:

  1. Visithttps://marketplace.visualstudio.com/items?itemName=GitHub.copilot
  2. Look for a "Download Extension" link. As of writing it's in the side-bar under the "Resources" header.
  3. You'll get a file called something likeGitHub.copilot-1.100.313.vsix. Drag and drop it anywhere in your filetree in code-server.
  4. Right click on it, and you'll see an option "Install Extension VSIX" - click it.
  5. It'll install, and then after a moment or two you'll see a notification in the bottom-right, prompting you to "Sign in to Github to use Copilot". Click sign in, and follow the prompts.
  6. That's it - test it by typing some code. You should see the grey text auto-complete come up.

Note that before doing the above steps I upgraded to the latest version ofcode-server (VSCode=v1.80.2, code-server=v4.16.1) and restarted the machine.

You must be logged in to vote
10 replies
@ashokkumar14440
Comment options

@josephrocca If I shut down and restart my SageMaker server credentials are not retained, In the latest version even reloading the CodeServer webpage on Sagemaker(F5 Key) loses the git credentials, downgrade helped with the reload issue but not the restart issue.

@mynameisnewinjp
Comment options

Indeed, while GitHub connections are disconnected upon reboot, Copilot can be used without logging into GitHub each time.

The chat feature is not as usable as it is in Codespaces.

@code-asher
Comment options

#5052 should have been fixed in v4.17.1 (see#5072) but if anyone is still seeing issues please do open an issue with steps to reproduce.

@giovp
Comment options

confirming it worked for me with 4.20.1 with Code 1.85.2

@Venkythota1
Comment options

I tried the above approach, when I try to sign in into the GitHub copilot. I get this pop up ofYou have not yet finished authorizing this extension to use GitHub. Would you like to try a different way? (personal access token) Source: GitHub Authentication when i click on yes. it asks to create a personal acess token when I get give the personal token, I am getting this below error in the output window.

auth: Error: No auth flow succeeded.
at a.GitHubServer login (/code-server-4.93.1-linux-amd64/lib/vscode/extensions/github-authentication/dist/extension js 1:228535)
at process TicksAndRejections (node internal/process/task_queues:95:5)
at a.GitHubAuthenticationProvider.createSession (/code-server-4.93.1-linux-amd64/lib/vscode/extensions/github- authentication/dist/extension.js:1:224358)
at c. $createSession (/code-server-4.93.1-linux-amd64/lib/vscode/out/vs/workbench/api/node/out-vscode-reh-
web/vs/workberich/api/node/file:/home/runner/work/code-server/code- server/lib/vscode/src/vs/workbench/api/common/extHostAuthentication.ts:89:11)

I am using the latest github copilot and vs-codeserver (v4.93.1) vs code (1.93.1)

is there any workaround for this issue?

Comment options

I downloaded the vsix chat extension, unzipped it and modified thepackage.json to set the following:

"vscode": "^1.84.0",

rezipped it and did a manual vsix installed, and it now works on latest code server.

You must be logged in to vote
0 replies
Comment options

I installed GitHub Copilot (the latest version v1.168.742) with code-server v4.21.2 (Code 1.86.2).

I wasn't able to get GitHub Copilot Chat working. Not even trying to use@hchaudhary1 method above, changing the json file to have:

"vscode": "^1.86.0".

And after a successful install, this happened:

image

You must be logged in to vote
0 replies
Comment options

Hello everyone, I wanted to offer another solution I just ran across, because I had a similar issue.

I am running code-server 4.22.1 inside Docker (code-server: v4.22.1, Code: 1.87.2, Commit:760d131). I downloaded the extension fromhere, and installed inside code-server (uploaded, right-click to install), but the authentication is always failing.

My solution was to start the sign-in process. After it gives you the 8-character code, copy it somewhere. Then when it prompts you to go to the URL to activate,do not click Open but instead Copy the URL (it should behttps://github.com/login/device anyway). Then open a new tab yourself, paste the 8-character code, Authorize it, then close the tab.

And then it should successfully log in :)

You must be logged in to vote
1 reply
@jamesbiederbeck
Comment options

If you want to automate the extension installation, you can usehttps://marketplace.visualstudio.com/_apis/public/gallery/publishers/GitHub/vsextensions/copilot/<version_id>/vspackage

1.206.0 was the version I found at time of writing.

Comment options

If you are running in the Linuxserver code-server container, add this to your environment
- "EXTENSIONS_GALLERY={"serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery\", "cacheUrl": "https://vscode.blob.core.windows.net/gallery/index\", "itemUrl": "https://marketplace.visualstudio.com/items\"}"

You must be logged in to vote
1 reply
@nijuyonkadesu
Comment options

https://coder.com/docs/code-server/FAQ#why-cant-code-server-use-microsofts-extension-marketplace

your solution conflicts with this FAQ section I believe

Comment options

Hi everyone,
I tried the above approach, when I try to sign in into the GitHub copilot. I get this pop up of You have not yet finished authorizing this extension to use GitHub. Would you like to try a different way? (personal access token) Source: GitHub Authentication when i click on yes. it asks to create a personal acess token when I get give the personal token, I am getting this below error in the output window.

auth: Error: No auth flow succeeded.
at a.GitHubServer login (/code-server-4.93.1-linux-amd64/lib/vscode/extensions/github-authentication/dist/extension js 1:228535)
at process TicksAndRejections (node internal/process/task_queues:95:5)
at a.GitHubAuthenticationProvider.createSession (/code-server-4.93.1-linux-amd64/lib/vscode/extensions/github- authentication/dist/extension.js:1:224358)
at c. $createSession (/code-server-4.93.1-linux-amd64/lib/vscode/out/vs/workbench/api/node/out-vscode-reh-
web/vs/workberich/api/node/file:/home/runner/work/code-server/code- server/lib/vscode/src/vs/workbench/api/common/extHostAuthentication.ts:89:11)

I am using the latest github copilot and vs-codeserver (v4.93.1) vs code (1.93.1)

is there any workaround for this issue?

You must be logged in to vote
0 replies
Comment options

Grab latest copilot VSIX package automatically:

#!/bin/bashVERSION=$(curl -s 'https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery' \  -H 'accept: application/json;api-version=7.2-preview.1;excludeUrls=true' \  --json '{"filters":[{"criteria":[{"filterType":7,"value":"github.copilot"}]}],"flags":2151}' | jq -r '.results[0].extensions[0].versions[0].version')echo "[i] Version ${VERSION}"curl \        -o "copilot-${VERSION}.vsix" \        --compressed \        "https://marketplace.visualstudio.com/_apis/public/gallery/publishers/GitHub/vsextensions/copilot/${VERSION}/vspackage"
You must be logged in to vote
0 replies
Comment options

image
Unable to install extension 'github.copilot-chat' as it is not compatible with VS Code '1.100.2'.

Using code-server: v4.100.2
version: 1.100.2
commit:9dd999b
data: 2025-05-15T19:04:25.944Z (15 h ago)

InstallingGitHub.copilot-chat-0.28.2025051601.vsix

You must be logged in to vote
10 replies
@Kahdeg-15520487
Comment options

i managed to install version 0.27.2025050603, how do i open the chat windows

@Kahdeg-15520487
Comment options

i found the hotkey to toggle the chat windows, but got hit with this
image

@rasheed-fabrichq
Comment options

Same here. used version 0.27.2025050603 and getting the above options. Is it because the version 0.27.2025050603 is not there in the versions listed inhere?

@Kahdeg-15520487 , Please let me know if you find any solution for this

@webleedev
Comment options

Thanks for highlighting this@Kahdeg-15520487 . I think my chat panel somehow cached an old view which led me to believe it was working. I've updated my previous comment

@rasheed-fabrichq
Comment options

Hi@webleedev , I was able to install github-copilot-chat version 0.26.2025040204. However, it doesn’t seem to be interactive — I’m unable to chat with it, and there’s no response when I try. Is it working as expected for you on your end?
Sharing a screenshot below for reference.

Screenshot from 2025-06-18 19-02-56

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
32 participants
@yuchen1204@jamesbiederbeck@josephrocca@ksylvan@TheMcSebi@bravedave@jsjoeio@robvanoostenrijk@hchaudhary1@Kahdeg-15520487@eliluong@jamesy0ung@Nagico@giovp@Alababdiy@v0lkv@code-asher@Venkythota1@xKliment@webleedev@gukuhnand others

[8]ページ先頭

©2009-2025 Movatter.jp