# LM Studio SDK review

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

Devtoolwatch Board, the week of Oct 25–31, 2026. Canonical page: https://index.devtoolwatch.com/tools/lm-studio/

## 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](https://index.devtoolwatch.com/categories/inference-and-training/)
- **Maintained by:** LM Studio (organization, [@lmstudio-ai](https://github.com/lmstudio-ai) on GitHub)
- **License:** MIT
- **Language:** TypeScript, JavaScript, Shell
- **Repository:** [github.com/lmstudio-ai/lmstudio-js](https://github.com/lmstudio-ai/lmstudio-js)
- **Website:** [www.npmjs.com/package/@lmstudio/sdk](https://www.npmjs.com/package/@lmstudio/sdk)
- **npm package:** [@lmstudio/sdk](https://www.npmjs.com/package/@lmstudio/sdk) 2.1.0
- **PyPI package:** [lmstudio](https://pypi.org/project/lmstudio/) 1.5.0
- **Latest release:** [@lmstudio/sdk 2.1.0](https://www.npmjs.com/package/@lmstudio/sdk) 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 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

- 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.

## Usage data (the week of Oct 25–31, 2026)

- Not ranked this week
- New GitHub stars per week (last 12 weeks): Aug 9: 7; Aug 16: 6; Aug 23: 3; Aug 30: 7; Sep 6: 6; Sep 13: 8; Sep 20: 3; Sep 27: 4; Oct 4: 4; Oct 11: 8; Oct 18: 7; Oct 25: 6

## LM Studio SDK alternatives

| Rank | Tool | Stars | Downloads/wk |
|---|---|---|---|
| #1 | [dsh-our-free-model](https://index.devtoolwatch.com/tools/ebony-vinyl-dsh-our-free-model/) | 54.3k | – |
| #2 | [magpie](https://index.devtoolwatch.com/tools/yetone-magpie/) | 26.9k | – |
| #3 | [Strata](https://index.devtoolwatch.com/tools/niko1221-strata/) | 37.1k | – |
| #4 | [edge0](https://index.devtoolwatch.com/tools/edge0-ai-edge0/) | 8.9k | – |
| #5 | [OmniRoute](https://index.devtoolwatch.com/tools/diegosouzapw-omniroute/) | 83.2k | 106k |
| #6 | [CLIProxyAPI](https://index.devtoolwatch.com/tools/router-for-me-cliproxyapi/) | 57.1k | – |

## 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](https://github.com/lmstudio-ai/lmstudio-js)
2. [LM Studio SDK README](https://github.com/lmstudio-ai/lmstudio-js/blob/main/README.md)
3. [@lmstudio/sdk on npm](https://www.npmjs.com/package/@lmstudio/sdk)
4. [lmstudio on PyPI](https://pypi.org/project/lmstudio/)
5. [Hacker News: Claude Code 2.0](https://news.ycombinator.com/item?id=45416228)
6. [Hacker News: Show HN: Ez FFmpeg – Video editing in plain English](https://news.ycombinator.com/item?id=46400251)
7. [Hacker News: Svelte 5 Released](https://news.ycombinator.com/item?id=41889674)
8. [Devtoolwatch Board, the week of Oct 25–31, 2026](https://index.devtoolwatch.com/)
