Skip to content

Unable to install OpenCode on windows with winget command #56297

Closed

Description

@samuelololol

Description

Unable to install OpenCode on windows with winget command

I follow the instruction described in Changelog:
https://github.com/anomalyco/opencode/blob/dev/CHANGELOG.md#highlights-3

Powershell

$ winget install --id Anomaly.OpenCode -e
No package found matching input criteria.

The root cause: microsoft/winget-pkgs#454414

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. opencode-agent commented on Oct 17, 2026

    @opencode-agent
    Contributor

    Thanks for the report, @samuelololol. I can confirm this. Neither Anomaly.OpenCode nor Anomaly.OpenCode.Desktop is in the WinGet community repository (microsoft/winget-pkgs) yet, so winget install --id Anomaly.OpenCode -e can only return No package found matching input criteria.

    What I checked (the script below runs the same check without Windows):

    Related:

    Until the packages are available, please use one of the other V2 install methods from the docs.

    Reproduction script (check-winget.sh)
    #!/usr/bin/env bash
    # Checks whether the WinGet packages advertised in OpenCode's CHANGELOG exist in
    # the WinGet community source (microsoft/winget-pkgs). `winget install` can only
    # find packages whose manifests are merged there.
    set -u
    api=https://api.github.com/repos/microsoft/winget-pkgs
    for id in Anomaly/OpenCode Anomaly/OpenCode/Desktop; do
      code=$(curl -s -o /dev/null -w '%{http_code}' "$api/contents/manifests/a/$id")
      echo "manifests/a/$id -> HTTP $code (404 = not in the WinGet index)"
    done
    echo "control: manifests/m/Microsoft/PowerToys -> HTTP $(curl -s -o /dev/null -w '%{http_code}' "$api/contents/manifests/m/Microsoft/PowerToys")"
    echo "Submissions to winget-pkgs:"
    curl -s "https://api.github.com/search/issues?q=repo:microsoft/winget-pkgs+Anomaly.OpenCode+is:pr" |
      python3 -c "import json,sys;[print(' #%s %s merged=%s %s'%(i['number'],i['state'],i['pull_request'].get('merged_at'),i['title'])) for i in json.load(sys.stdin)['items']]"

    Run it: bash check-winget.sh

  2. GF-Huang commented on Oct 22, 2026

    @GF-Huang

    Up, we need installing opencode v2 by winget.

  3. MagFlux commented on Nov 7, 2026

    @MagFlux

    @samuelololol FYI it can be downloaded from winget but its under SST.opencode. That being said it's way behind the Linux variant it always seems. Still on 1.19.5 at the moment.

  4. rekram1-node commented on Nov 13, 2026

    @rekram1-node
    Collaborator

    This works now. Anomaly.OpenCode is published in winget-pkgs (https://github.com/microsoft/winget-pkgs/tree/master/manifests/a/Anomaly/OpenCode), so winget install --id Anomaly.OpenCode -e installs V2. If winget still says no package found, run winget source update first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions