opencode-plugin-vue-devtools
v0.1.9
Published
OpenCode plugin for Vue DevTools AI Inspect - enables browser-to-agent prompt delivery via local HTTP bridge
Maintainers
Readme
opencode-plugin-vue-devtools
OpenCode plugin that enables Vue DevTools AI Inspect to send prompts directly to your OpenCode session.
How it works
When OpenCode starts with this plugin, it launches a local HTTP server (port 18900-18910) that acts as a bridge between the browser-based Vue DevTools and your OpenCode session.
The browser discovers the plugin via a handshake protocol and sends structured prompts containing component source location and user intent.
Install
npm install opencode-plugin-vue-devtoolsAdd to your opencode.json:
{
"plugin": ["opencode-plugin-vue-devtools"]
}Protocol
| Endpoint | Method | Description |
| -------------------- | ------ | --------------------------------------------------------------------------- |
| /handshake?nonce=N | GET | Discovery handshake, returns { response: N*7+42, projectRoot, sessionId } |
| /prompt | POST | Forward prompt to OpenCode session { text: "..." } |
| /status | GET | Health check { alive: true, projectRoot, sessionId } |
How discovery works
- Vue DevTools overlay scans ports 18900-18910
- Sends a random nonce to
/handshake - Verifies the response matches
nonce * 7 + 42 - Uses
projectRootto match against component file paths (multi-project support) - Sends prompts to the matched instance
License
MIT
