KhaosAI for VS Code
Cursor-style AI coding assistant in a single sidebar panel. Hosted inference
out of the box (no API keys needed) — @khaosai chat participant, plan/debug/
agent/ask/multitask modes, MCP tooling, diff-first edit pipeline, and an
optional Shopify theme preview tier.
Features
- Single Cursor-style sidebar webview — chat composer, model picker,
rules, workflows, MCP wizard, secrets, and settings all live in one panel.
- Hosted KhaosAI inference — free tier ships with GPT-5 Nano for text
and GPT Image Pro 1.5 for images (active by default). PRO unlocks
GPT-5, Claude 4 Sonnet/Opus, Gemini 2.5 Pro, and larger image models.
@khaosai chat participant with /plan, /debug, /agent, /ask,
/multitask.
- Auto-approve policy — opt in to skip confirmations for safe actions
(edits.apply, mcp.tool); destructive scopes stay manual until you approve.
- MCP client — built-in stdio + HTTP transports; add servers from the
in-webview wizard.
- Diff-first edits — preview every proposed edit before it touches your
workspace; checkpoints make rollbacks one-click.
- Bring-your-own-key (optional) — OpenAI, Anthropic, Azure OpenAI,
OpenRouter, or any custom OpenAI-compatible endpoint.
- Shopify tier (optional) — Shopify CLI preview, theme zip upload,
multi-file proposals.
Install
From the VS Code Marketplace: search "KhaosAI" or run
ext install khaosai.khaosai
Run locally (Extension Host)
- Open this folder in VS Code.
npm install
- Press F5 to launch the Extension Development Host.
- Open Chat and type
@khaosai /ask hello.
Build a VSIX
pnpm --filter ./artifacts/khaos-vscode-extension run vsix
The published VSIX ships only dist/extension.js (bundled via esbuild) plus
media/, package.json, LICENSE, README.md, and CHANGELOG.md. See
RELEASING.md for the full release checklist.
Settings (high-signal)
| Key |
Default |
What it does |
khaosAI.provider |
khaosai |
Hosted inference; switch to OpenAI/Anthropic/etc. for BYOK. |
khaosAI.model |
gpt-5-nano |
Free text model; PRO unlocks frontier models. |
khaosAI.imageModel |
gpt-image-pro-1.5 |
Free image model. |
khaosAI.autoApprove.enabled |
false |
Skip per-action confirmations. |
khaosAI.autoApprove.scopes |
["edits.apply","mcp.tool"] |
Scopes auto-approved when the toggle above is on. |
khaosAI.checkpoints.enabled |
true |
Snapshot before applying edits. |
khaosAI.plan.strict |
false |
In Plan mode, refuse to propose edits. |
khaosAI.subscription.tier |
standard |
shopify unlocks the Shopify panel + CLI. |
The full schema is browsable in the sidebar's Settings tab and in the
standard VS Code Settings UI under KhaosAI.
Privacy
KhaosAI ships with hosted inference proxied through https://api.khaosai.com.
Source code only leaves your workspace as snippets selected by the lexical
indexer (see khaosAI.indexing.*). Set the provider to a BYOK option to send
traffic directly to your own account instead. API keys are stored in VS Code
SecretStorage.
License
MIT — see LICENSE.