Unpacking Software Livestream

Join our monthly Unpacking Software livestream to hear about the latest news, chat and opinion on packaging, software deployment and lifecycle management!

Learn More

Chocolatey Product Spotlight

Join the Chocolatey Team on our regular monthly stream where we put a spotlight on the most recent Chocolatey product releases. You'll have a chance to have your questions answered in a live Ask Me Anything format.

Learn More

Chocolatey Coding Livestream

Join us for the Chocolatey Coding Livestream, where members of our team dive into the heart of open source development by coding live on various Chocolatey projects. Tune in to witness real-time coding, ask questions, and gain insights into the world of package management. Don't miss this opportunity to engage with our team and contribute to the future of Chocolatey!

Learn More

Calling All Chocolatiers! Whipping Up Windows Automation with Chocolatey Central Management

Webinar from
Wednesday, 17 January 2024

We are delighted to announce the release of Chocolatey Central Management v0.12.0, featuring seamless Deployment Plan creation, time-saving duplications, insightful Group Details, an upgraded Dashboard, bug fixes, user interface polishing, and refined documentation. As an added bonus we'll have members of our Solutions Engineering team on-hand to dive into some interesting ways you can leverage the new features available!

Watch On-Demand
Chocolatey Community Coffee Break

Join the Chocolatey Team as we discuss all things Community, what we do, how you can get involved and answer your Chocolatey questions.

Watch The Replays
Chocolatey and Intune Overview

Webinar Replay from
Wednesday, 30 March 2022

At Chocolatey Software we strive for simple, and teaching others. Let us teach you just how simple it could be to keep your 3rd party applications updated across your devices, all with Intune!

Watch On-Demand
Chocolatey For Business. In Azure. In One Click.

Livestream from
Thursday, 9 June 2022

Join James and Josh to show you how you can get the Chocolatey For Business recommended infrastructure and workflow, created, in Azure, in around 20 minutes.

Watch On-Demand
The Future of Chocolatey CLI

Livestream from
Thursday, 04 August 2022

Join Paul and Gary to hear more about the plans for the Chocolatey CLI in the not so distant future. We'll talk about some cool new features, long term asks from Customers and Community and how you can get involved!

Watch On-Demand
Hacktoberfest Tuesdays 2022

Livestreams from
October 2022

For Hacktoberfest, Chocolatey ran a livestream every Tuesday! Re-watch Cory, James, Gary, and Rain as they share knowledge on how to contribute to open-source projects such as Chocolatey CLI.

Watch On-Demand

Downloads:

4

Downloads of v 0.3.17:

4

Last Update:

18 Jul 2025

Published Date:

18 Jul 2025

Package Maintainer(s):

Software Author(s):

  • SST

Tags:

OpenCode

(Maintainer responded, waiting for review/Maintainer update)

  • 1
  • 2
  • 3

0.3.17 | Updated: 18 Jul 2025

Downloads:

4

Downloads of v 0.3.17:

4

Published:

18 Jul 2025

Maintainer(s):

Software Author(s):

  • SST

OpenCode 0.3.17

(Maintainer responded, waiting for review/Maintainer update)

Legal Disclaimer: Neither this package nor Chocolatey Software, Inc. are affiliated with or endorsed by SST. The inclusion of SST trademark(s), if any, upon this webpage is solely to identify SST goods or services and not for commercial purposes.

  • 1
  • 2
  • 3

Some Checks Have Failed or Are Not Yet Complete

Not All Tests Have Passed


Validation Testing Passed


Verification Testing Passed

Details

Scan Testing Resulted in Flagged as a Note:

At least one file within this package has greater than 0 detections, but less than 5

Details
IMPORTANT

This version is in moderation and has not yet been approved. This means it doesn't show up under normal search.

  • Until approved, you should consider this package version unsafe - it could do very bad things to your system (it probably doesn't but you have been warned, that's why we have moderation).
  • This package version can change wildly over the course of moderation until it is approved. If you install it and it later has changes to this version, you will be out of sync with any changes that have been made to the package. Until approved, you should consider that this package version doesn't even exist.
  • You cannot install this package under normal scenarios. See How to install package version under moderation for more information.
  • There are also no guarantees that it will be approved.
WARNING

There are versions of this package awaiting moderation (possibly just this one). See the Version History section below.

itsrainingmani (maintainer) on 18 Jul 2025 06:45:47 +00:00:

User 'itsrainingmani' (maintainer) submitted package.

itsrainingmani (maintainer) on 18 Jul 2025 06:56:37 +00:00:

Unfortunately I made some minor errors in the nuspec file when submitting this package for review. I've fixed these errors and bumped the version to 0.3.18 locally.
Let me know if I can update the package.

itsrainingmani (maintainer) on 18 Jul 2025 07:11:27 +00:00:

Unfortunately I made some minor errors in the nuspec file when submitting this package for review. I've fixed these errors and bumped the version to 0.3.18 locally.
Let me know if I can update the package.

chocolatey-ops (reviewer) on 18 Jul 2025 07:20:51 +00:00:

opencode has passed automated validation. It may have or may still fail other checks like testing (verification).
NOTE: No required changes that the validator checks have been flagged! It is appreciated if you fix other items, but only Requirements will hold up a package version from approval. A human review could still turn up issues a computer may not easily find.

Guidelines

Guidelines are strong suggestions that improve the quality of a package version. These are considered something to fix for next time to increase the quality of the package. Over time Guidelines can become Requirements. A package version can be approved without addressing Guideline comments but will reduce the quality of the package.

  • The package script downloads a file outside of using built-in helpers. Scripts should use the built-in helpers to download files. More...
Notes

