Bring the MeerAI local-first coding assistant into your Visual Studio Code workflow. This extension wraps the meer CLI to provide workspace-aware chat, code explanations, and quick prompts without leaving the editor.
- Tabbed chat sidebar – keep multiple conversations side-by-side, rename or delete threads, and pick up where you left off.
- Workspace context – commands run from the active workspace folder so the CLI can collect relevant files.
- Selection tools – explain selected code directly from the editor.
- Configurable CLI command – point the extension at a custom MeerAI binary or script.
- Node.js 20 or later (required by the MeerAI CLI).
- The
meerCLI installed and configured locally, or an alternative command compatible withmeer ask.
| Setting | Description | Default |
|---|---|---|
meerai.cliCommand |
Command used to invoke the MeerAI CLI (meer, node /path/to/meer/dist/index.js, etc.). |
meer |
meerai.maxBuffer |
Maximum kilobytes of response text retained in memory per request. | 1024 |
| Command | Description |
|---|---|
MeerAI: Ask Workspace |
Prompt for a question and stream the answer into the MeerAI output channel. |
MeerAI: Explain Selection |
Explain the highlighted code using meer ask. |
MeerAI: Configure Provider |
Pick a provider (Ollama, OpenAI, Anthropics, etc.) and store credentials in ~/.meer/config.yaml. |
MeerAI: New Chat |
Open the MeerAI view, spawn a fresh conversation tab, and focus the input. |
-
Install dependencies and build the extension:
npm install npm run compile
-
Open this folder in VS Code, press
F5to launch an Extension Development Host, and open a workspace that is compatible with the MeerAI CLI. -
Run
MeerAI: Configure Providerfrom the Command Palette (or click the gear icon in the MeerAI view) to select a provider, enter API keys, and choose a default model. The extension updates~/.meer/config.yamlfor you. -
Optionally run
MeerAI: New Chatto spin up a fresh thread in the sidebar. -
Ensure the
meercommand is reachable on your PATH—use the Settings menu to tweakMeerAI › Cli Commandif needed—or set it to an absolute path (e.g.node D:/DevOps/devai/dist/index.js). -
Open the MeerAI activity-bar view to start chatting, switch between conversations, or run the commands from the Command Palette.
npm run watch– compile on file changes.npm run package– create a.vsixusing@vscode/vsce.
- If you see
MeerAI CLI command not found, check thatmeerai.cliCommandresolves to a runnable binary. spawn EINVALusually means Windows rejected the CLI command. Adjust theMeerAI › Cli Commandsetting (gear icon → Settings) to point at a valid executable such asmeer.cmdornode D:/DevOps/devai/dist/index.js.- Responses longer than the configured buffer are truncated to the most recent text.
- The chat view streams stdout from
meer ask; verbose CLI logging still appears in the VS Code output channel named MeerAI.
MIT