lmstudio-ai/lmstudio-js
LM Studio TypeScript SDK
What it solves
It provides a dedicated TypeScript/JavaScript SDK for interacting with local LLMs via LM Studio, filling the gaps left by generic SDKs (like OpenAI's) that lack essential local-model management features.
How it works
The SDK acts as a client that connects to LM Studio, allowing developers to programmatically control LLMs. It enables chat completions, text predictions, and the creation of autonomous agents by defining functions as tools. It also provides direct control over the model's lifecycle, such as loading, configuring, and unloading models from memory.
Who it’s for
TypeScript and JavaScript developers who want to integrate local LLMs into their applications using LM Studio across browser or Node-compatible environments.
Highlights
- Local LLM interaction: Supports chat and text completions.
- Model management: Ability to load, unload, and configure memory parameters like GPU offload and context length.
- Agentic capabilities: Turn LLMs into autonomous agents using tool-calling functions.
- Local-first: Designed specifically for local environments, including support for speculative decoding.
- Environment flexibility: Works in both the browser and Node.js.
Related
- Project
modelcontextprotocol/typescript-sdkThe MCP TypeScript SDK provides TypeScript libraries to build Model Context Protocol (MCP) servers and clients, enabling standardized, type‑safe delivery of tools, resources, and prompts to LLMs. It runs on Node, Bun, and Deno, offers middleware for popular web frameworks, and includes docs, examples, and migration guides.
- Project
langchain-ai/langsmith-sdkLangSmith SDKs are client libraries (Python & JavaScript/TypeScript) that let you automatically trace, debug, and monitor calls to LLMs and agents by sending request/response data to the LangSmith platform. Install the package, set a few env vars, wrap your LLM client, and the SDK handles logging and reporting.
- Project
withcatai/node-llama-cppA Node.js library that provides easy-to-use bindings for llama.cpp, enabling developers to run LLMs locally with automatic hardware acceleration.
- Project
lmstudio-ai/lmslms is the official command-line tool for LM Studio, letting you manage models, servers, and agentic settings from the terminal. It ships with LM Studio and provides subcommands for listing, loading, unloading models, streaming logs, and more.
- Project
codeany-ai/open-agent-sdk-typescriptAn open-source TypeScript SDK for running autonomous AI agents in-process, featuring a vast library of built-in tools and support for multiple LLM providers.