Devtoolwatch BoardGet it every Monday

LM Studio SDK review

LM Studio SDK is LM Studio's official TypeScript client library for using local LLMs from JavaScript and TypeScript code.

Updated Nov 1, 2026. Review written Oct 22, 2026 from the project's own sources; usage data refreshed every Monday.

TL;DR

LM Studio SDK (lmstudio-js) is LM Studio's official JavaScript client SDK, written in TypeScript. It is for TypeScript and JavaScript developers who run local LLMs through LM Studio. It covers chat, completions, embeddings, local agents, and model loading and configuration, which the README says the OpenAI SDK lacks.

LM Studio SDK at a glance

Category
Inference and training
Maintained by
LM Studio (organization, @lmstudio-ai on GitHub)
License
MIT
Language
TypeScript, JavaScript, Shell
Repository
github.com/lmstudio-ai/lmstudio-js
Website
www.npmjs.com/package/@lmstudio/sdk
npm package
@lmstudio/sdk 2.1.0
PyPI package
lmstudio 1.5.0
Latest release
@lmstudio/sdk 2.1.0 on npm, Oct 14, 2026
First published
Sep 15, 2023

What LM Studio SDK does

  • LM Studio SDK uses LLMs to respond in chats or predict text completions.
  • LM Studio SDK lets you define functions as tools and turn LLMs into autonomous agents that run completely locally.
  • LM Studio SDK loads, configures, and unloads models from memory.
  • LM Studio SDK configures load parameters such as context length and GPU offload settings.
  • LM Studio SDK supports speculative decoding and reports model information such as context length and model size.
  • LM Studio SDK generates embeddings for text.
  • LM Studio SDK runs in the browser and in any Node-compatible environment.

How it works

LM Studio SDK is installed from npm as @lmstudio/sdk. In code, you create an LMStudioClient, get a model handle with client.llm.model() and a model name, then call methods such as respond(). The SDK is a client for LM Studio, the desktop app for discovering, downloading, and running local LLMs.

How to install and start using LM Studio SDK

With npm

npm install @lmstudio/sdk --save

Requirements

  • A browser or any Node-compatible environment.
  • LM Studio, since this is LM Studio's client SDK.

First steps

  1. Install the package with npm install @lmstudio/sdk --save.
  2. Import LMStudioClient from "@lmstudio/sdk" and create a new client.
  3. Get a model with client.llm.model("llama-3.2-1b-instruct").
  4. Call model.respond() with a prompt and print result.content.

Who LM Studio SDK is for

  • TypeScript and JavaScript developers building apps on local LLMs.
  • Developers who need to load, unload, and configure local models from code.
  • Building tool-using agents that run completely locally.

Limitations to know

  • LM Studio SDK is a client for LM Studio, not a general SDK for hosted model providers.
  • Major version changes may introduce breaking changes.
  • LM Studio SDK targets JavaScript and TypeScript. Python users need the separate lmstudio-python SDK.

Is LM Studio SDK growing? Usage data

LM Studio SDK was not ranked on the Devtoolwatch Board in the week of Oct 25–31, 2026: it needs 25 or more new stars or 1,000 or more added downloads in a week to rank.

New GitHub stars per week for LM Studio SDK12 weeks from Aug 9, 2026: 7, 6, 3, 7, 6, 8, 3, 4, 4, 8, 7, 6 new stars, an average of 6 a week.Aug 9week of Oct 25
New GitHub stars per week for the last 12 weeks, from GitHub's stargazer history (today's stargazers by the week they starred).
Show the weekly numbers
New GitHub stars per week for LM Studio SDK
Week ofNew stars
Aug 9, 20267
Aug 16, 20266
Aug 23, 20263
Aug 30, 20267
Sep 6, 20266
Sep 13, 20268
Sep 20, 20263
Sep 27, 20264
Oct 4, 20264
Oct 11, 20268
Oct 18, 20267
Oct 25, 20266

On Hacker News

The Board ranks tools by four signals each week: new stars, new stars for the repo's size, added downloads and download growth beyond the market. How the ranking works.

LM Studio SDK alternatives

Other LLM inference and training tools on the Board in the week of Oct 25–31, 2026, by momentum:

Inference and training ranked by momentum, the week of Oct 25–31, 2026
RankToolStarsDownloads/wk
#1dsh-our-free-modeldsh-our-free-model is a dsh plugin that provides DeepSeek V4.1 Flash, Kimi K3 and other models without login, sign-up or API key.54.3k–
#2magpiemagpie is a local gateway and app that lets coding agents like Claude Code, Codex and Gemini CLI use any provider's model.26.9k–
#3StrataStrata is a local inference engine and app that runs large open models like Qwen3.8-Flash-Next on consumer hardware with…37.1k–
#4edge0edge0 is an open-source streaming inference framework that runs large sparse mixture-of-experts models on consumer hardware by streaming…8.9k–
#5OmniRouteOmniRoute is an open-source AI gateway that routes requests across many model providers through one OpenAI-compatible endpoint, with…83.2k106k
#6CLIProxyAPICLIProxyAPI is a Go proxy server that exposes CLI coding accounts like Codex, Claude Code and Gemini CLI through OpenAI, Gemini and…57.1k–

All LLM inference and training tools, ranked

LM Studio SDK FAQ

Is LM Studio SDK free and open source?

Yes. LM Studio SDK's source code is on GitHub (lmstudio-ai/lmstudio-js) under the MIT license, so you can use it for free.

How do I install LM Studio SDK?

Run npm install @lmstudio/sdk --save. The install section above has the other options from the project's README.

Is LM Studio SDK still maintained?

Yes. The lmstudio-ai/lmstudio-js repository was last updated on Oct 21, 2026, and the latest release, @lmstudio/sdk 2.1.0 on npm, came out on Oct 14, 2026.

How popular is LM Studio SDK?

LM Studio SDK has 1.8k GitHub stars as of Nov 1, 2026. It gained 6 new stars in the week of Oct 25–31, 2026, against a 12-week average of 6 a week.

What are the best alternatives to LM Studio SDK?

Other LLM inference and training tools on the Devtoolwatch Board in the week of Oct 25–31, 2026, by momentum: dsh-our-free-model (#1), magpie (#2), Strata (#3), edge0 (#4), OmniRoute (#5). The alternatives table above has their numbers.

Why use LM Studio SDK instead of the OpenAI SDK?

LM Studio SDK includes local features that the README says the OpenAI SDK lacks. These include loading and unloading models, configuring load parameters such as context length and GPU offload, speculative decoding, and reading model info. The README also says it was designed from the ground up for TypeScript and JavaScript, while the OpenAI SDK is generated automatically.

Does LM Studio SDK work in the browser?

Yes. LM Studio SDK supports both browser and any Node-compatible environments.

Is there a Python version of LM Studio SDK?

Yes. LM Studio offers lmstudio-python, published on PyPI as lmstudio. That package requires Python 3.10 or later.

Can LM Studio SDK build agents?

Yes. LM Studio SDK lets you define functions as tools and turn LLMs into autonomous agents that run completely locally.

Where can I get help with LM Studio SDK?

The README points to the #dev-chat channel in LM Studio's Community Discord server. It also links to the lmstudio-js docs at lmstudio.ai/docs/typescript.

Sources

  1. lmstudio-ai/lmstudio-js on GitHub
  2. LM Studio SDK README
  3. @lmstudio/sdk on npm
  4. lmstudio on PyPI
  5. Hacker News: Claude Code 2.0
  6. Hacker News: Show HN: Ez FFmpeg – Video editing in plain English
  7. Hacker News: Svelte 5 Released
  8. Devtoolwatch Board, the week of Oct 25–31, 2026

LM Studio SDK README badge

Maintainers can show the tool's weekly Board rank in their README:

Devtoolwatch badge for LM Studio SDK

[![Devtoolwatch](https://index.devtoolwatch.com/badge/lm-studio.svg)](https://index.devtoolwatch.com/tools/lm-studio/)

How this page is made: Devtoolwatch writes each review from the project's README, releases, package metadata and website, with an AI model, then checks every claim against the source it cites and drops what the sources don't support. The numbers come from Devtoolwatch's daily GitHub snapshots, GitHub's stargazer history, and the npm and PyPI download APIs. Spotted an error? Email [email protected].