Notes typically flag things for both you and the reviewer to go over. Sometimes this is the use of things that may or may not be necessary given the constraints of what you are trying to do and/or are harder for automation to flag for other reasons. Items found in Notes might be Requirements depending on the context. A package version can be approved without addressing Note comments.

  • The PackageSourceUrl element in the nuspec file should be a valid Url. The reviewer will ensure the specified Url is valid. More...
  • The LicenseUrl element in the nuspec file should be a valid Url. The reviewer will ensure the specified Url is valid. More...
  • The IconUrl element in the nuspec file should be a valid Url. The reviewer will ensure the specified Url is valid. More...

chocolatey-ops (reviewer) on 18 Jul 2025 08:03:17 +00:00:

opencode has passed automated package testing (verification). The next step in the process is package scanning.
Please visit https://gist.github.com/choco-bot/3d5632a848f7ceb8f8247dad8f1839d7 for details.
This is an FYI only. There is no action you need to take.

chocolatey-ops (reviewer) on 18 Jul 2025 08:24:03 +00:00:

opencode has been flagged as part of automated virus scanning.
Package virus scanning found that at least 1 file within, or downloaded by, the package has between 1 and 5 VirusTotal detections associated with it.
This is not enough detections to prevent the approval of this package version.

Description

OpenCode

OpenCode is an AI coding agent built for the terminal. It provides a native TUI (Terminal User Interface) for interacting with various AI models to help with coding tasks, debugging, and more.

Features

  • Native TUI: A responsive, native, themeable terminal UI
  • LSP enabled: Automatically loads the right LSPs for the LLM
  • Multi-session: Start multiple agents in parallel on the same project
  • Shareable links: Share a link to any sessions for reference or to debug
  • Claude Pro: Log in with Anthropic to use your Claude Pro or Max account
  • Use any model: Supports 75+ LLM providers through Models.dev, including local models

Installation

After installing via Chocolatey, you can start using OpenCode by running:

opencode

Or configure authentication:

opencode auth login

For more information, visit the official documentation.


tools\chocolateyinstall.ps1
$ErrorActionPreference = 'Stop'

$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$packageName = 'opencode'
$version = $env:chocolateyPackageVersion

# Construct the download URL based on the package version
$url64 = "https://github.com/sst/opencode/releases/download/v$version/opencode-windows-x64.zip"

Write-Host "Installing OpenCode version $version"

$packageArgs = @{
  packageName    = $packageName
  unzipLocation  = $toolsDir
  url64bit       = $url64
  checksum64     = 'B9E64582668690E0144D03DA8BC2CABA5613F4A6BBEF4FCDACE1CF2F482E1137'  # This should be updated by the update script
  checksumType64 = 'sha256'
}

try {
  # Check if the URL exists before attempting download
  try {
    Invoke-WebRequest -Uri $url64 -Method Head -UseBasicParsing
  }
  catch {
    throw "OpenCode version $version not found at $url64. Please check if this version exists on GitHub."
  }

  # Install the package
  Install-ChocolateyZipPackage @packageArgs
    
  # The zip should contain the opencode.exe at the root
  $exePath = Join-Path $toolsDir 'opencode.exe'
    
  if (-not (Test-Path $exePath)) {
    # Check if it's in a subdirectory
    $exeFiles = Get-ChildItem -Path $toolsDir -Filter 'opencode.exe' -Recurse
    if ($exeFiles.Count -gt 0) {
      $sourceExe = $exeFiles[0].FullName
      Move-Item -Path $sourceExe -Destination $exePath -Force
            
      # Clean up empty directories
      $parentDir = Split-Path -Parent $sourceExe
      if ((Get-ChildItem -Path $parentDir -Force).Count -eq 0) {
        Remove-Item -Path $parentDir -Recurse -Force
      }
    }
    else {
      throw "opencode.exe not found in the extracted files"
    }
  }
    
  # Create shim
  Install-BinFile -Name 'opencode' -Path $exePath
    
  Write-Host "OpenCode $version has been installed successfully!" -ForegroundColor Green
  Write-Host "Run 'opencode' to start using it." -ForegroundColor Green
    
}
catch {
  throw "Failed to install OpenCode: $_"
}
tools\chocolateyuninstall.ps1
$ErrorActionPreference = 'Stop'

$packageName = 'opencode'
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"

# Remove shim
Uninstall-BinFile -Name $packageName

# Remove the executable
$exePath = Join-Path $toolsDir 'opencode.exe'
if (Test-Path $exePath) {
  Remove-Item -Path $exePath -Force
}

Write-Host "OpenCode has been uninstalled." -ForegroundColor Green
tools\LICENSE.txt
From: https://github.com/sst/opencode/blob/main/LICENSE

MIT License

Copyright (c) 2025 SST

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
tools\VERIFICATION.txt
VERIFICATION

Verification is intended to assist the Chocolatey moderators and community
in verifying that this package's contents are trustworthy.

Package can be verified like this:

1. Go to https://github.com/sst/opencode/releases/tag/v0.3.17
   (or the version specified in the nuspec file)

2. Download the Windows x64 ZIP file:
   https://github.com/sst/opencode/releases/download/v0.3.17/opencode-windows-x64.zip

3. You can use one of the following methods to obtain the SHA256 checksum:
   - Use PowerShell function 'Get-FileHash'
   - Use Chocolatey utility 'checksum.exe'

   checksum type: sha256
   checksum64: B9E64582668690E0144D03DA8BC2CABA5613F4A6BBEF4FCDACE1CF2F482E1137

The file is downloaded from the official GitHub releases page for the specific
version indicated in this package.

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Add to Builder Version Downloads Last Updated Status
OpenCode 0.3.17 4 Friday, July 18, 2025
Responded

This package has no dependencies.

Discussion for the OpenCode Package

Ground Rules:

  • This discussion is only about OpenCode and the OpenCode package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or OpenCode, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus