Files
opencode-vllm-autostart/plugin/README.md
T
dfj 40656fd046 Initial commit: OpenCode vLLM autostart plugin and launchers
- Desktop plugin: on-demand vLLM model start, eject, media budgets
- WSL-native twin plugin for WSL project sessions
- Launchers for Qwen3.6 35B-A3B, Qwen3.8 27B (uncensored/fast), Agents-A1
- Config templates, diagnostics, video-processor workaround
2026-11-01 00:18:38 +01:00

1.6 KiB

vllm-autostart (server + GUI part)

OpenCode Desktop plugin that starts the local vLLM model on demand and adds an eject button.

See the repository README for installation, launchers, and the model configuration.

What it does

  • Auto-start — before a request to a vllm model, unloads the other model, waits for its VRAM to be released, and launches the one you picked.
  • Eject button — a pill in the window titlebar, shown only while the running server was started by this plugin. Clicking it stops vLLM and clears the GPU. It is also available in the command palette as vLLM: Eject loaded model.
  • A server started any other way is left alone; eject reports not-owned and does nothing.
  • Media budgets — old images/videos are trimmed from the outgoing request to stay under each launcher's --limit-mm-per-prompt.

Layout

src/index.ts   server part: auto-start hook, media trimming, RPC
src/rpc.ts     RPC contract shared by server and GUI
src/gui.tsx    Desktop GUI: titlebar pill + palette command
dist/          built GUI bundle (gui-experimental.cjs)

Build

cd C:\Users\dfj\projects\vllm-autostart\plugin
npm ci
npm run build

npm run watch rebuilds on change and reloads the GUI in every window.

Config

Listed in ~/.config/opencode/opencode.json:

{ "plugins": ["C:/Users/dfj/projects/vllm-autostart/plugin"] }

Ownership is stored in plugin storage under the owner key and mirrored to ~/.vllm-autostart-owner, so eject also works for models started by the WSL twin plugin.