Install Grok For VS Code By Kafei from the VS Code Marketplace, or
npm run package then Install from VSIX.
Open Grok For VS Code By Kafei 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.