←新闻详情

xAI News更新于 10月13日 19:20

xAI 将 Grok 接入 OpenCode

Use Grok in OpenCode

AI 导读

xAI 宣布 Grok 可在 OpenCode 中使用,连接 Grok 账号后即可调用 Grok Build——驱动 xAI 终端编码智能体的同一模型。用户在 OpenCode 内运行 /connect 并选择 xAI,可通过 SuperGrok 订阅的 OAuth 浏览器登录,或使用面向 SSH、远程主机和 VPS 的无头 OAuth 方式。xAI 表示更多开源智能体和集成即将推出。

正文

当前显示原文,中文全文译文尚未就绪。

After connecting your Grok account, start coding with Grok Build, the same model that powers xAI's terminal-based coding agent .

Setup

Install OpenCode:

Copy curl -fsSL https://opencode.ai/install | bash bash Launch OpenCode:

Copy opencode bash Inside OpenCode, run /connect and pick xAI :

Copy /connect txt Pick the sign-in method that fits your setup — both use your Grok subscription:

xAI Grok OAuth (SuperGrok Subscription) — opens your browser to sign in.

xAI Grok OAuth (Headless / Remote / VPS) — prints a code and URL for SSH or remote hosts.

More open-source agents and integrations are coming soon.

来源

xAI News