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

Appearance settings
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: 15 comments · 45 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 by jsjoeio
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. Visit https://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 like GitHub.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 of code-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 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?

Comment options

I downloaded the vsix chat extension, unzipped it and modified the package.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 from here, 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 be https://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 use https://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/bash

VERSION=$(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)

Installing GitHub.copilot-chat-0.28.2025051601.vsix

You must be logged in to vote
13 replies
@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

@arttkach
Comment options

Installed copilot with:

  • curl -o "copilot-chat-0.26.2025040204.vsix" --compressed "https://marketplace.visualstudio.com/_apis/public/gallery/publishers/GitHub/vsextensions/copilot-chat/0.26.2025040204/vspackage"
  • code-server --install-extension copilot-chat-0.26.2025040204.vsix

code-server: 4.102.2
version: 1.102.2

Chat doesn't work. Switching to the release version doesn't work either:

image
@Chris-LewisI
Comment options

I just tried your same installation method and I don't get the popup that asks me to sign in.

@arttkach
Comment options

IIRC the sign in happened for me when I installed GitHub copilot in addition to chat.

Comment options

Has anyone managed to install both GitHub Copilot extensions on the latest code-server version 4.1.03.2?

You must be logged in to vote
0 replies
Comment options

This works for me:

mkdir -p /tmp/extensions && \
curl -L "https://marketplace.visualstudio.com/_apis/public/gallery/publishers/GitHub/vsextensions/copilot/latest/vspackage" \
-o /tmp/extensions/github-copilot.vsix && \
gunzip -c /tmp/extensions/github-copilot.vsix > /tmp/extensions/github-copilot-decompressed.vsix && \
/usr/local/bin/code-server --install-extension /tmp/extensions/github-copilot-decompressed.vsix && \
rm -rf /tmp/extensions
You must be logged in to vote
0 replies
Comment options

I created this https://github.com/sunpix/howto-install-copilot-in-code-server

installs latest compatible:

  • copilot
  • copilot-chat
You must be logged in to vote
6 replies
@lennardv2
Comment options

In the meantime i've gone the route of using the official vscode, with the --serve-web option. This way it's always up to date with an official marketplace, and copilot is just installable from there.

See for example:
https://github.com/nerasse/my-code-server

One disadvantage i noticed: there doesnt seem to be a way activate the portforwarding with the --serve-web version

@lennardv2
Comment options

Maybe it's because I am using code-server delivered by Home Assistant, which is slightly outdated (1.99.3).

Yes that's probably it

@goodmanvn2003
Comment options

Thanks @johny-mnemonic
I put the script for y'all convenience

# Extract VS Code version from code-server
get_vscode_version() {
    code-server --version 2>/dev/null | head -n 1
}

# Get user-data-dir from running code-server process
get_user_data_dir() {
    # Use ps with POSIX-compliant options
    local process_info
    if command -v ps >/dev/null 2>&1; then
        # Try BSD-style first (macOS), fallback to POSIX
        process_info=$(ps aux 2>/dev/null | grep -v grep | grep "code-server" | head -n 1) ||
        process_info=$(ps -ef 2>/dev/null | grep -v grep | grep "code-server" | head -n 1)
    fi

    if [ -n "$process_info" ]; then
        echo "$process_info" | grep -o -- '--user-data-dir=[^ ]*' | sed 's/--user-data-dir=//'
    fi
}

