凭据访问
May access repository files, tool configs, and environment variables available to the agent session.
代理安全
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.
安装
brew install opencodelocal Homebrew formula metadata
sudo port install opencodeMacPorts ports tree · llm/opencode/Portfile · 来源: api.github.com
nix profile install nixpkgs#opencodenixpkgs package indexes · pkgs/by-name/op/opencode/package.nix · 来源: api.github.com
sudo pacman -S opencodeArch Linux sync databases · opencode · 来源: geo.mirror.pkgbuild.com
choco install opencodeChocolatey community package catalog · opencode · 来源: community.chocolatey.org
scoop install main/opencodeScoop official bucket manifest trees · bucket/opencode.json · 来源: api.github.com
winget install --id SST.OpenCodeDesktop -eWindows Package Manager source index · SST.OpenCodeDesktop · 来源: cdn.winget.microsoft.com
概览
AI coding agent, built for the terminal
历史
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。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
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-bearing paths to review before unattended agent runs.
~/Library/Application Support/opencode/auth.json~/Library/Application Support/opencode/account.json$XDG_DATA_HOME/opencode/auth.json$XDG_DATA_HOME/opencode/account.json~/.local/share/opencode/auth.json~/.local/share/opencode/account.json可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
opencode | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | 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 |
| Pulse | updated |
| 依赖 | node, ripgrep |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | opencode |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
opencode
nix profile install nixpkgs#opencodeopencode 1.17.3-1
The open source coding agent
https://github.com/anomalyco/opencode
sudo pacman -S opencodeopencode
sudo port install opencodeopencode
choco install opencodemain/opencode
scoop install main/opencodeSST.OpenCodeDesktop
winget install --id SST.OpenCodeDesktop -eSST.opencode
winget install --id SST.opencode -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.