lmstudio-js social preview
other1,674MIT

lmstudio-js

LM Studio TypeScript SDK

Updated Jun 8, 2026
Platforms
web
Pricing
free-open-source
Status
active
License
MIT

What it does

Core capabilities at a glance

  • LM Studio
  • Lmstudio
  • Nodejs

Deep dive

The full breakdown - performance, comparisons, and setup

lmstudio-js

lmstudio-js is a local-AI tool - LM Studio TypeScript SDK.

Overview

'lmstudio-js' is LM Studio's official JavaScript client SDK, written in TypeScript. It allows you to

  • Use LLMs to respond in chats or predict text completions - Define functions as tools, and turn LLMs into autonomous agents that run completely locally - Load, configure, and unload models from memory - Supports both browser and any Node-compatible environments - Generate embeddings for text, and more!

Open AI's SDK is designed to use with Open AI's proprietary models. As such, it is missing many features that are essential for using LLMs in a local environment, such as:

  • Managing loading and unloading models from memory - Configuring load parameters (context length, gpu offload settings, etc.) - Speculative decoding - Getting information (such as context length, model size, etc.) about a model - ... and more

In addition, while 'openai' sdk is automatically generated, 'lmstudio-js' is designed from ground-up to be clean and easy to use for TypeScript/JavaScript developers.

Discuss all things lmstudio-js in #dev-chat in LM Studio's Community Discord server.

lmstudio-js is open-source, written primarily in TypeScript, with 1,674 GitHub stars under the MIT license. It was last updated on 2026-06-08.

Key capabilities

From the project's documentation:

  • Supports both browser and any Node-compatible environments
  • Generate embeddings for text, and more!
  • Managing loading and unloading models from memory
  • Configuring load parameters (context length, gpu offload settings, etc.)
  • Getting information (such as context length, model size, etc.) about a model

How it fits a local-AI stack

lmstudio-js runs on your own hardware, so pair it with a model and a GPU sized to your needs. Use the VRAM calculator to pick a model that fits your card, and see what you can run for hardware guidance. Related local-AI tools in the directory:

Sources

Stats from GitHub, 2026-06-08.

Frequently asked

Quick answers to common questions

What is lmstudio-js?

lmstudio-js is a other tool for local AI workloads. LM Studio TypeScript SDK

Is lmstudio-js free and open source?

Yes, lmstudio-js has 1,674 GitHub stars and is licensed under MIT. You can self-host it for free on web.

What platforms does lmstudio-js support?

lmstudio-js runs on web.

What hardware do I need for lmstudio-js?

The hardware requirements depend on which models you run. Check our hardware directory for compatible GPUs and systems. lmstudio-js has 1,674 GitHub stars and an active community.

Does lmstudio-js support GPU acceleration?

lmstudio-js's GPU support depends on your specific setup. Check the documentation for details. For the best performance, pair it with an NVIDIA RTX 4090 or 5090.

What are the best alternatives to lmstudio-js?

Popular alternatives include other other tools in our directory. Browse our full collection at /tool for comparisons, community reviews, and benchmark data to find the right fit for your workflow.

How much does lmstudio-js cost?

lmstudio-js is free-open-source. It is completely free and open source to self-host.

Pairs well with

Complementary tools, models, and hardware

Similar tools

More tools like this one

Comments coming soon

Configure NEXT_PUBLIC_GISCUS_REPO_ID and NEXT_PUBLIC_GISCUS_CATEGORY_ID at giscus.app to enable.