opencode
Open-source AI coding agent built for the terminal.
- Star 数
- 213.6K
- Fork 数
- 28.7K
- 未关闭 Issue
- 4.3K
- 最近提交
- 2026-10-15
数据来自 GitHub API · 更新于 2026-10-15
opencode 是什么?
opencode is a terminal-based coding agent with a rich TUI, support for many model providers, LSP integration and a client/server design that also powers desktop and IDE clients.
主要功能
- Terminal UI
- Any model provider
- LSP-aware edits
- Shareable sessions
系统要求
- 平台
- macOS · Linux · Windows
如何安装 opencode
根据项目 README 整理。开源项目更新很快,请以 GitHub 页面上的最新说明为准。
Install script / npm
- 1Install with the script or npm.
curl -fsSL https://opencode.ai/install | bash # or npm i -g opencode-ai - 2Start it in your project.
opencode
优势
- Polished TUI
- Provider-agnostic
不足
- Young project; changes quickly
opencode 替代品对比
| 软件 | Star 数 | 许可证 | 平台 | 显存 |
|---|---|---|---|---|
| opencode Open-source AI coding agent built for the terminal. | 213.6K | MIT | — | |
| Aider AI pair programming in your terminal, with automatic git commits. | 49.6K | Apache-2.0 | — | |
| Codex CLI OpenAI’s lightweight coding agent for your terminal. | 129.3K | Apache-2.0 | — | |
| Gemini CLI Google’s open-source AI agent for the terminal. | 107.4K | Apache-2.0 | — | |
| Continue Open-source AI code assistant for VS Code and JetBrains. | 36.2K | Apache-2.0 | — | |
| Cline Autonomous coding agent inside VS Code that asks before it acts. | 70.3K | Apache-2.0 | — |
常见问题
opencode 免费吗?
是的——opencode 是开源软件,采用 MIT 许可证。商用前请确认软件及模型权重的许可条款。
opencode 支持 Windows、Mac 和 Linux 吗?
opencode 支持:macOS, Linux, Windows。
如何安装 opencode?
1. Install with the script or npm. 2. Start it in your project.
opencode 有哪些好的替代品?
常见替代品包括 Aider, Codex CLI, Gemini CLI, Continue,详见本页对比表。