Oushi
Sidebar AI chat for VS Code and Cursor, powered by xAI Grok.
Setup
- Install the extension (Marketplace or
.vsix).
- Open Settings and set:
oushi.apiKey — your xAI API key from https://console.x.ai
oushi.baseUrl — default https://api.x.ai/v1
oushi.model — default grok-4.7
- Open the Oushi icon in the activity bar and chat.
Never put your API key in source files or git.
Shortcuts
Ctrl+Shift+O / Cmd+Shift+O — show chat
Ctrl+Shift+H / Cmd+Shift+H — hide chat (closes sidebar)
Commands: Oushi: Show Chat, Oushi: Hide Chat.
Editor context
If you select text, that selection is sent with your message. Otherwise the active file (truncated) is included.
Develop locally
npm install
npm run compile
Press F5 in VS Code/Cursor with this folder open to launch an Extension Development Host.
Package a .vsix
npm install
npm run compile
npx vsce package
Install with Extensions: Install from VSIX... and pick the generated file. Copy that .vsix to other computers for the same install.
Publish to the VS Code Marketplace
- Create an Azure DevOps account at https://dev.azure.com
- Create a publisher at https://marketplace.visualstudio.com/manage
- Change
"publisher" in package.json to your publisher id
- Install tooling:
npm i -g @vscode/vsce
- Login:
vsce login <your-publisher>
- Publish:
vsce publish
After it appears, search Oushi in Extensions on any machine and install.
License
MIT