Automic VaultAutomic Vault

brew

使用 Homebrew, chocolatey, MacPorts, Nix, pacman, scoop, winget 安装 opencode

查看 opencode 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

代理安全

代理安全回答

opencode is an agent-facing coding tool that can read files and invoke local developer workflows.

凭据访问

May access repository files, tool configs, and environment variables available to the agent session.

远程变更

Can trigger local tools that mutate Git, cloud, or package state.

发布/制品风险

Can generate code or commands that become release artifacts.

推荐控制

Run under containment and gate sensitive tool actions.

代理使用指南

Use with scanned worktrees; require approval before commands that expose credentials or mutate remote systems.

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install opencode

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install opencode

MacPorts ports tree · llm/opencode/Portfile · 来源: api.github.com

Linux

Nix已验证 · 92%
nix profile install nixpkgs#opencode

nixpkgs package indexes · pkgs/by-name/op/opencode/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S opencode

Arch Linux sync databases · opencode · 来源: geo.mirror.pkgbuild.com

Windows

Chocolatey已验证 · 92%
choco install opencode

Chocolatey community package catalog · opencode · 来源: community.chocolatey.org

Scoop已验证 · 92%
scoop install main/opencode

Scoop official bucket manifest trees · bucket/opencode.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id SST.OpenCodeDesktop -e

Windows Package Manager source index · SST.OpenCodeDesktop · 来源: cdn.winget.microsoft.com

概览

软件包摘要

AI coding agent, built for the terminal

命令和别名

  • opencode

历史

项目历史与用法

OpenCode is an open-source AI coding agent distributed for terminal, IDE, and desktop workflows. The project positions the CLI as a coding assistant with a native terminal interface, LSP awareness, multi-session work, session sharing, and support for many model providers.

项目历史

The official documentation and repository present OpenCode as a rapidly distributed developer tool rather than a project with a deeply documented pre-release history. Its packaging moved across the JavaScript ecosystem, Homebrew, Arch, Windows package managers, Nix, and a beta desktop app, which reflects the AI-coding-agent pattern of shipping a local CLI plus integrations rather than only a hosted service.

The repository installation notes distinguish the project-maintained Homebrew tap from the Homebrew core formula, saying the tap is recommended for faster updates while `brew install opencode` is maintained by Homebrew and updated less frequently. That distinction matters because the package in this batch is the Homebrew formula rather than the upstream tap.

采用历史

OpenCode's own site makes large adoption claims, including GitHub stars, contributors, commits, and monthly developer usage. Those are project-published metrics rather than independent measurements, but they show how the project presents itself: as a mainstream open-source alternative in the coding-agent ecosystem.

使用方式

Developers use `opencode` as an interactive agent for repository work: asking questions, requesting features, making code changes, undoing changes, and running parallel sessions. The docs list API keys as a prerequisite and describe use from a modern terminal emulator, with desktop and IDE forms for users who do not want only a TUI.

为什么软件包爱好者会关心

OpenCode is package-nerdy because it is a CLI front end over a fast-moving agent stack: releases must coordinate model-provider auth, terminal UI behavior, editor integration, desktop artifacts, and package managers that update at different speeds. Its Homebrew formula is part of a broader install matrix rather than the single canonical upstream channel.

安全态势

尚未找到受保护工具覆盖

没有找到 opencode 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 2 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Credential files

Credential-bearing paths to review before unattended agent runs.

macOS
~/Library/Application Support/opencode/auth.json~/Library/Application Support/opencode/account.json
Unix
$XDG_DATA_HOME/opencode/auth.json$XDG_DATA_HOME/opencode/account.json~/.local/share/opencode/auth.json~/.local/share/opencode/account.json

可执行文件

已安装的可执行文件

命令类型暴露范围备注
opencodecli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本1.17.15
管理器更新时间2026-07-08
本地数据OK
上游not checked
检测到的最新版本未检测到

https://opencode.ai

  • 信息Release/tag comparison is only available for GitHub repositories.https://opencode.ainone 置信度

安装元数据

软件包元数据

软件包键brew:opencode
版本1.17.15
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/opencode
主页https://opencode.ai
仓库https://github.com/anomalyco/opencode
上游文档https://opencode.ai/docs
许可证MIT
源码归档https://registry.npmjs.org/opencode-ai/-/opencode-ai-1.17.15.tgz
最后更新2026-07-08T16:55:07Z
Pulseupdated
依赖node, ripgrep
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameopencode
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

opencode

nix profile install nixpkgs#opencode
  • normalized package name match
  • 匹配方式:Opencode
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/op/opencode/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
pacman95%

opencode 1.17.3-1

The open source coding agent

https://github.com/anomalyco/opencode

sudo pacman -S opencode
  • License: MIT
  • Architecture: x86_64
  • 5 依赖
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Opencode
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: opencode from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

opencode

sudo port install opencode
  • normalized package name match
  • 匹配方式:Opencode
MacPorts ports tree · api.github.com · MacPorts ports tree: llm/opencode/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Chocolatey95%

opencode

choco install opencode
  • normalized package name match
  • 匹配方式:Opencode
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: opencode from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','office365homepremium'
Scoop95%

main/opencode

scoop install main/opencode
  • normalized package name match
  • 匹配方式:Opencode
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/opencode.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

SST.OpenCodeDesktop

winget install --id SST.OpenCodeDesktop -e
  • normalized package name match
  • 匹配方式:Opencode
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: SST.OpenCodeDesktop from https://cdn.winget.microsoft.com/cache/source.msix
winget95%

SST.opencode

winget install --id SST.opencode -e
  • normalized package name match
  • 匹配方式:Opencode
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: SST.opencode from https://cdn.winget.microsoft.com/cache/source.msix

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated agent safety answer
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment