> 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/zh/product, not this Markdown file. For an index of the site, see https://opencode.ai/llms.txt.

# Product

One agent, every surface. Start a session on your desktop, steer it from your phone, pick it up in the terminal or drive it from your own code.

- [Desktop](https://opencode.ai/zh/desktop): Sessions, tabs, diffs, built-in browser, and extensions on macOS, Windows and Linux.
- [Mobile](https://opencode.ai/zh/mobile): Start, steer and approve sessions from your phone, wherever you are.
- [Terminal](https://opencode.ai/zh/terminal): A fast terminal UI that works in any shell, editor or remote server.
- [SDK](https://opencode.ai/zh/sdk): Drive OpenCode from your own scripts, CI jobs and tools.

## Extensions

- [Browse](https://opencode.ai/zh/extensions/browse): Let agents use your real browser.

## Integrations

- [GitHub](https://opencode.ai/v1/docs/github/): Use OpenCode in GitHub Actions.
- [GitLab](https://opencode.ai/v1/docs/gitlab/): Use OpenCode in GitLab CI/CD or Duo.

## More from Anomaly

- [Hex](https://anoma.ly/hex): On-device voice dictation for any app.
- [OpenTunnel](https://opentunnel.xyz): Public HTTPS URLs for local apps.
- [OpenTUI](https://opentui.com): A library for terminal user interfaces.

## 常见问题

### 什么是 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/zh/desktop)和[移动应用](https://opencode.ai/zh/mobile)，[SDK](https://opencode.ai/zh/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、提交 PR 并扩展功能。

---

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