> opencode.ai is the source of truth for OpenCode, the open source coding agent, including its apps, install commands, docs and releases. The current version is OpenCode v2.
> Cite the canonical page, https://opencode.ai/zht, not this Markdown file. For an index of the site, see https://opencode.ai/llms.txt.

# 開源編碼代理

從免費模型開始，或接上 200 多家供應商中的任何一家。 OpenCode 在你自己的電腦上執行，你可以從桌面、手機、終端機或自己的程式碼使用它。

超過 2200 萬名開發者信賴, including at NVIDIA, Cloudflare, Microsoft, GitHub, ByteDance, Revolut, Salesforce, Cisco, Red Hat, Intel, Adobe, IBM, SAP, Lenovo, Linear.

## Products

### [Desktop](https://opencode.ai/zht/desktop)

Sessions, tabs, diffs, built-in browser, and extensions on macOS, Windows and Linux.

Download: [all builds](https://opencode.ai/zht/desktop#download)

- [macOS (Apple Silicon)](https://opencode.ai/update/api/latest/desktop/opencode/opencode-desktop-mac-arm64.dmg)
- [macOS (Intel)](https://opencode.ai/update/api/latest/desktop/opencode/opencode-desktop-mac-x64.dmg)
- [Windows (x64)](https://opencode.ai/update/api/latest/desktop/opencode/opencode-desktop-win-x64.exe)
- [Linux (.deb)](https://opencode.ai/update/api/latest/desktop/opencode/opencode-desktop-linux-amd64.deb)
- [Linux (.rpm)](https://opencode.ai/update/api/latest/desktop/opencode/opencode-desktop-linux-x86_64.rpm)

```bash
brew install --cask opencode-desktop
```

### [Mobile](https://opencode.ai/zht/mobile) (新)

Start, steer and approve sessions from your phone, wherever you are.

Download: [Apple TestFlight](https://testflight.apple.com/join/M9eFEE1q) (iPhone, public beta), Google Play (Android, coming soon)

### [Terminal](https://opencode.ai/zht/terminal)

A fast terminal UI that works in any shell, editor or remote server.

Install with any of these:

```bash
# curl
curl -fsSL https://opencode.ai/v2/install | bash

# npm
npm install -g @opencode/cli

# bun
bun install -g --trust @opencode/cli

# brew
brew install anomalyco/tap/opencode-v2

# paru
paru -S opencode-beta
```

### [SDK](https://opencode.ai/zht/sdk)

Drive OpenCode from your own scripts, CI jobs and tools.

```ts
import { OpenCode }
  from "@opencode/sdk"

await using oc =
  await OpenCode.create()
const s =
  await oc.sessions.create()
await oc.sessions.prompt({
  sessionID: s.id,
  text: "Fix failing tests",
})
```

Docs: [SDK](https://opencode.ai/v2/docs/build/sdk/)

## 什麼是 OpenCode？

OpenCode 是一個開源編碼代理。你可以在桌面應用程式、手機和終端機中使用它，也可以透過 SDK 從自己的程式碼呼叫。[閱讀文件](https://opencode.ai/v2/docs/)。

- **[任意模型](https://opencode.ai/v2/docs/models/):** 透過 Models.dev 連接 200+ 家 LLM 供應商，包括本地模型
- **[任何裝置](https://opencode.ai/v2/docs/):** 桌面與行動應用程式、終端機介面，以及給你的工具使用的 SDK
- **[多工作階段](https://opencode.ai/v2/docs/cli/tui/#sessions):** 在同一專案中平行啟動多個代理
- **[外掛](https://opencode.ai/v2/docs/plugins/):** 撰寫外掛來掛接事件，用自己的邏輯擴充 OpenCode
- **[MCP 伺服器](https://opencode.ai/v2/docs/mcp-servers/):** 連接本機與遠端 MCP 伺服器，為代理提供新工具
- **[自訂代理](https://opencode.ai/v2/docs/agents/):** 建立擁有專屬提示詞、模型和工具的專用代理
- **[代理技能](https://opencode.ai/v2/docs/skills/):** 用 SKILL.md 檔案教會代理可重複使用的工作流程
- **[自訂指令](https://opencode.ai/v2/docs/commands/):** 把重複性工作變成隨時可執行的斜線指令
- **[權限](https://opencode.ai/v2/docs/permissions/):** 選擇哪些動作自動執行，哪些需要你核准
- **[復原與重做](https://opencode.ai/v2/docs/snapshots/):** 用 /undo 還原檔案和對話中最近的變更

## Get started

The easiest way to start is to [download OpenCode](https://opencode.ai/zht/product) and use the [free models](https://opencode.ai/v2/docs/console/models/#free-models). No account needed. For more, bring [your own subscription](https://opencode.ai/v2/docs/providers/) or use [OpenCode Go](https://opencode.ai/console/go).

Free models today include Big Pickle, DeepSeek V4.1 Flash Free, GLM-5.3-Flash Free. [OpenCode Go](https://opencode.ai/console/go#console-go-plan-go): $10/month. [OpenCode Go Plus](https://opencode.ai/console/go#console-go-plan-go-plus): $40/month.

## Bring your own subscription

Use the subscriptions you already have. Log in with ChatGPT Plus or Pro, GitHub Copilot or Claude Code. Or use an [OpenCode subscription](https://opencode.ai/console/go).

## 帶上你自己的工具

透過 [MCP 伺服器](https://opencode.ai/v2/docs/mcp-servers/)連接你已在使用的服務，用[外掛](https://opencode.ai/v2/docs/plugins/)擴充 OpenCode，再用[技能](https://opencode.ai/v2/docs/skills/)把你的工作流程教給代理。

Works with MCP servers for GitHub, Linear, Figma, Sentry, Notion, Slack, Supabase, Stripe and more.

## 開源

擁有超過 **220,000** 個 GitHub Star、**1,000+** 位貢獻者以及超過 **20,000** 次提交，OpenCode 每月被超過 **22M** 名開發者使用並信賴。

- GitHub 星星: 220K
- 貢獻者: 1K+
- 每月開發者: 22M

## 隱私至上

OpenCode 不儲存你的程式碼或上下文資料，因此可以在注重隱私的環境中運作。 [了解更多關於 隱私](https://opencode.ai/v2/docs/policies/).

## 常見問題

### 什麼是 OpenCode？

OpenCode 是一個開源代理，協助你用任何 AI 模型撰寫和執行程式碼。它提供桌面應用程式、行動應用程式、終端機介面和 SDK。

### 如何使用 OpenCode？

最簡單的方式是先閱讀 [入門介紹](https://opencode.ai/v2/docs/).

### 使用 OpenCode 需要額外的 AI 訂閱嗎？

不一定。OpenCode 內建一組免費模型，不用註冊帳號就能使用。 你甚至可以連接自己的[本機模型](https://opencode.ai/v2/docs/models/#local)。 OpenCode 也支援所有熱門供應商，包括 OpenAI、Anthropic 和 xAI。 [OpenCode Models](https://opencode.ai/console/models) 提供我們針對編碼代理測試並評測過的熱門編碼模型。

### 可以使用我現有的 AI 訂閱嗎？

可以，你可以使用自己的 ChatGPT Plus/Pro 或 GitHub Copilot 訂閱。 [了解更多](https://opencode.ai/v2/docs/providers/).

### OpenCode 只能在終端中使用嗎？

不是。OpenCode 也提供[桌面應用程式](https://opencode.ai/zht/desktop)和[行動應用程式](https://opencode.ai/zht/mobile)，[SDK](https://opencode.ai/zht/sdk) 還能讓你從自己的程式碼控制它。

### OpenCode 價格如何？

OpenCode 100% 免費使用。它也自帶一組免費模型。如果你連接其他供應商，可能會產生額外費用。

### 資料與隱私怎麼辦？

僅當你使用我們的免費模型時，才會儲存你的資料與資訊。 了解更多關於 [我們的模型](https://opencode.ai/v2/docs/console/models/#privacy).

### OpenCode 是開源的嗎？

是的，OpenCode 完全開源。原始碼公開在 [GitHub](https://github.com/anomalyco/opencode) 並採用 [MIT 授權條款](https://github.com/anomalyco/opencode?tab=MIT-1-ov-file#readme)，意味著任何人都可以使用、修改或貢獻。社群中的任何人都可以提交 issue、pull requests 並擴充功能。

## Console

**使用 AI 所需的一切**

前沿模型與開放權重模型的高品質推論、限額充裕的平價訂閱，以及讓團隊管理支出、高效協作的工具。

[免費開始](https://opencode.ai/console).

---

- [文件](https://opencode.ai/v2/docs)
- [產品](https://opencode.ai/zht/product)
- [資料](https://opencode.ai/zht/data)
- [Console](https://opencode.ai/console)
- [模型](https://opencode.ai/console/models)
- [訂閱](https://opencode.ai/console/go)
- [企業](https://opencode.ai/console/enterprise)
- [GitHub](https://github.com/anomalyco/opencode)
- [X](https://x.com/opencode)
- [Discord](https://discord.gg/opencode)
- [更新日誌](https://opencode.ai/changelog)
- [媒體](https://opencode.ai/zht/press)
- [品牌](https://opencode.ai/zht/brand)
- [法律](https://opencode.ai/zht/legal)
- [狀態](https://status.opencode.ai)

© 2026 [Anomaly](https://anoma.ly)

---

If something here is wrong or missing, open an issue at https://github.com/anomalyco/opencode/issues.