# Find compatible extension version
find_compatible_version() {
    local extension_id="$1"
    local vscode_version="$2"

    local response
    response=$(curl -s -X POST "https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery" \
        -H "Content-Type: application/json" \
        -H "Accept: application/json;api-version=3.0-preview.1" \
        -d "{
            \"filters\": [{
                \"criteria\": [
                    {\"filterType\": 7, \"value\": \"$extension_id\"},
                    {\"filterType\": 12, \"value\": \"4096\"}
                ],
                \"pageSize\": 50
            }],
            \"flags\": 4112
        }")

    echo "$response" | jq -r --arg vscode_version "$vscode_version" '
        .results[0].extensions[0].versions[] |
        select(.version | test("^[0-9]+\\.[0-9]+\\.[0-9]*$")) |
        select(.version | length < 8) |
        {
            version: .version,
            engine: (.properties[] | select(.key == "Microsoft.VisualStudio.Code.Engine") | .value)
        } |
        select(.engine | ltrimstr("^") | split(".") |
            map(split("-")[0] | tonumber?) as $engine_parts |
            ($vscode_version | split(".") | map(tonumber)) as $vscode_parts |
            (
                ($engine_parts[0] // 0) < $vscode_parts[0] or
                (($engine_parts[0] // 0) == $vscode_parts[0] and ($engine_parts[1] // 0) < $vscode_parts[1]) or
                (($engine_parts[0] // 0) == $vscode_parts[0] and ($engine_parts[1] // 0) == $vscode_parts[1] and ($engine_parts[2] // 0) <= $vscode_parts[2])
            )
        ) |
        .version' | head -n 1
}

# Install extension
install_extension() {
    local extension_id="$1"
    local version="$2"
    local user_data_dir="$3"
    local extension_name
    extension_name=$(echo "$extension_id" | cut -d'.' -f2)
    local temp_dir="/tmp/code-extensions"

    echo "Installing $extension_id v$version..."

    # Create temp directory
    mkdir -p "$temp_dir"

    # Download
    echo "  Downloading..."
    # Use curl with portable options (--progress-bar not available everywhere)
    curl -L "https://marketplace.visualstudio.com/_apis/public/gallery/publishers/GitHub/vsextensions/$extension_name/$version/vspackage" \
        -o "$temp_dir/$extension_name.vsix.gz"

    if [ ! -f "$temp_dir/$extension_name.vsix.gz" ]; then
        echo "  ✗ Download failed for $extension_id"
        return 1
    fi

    # Decompress (handle both gunzip and gzip -d)
    if command -v gunzip >/dev/null 2>&1; then
        gunzip -f "$temp_dir/$extension_name.vsix.gz"
    else
        gzip -df "$temp_dir/$extension_name.vsix.gz"
    fi

    # Install with user-data-dir if provided
    if [ -n "$user_data_dir" ]; then
        code-server --user-data-dir="$user_data_dir" --force --install-extension "$temp_dir/$extension_name.vsix"
    else
        code-server --force --install-extension "$temp_dir/$extension_name.vsix"
    fi

    # Clean up
    rm -f "$temp_dir/$extension_name.vsix"

    echo "$extension_id installed successfully!"
    return 0
}

# Check for required dependencies
check_dependencies() {
    local missing_deps=()

    # Check for required commands
    for cmd in curl jq code-server; do
        if ! command -v "$cmd" >/dev/null 2>&1; then
            missing_deps+=("$cmd")
        fi
    done

    # Check for either gunzip or gzip
    if ! command -v gunzip >/dev/null 2>&1 && ! command -v gzip >/dev/null 2>&1; then
        missing_deps+=("gunzip/gzip")
    fi

    if [ "${#missing_deps[@]}" -gt 0 ]; then
        echo "Error: Missing required dependencies: ${missing_deps[*]}"
        echo "Please install the missing dependencies and try again."
        exit 1
    fi
}

# Main script
echo "GitHub Copilot Extensions Installer"
echo "===================================="
echo ""

# Check dependencies
check_dependencies

# Get VS Code version
VSCODE_VERSION="$(get_vscode_version)"

if [ -z "$VSCODE_VERSION" ]; then
    echo "Error: Could not extract VS Code version from code-server"
    exit 1
fi

echo "Detected VS Code version: $VSCODE_VERSION"

# Check for user-data-dir in running code-server
USER_DATA_DIR="$(get_user_data_dir)"
if [ -n "$USER_DATA_DIR" ]; then
    echo "Detected user-data-dir: $USER_DATA_DIR"
fi
echo ""

# Extensions to install
# Use portable array declaration
EXTENSIONS="GitHub.copilot GitHub.copilot-chat"
FAILED=0

# Iterate through space-separated list for portability
for ext in $EXTENSIONS; do
    echo "Processing $ext..."

    # Find compatible version
    version="$(find_compatible_version "$ext" "$VSCODE_VERSION")"

    if [ -z "$version" ]; then
        echo "  ✗ No compatible version found for $ext"
        FAILED="$((FAILED + 1))"
    else
        echo "  Found compatible version: $version"
        if ! install_extension "$ext" "$version" "$USER_DATA_DIR"; then
            FAILED="$((FAILED + 1))"
        fi
    fi
    echo ""
done

# Summary
echo "===================================="
if [ $FAILED -eq 0 ]; then
    echo "✓ All extensions installed successfully!"
    # Clean up temp directory on success
    rm -rf /tmp/code-extensions
else
    echo "⚠ Completed with $FAILED error(s)"
    exit 1
fi
@Catmas06
Comment options

very thanks, works for me

@svefro
Comment options

I created this https://github.com/sunpix/howto-install-copilot-in-code-server

installs latest compatible:

  • copilot
  • copilot-chat

Thank You ! 😀

Comment options

The only thing that doesn't work for me is the absence of the GitHub status icon in the lower status bar, which normally displays the remaining free usage and other informations.

You must be logged in to vote
1 reply
@chris-demattio-keysight
Comment options

I see something similar. I don't see the Copilot icon next to the command palette. Everything else seems to be working, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
Morty Proxy This is a proxified and sanitized view of the page, visit original site.