Documentation
Predicting with LLMs
Agentic Flows
Plugins
Tools Provider
Prompt Preprocessor
Generators
Custom Configuration
Publishing a Plugin
Text Embedding
Tokenization
API Reference
Model Info
Predicting with LLMs
Agentic Flows
Plugins
Tools Provider
Prompt Preprocessor
Generators
Custom Configuration
Publishing a Plugin
Text Embedding
Tokenization
API Reference
Model Info
Using npm
Dependencies
Plugin support is currently in private beta. Join the beta here.
npm
LM Studio plugins supports npm
packages. You can just install them using npm install
.
When the plugin is installed, LM Studio will automatically download all the required dependencies that are declared in package.json
and package-lock.json
. (The user does not need to have Node.js/npm installed.)
postinstall
scriptsFor safety reasons, we do not run postinstall
scripts. Thus please make sure you are not using any npm packages that require postinstall scripts to work.
Since we rely on package-lock.json
, lock files produced by other package managers will not work. Thus we recommend only using npm
when developing LM Studio plugins.
On this page
Add dependencies to your plugin with npm
postinstall scripts
Using Other Package Managers