diegomarino/opencode-lmstudio-warm — explained in plain English
Analysis updated 2026-05-18
Avoid the first request hanging because a local model is still cold-loading.
Keep a local model resident so it does not get unloaded mid-session by an idle timeout.
Prevent duplicate model loads when multiple requests arrive at the same time.
Roll out consistent local-model warm-up settings across a fleet of machines.
| diegomarino/opencode-lmstudio-warm | 0xradioac7iv/tempfs | 52191314/web-agent-proxy-sdk | |
|---|---|---|---|
| Stars | 0 | 0 | 0 |
| Language | TypeScript | TypeScript | TypeScript |
| Setup difficulty | easy | moderate | moderate |
| Complexity | 2/5 | 3/5 | 4/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires opencode and a locally running LM Studio instance, one manual settings change inside LM Studio is recommended.
opencode-lmstudio-warm is a plugin for opencode, an AI coding tool, that makes sure a local AI model running through LM Studio is fully loaded and ready before opencode sends it any request. Without this plugin, people running local models through LM Studio tend to hit three annoying problems: the very first request hangs while the model loads for the first time, requests fail outright with a no model loaded error if automatic loading is turned off, and models can get unloaded partway through a work session because LM Studio automatically frees up memory after a period of inactivity. The plugin fixes this by checking, before every request, whether the model is actually loaded, and if it is not, it loads the model first and only then lets the request through. It is careful to avoid loading the same model twice even if multiple requests come in around the same time. The project has been tested against specific versions of opencode and LM Studio on macOS with Apple Silicon. Setup involves running one command to register the plugin with opencode, either for a single project or globally on your machine, then pointing opencode's configuration at your local LM Studio server address. There is also a one-time settings change needed inside the LM Studio app itself, to turn off the automatic idle timeout that would otherwise unload models on its own. The plugin also offers a range of optional settings, like how long a loaded model should stay resident, how many requests it should handle at once, and how it should behave if a model fails to load, though it works out of the box with sensible defaults and no configuration required. This is a tool for developers who are already using opencode with local models through LM Studio rather than a cloud AI service, and it does not require any external dependencies beyond opencode and LM Studio themselves.
An opencode plugin that keeps a local LM Studio AI model loaded and ready, fixing cold-start hangs and mid-session model unloading.
Mainly TypeScript. The stack also includes TypeScript, opencode, LM Studio.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.