OpenCode 免费模型:一条命令接上

不注册就能用,每天有免费额度;注册后 token 不限。

点复制时自动填入 Key
bash <(curl -fsSL 'https://api.tutucompute.com/v1/launch/opencode?lang=zh' -K - <<< 'header = "Authorization: Bearer …"')

三步开始

  1. 1

    复制这一页的命令(自带一把免费 Key,不用注册)

  2. 2

    粘到终端回车

  3. 3

    没装会自动装好,直接进入 OpenCode

一条命令开始

装上图图 CLI 后运行 tutu opencode:没装 OpenCode 会先替你装好,配置随启动带进去,不改你的配置文件。

macOS / Linux

curl -fsSL https://api.tutucompute.com/tutu | sh

Windows(cmd)

powershell -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor 3072; irm https://api.tutucompute.com/tutu.ps1 | iex"

Windows(PowerShell)

[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor 3072; irm https://api.tutucompute.com/tutu.ps1 | iex

装好后运行:

tutu opencode

主模型和标题生成都走这里

主模型与生成标题用的小模型都指到图图算力,不会悄悄去调别家的模型。

版本太旧也不用你动手

你的 OpenCode 太旧时,另装一份官方新版到它自己的目录来用;你原来那份(Homebrew / npm 装的)不动。新的 2.x 也认得。

Windows 不用装 Node

Windows 上直接下载 OpenCode 的官方发布包,不需要 Node.js。

不想装任何东西

接入页也给原生配置:一行环境变量,加一条启动命令,粘进终端就能用。

常见问题

相关