OpenClaw VS Code Agent is a VS Code extension for using the local OpenClaw CLI inside your workspace. It gives you a chat panel that can create files, edit code, make folders, and run terminal commands from plain-language prompts.
Features
Chat with OpenClaw from inside VS Code.
Keep the conversation history locally in VS Code.
Ask for code changes in plain language.
Let the agent create files, folders, and terminal actions when needed.
Preview responses before applying actions.
Requirements
VS Code 1.90 or newer.
Node.js 20 or newer.
The openclaw CLI available on your PATH, or configured through openclawAgent.cliPath.
Configuration
Open the VS Code settings and search for OpenClaw VS Code Agent.
openclawAgent.cliPath: path to the OpenClaw CLI.
openclawAgent.workspaceRoot: optional workspace root to use instead of the current folder.
openclawAgent.thinking: default reasoning level for prompts.
openclawAgent.autoDirectActions: handle simple requests like file creation or terminal commands directly.
Installation
From VSIX
Build the extension package.
Install the generated .vsix file in VS Code.
npm install
npm run build
npm run package
Development
npm install
npm run build
Open the folder in VS Code and press F5 to launch the extension host.
Commands
OpenClaw: Open Chat
OpenClaw: Send Prompt
Updates
New versions are published as .vsix files on GitHub Releases. Download the latest file from the release page and install it in VS Code when you want to update.
Security Note
If VS Code shows a trust warning while installing a VSIX, that usually means the publisher is not verified yet. It is a normal Marketplace or VSIX trust prompt and does not mean the package is broken.