OpenGrok Plugins
Sidebar client for the Grok Build CLI. It speaks ACP (grok agent stdio) and
signs you in through the same browser OAuth flow as grok login.
Publisher: kafei520cn · Extension: kafei520cn.grok-for-vs-code
Use
Install the Grok CLI if it is not already on this machine:
irm https://x.ai/cli/install.ps1 | iex
macOS / Linux: curl -fsSL https://x.ai/cli/install.sh | bash
Install OpenGrok Plugins from the VS Code Marketplace, or
npm run package then Install from VSIX.
Open OpenGrok Plugins in the activity bar, or press
Ctrl+; / Cmd+;.
Click Sign in with Grok. VS Code opens auth.x.ai. After the browser
round-trip, chat in the sidebar.
The sidebar is the same agent as the CLI. Type / for every slash command
(/plan, /imagine, /workflow, /compact, /resume, /mcps, …). Type @
to attach a workspace file. An xAI API key from
console.x.ai is the fallback.
中文说明
面向 VS Code 的 Grok Build 编程助手。通过 ACP(grok agent stdio)连接本机
grok CLI,登录流程与 grok login 相同:用浏览器打开 auth.x.ai 即可。
发布者:kafei520cn · 扩展 ID:kafei520cn.grok-for-vs-code
使用
如果还没有 Grok CLI,先安装:
irm https://x.ai/cli/install.ps1 | iex
macOS / Linux:curl -fsSL https://x.ai/cli/install.sh | bash
从 VS Code 扩展市场安装 OpenGrok Plugins,或本地
npm run package 后选择“从 VSIX 安装”。
在活动栏打开 OpenGrok Plugins,或按 Ctrl+; / Cmd+;。
点击 使用 Grok 登录。VS Code 会打开 auth.x.ai,浏览器登录完成后即可
在侧边栏对话。
侧边栏里的 Agent 与 CLI 是同一个。输入 / 可调用全部斜杠命令(/plan、
/imagine、/workflow、/compact、/resume、/mcps 等)。输入 @ 可附加
工作区文件。也可用 console.x.ai 的 xAI API 密钥作为
备选登录方式。
Develop
npm install
npm test
npm run compile
Then Run and Debug → Run Grok Build Extension.