lmstudio
LM Studio Python SDK
Decision gist · record as of 2026-08-14
Yes, if you already run LM Studio locally and want a straightforward Python interface to it. The package has low install friction, no known vulnerabilities, and stable production status. However, the 357-day gap since the last release and unclear license terms warrant caution: verify license compliance before commercial use, and expect slower community support if issues arise. Not suitable if you need active maintenance or cloud-based LLM access.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires LM Studio application running locally and listening on the default WebSocket endpoint; Python 3.10 or later.
- Low install friction with a pure-Python wheel distribution.
- Maintenance status is aging—last release was 357 days ago—so expect slower response to issues, though the package is marked Production/Stable and supports current Python versions.
License · maintenance · safety
(unclear) — License treatment is unclear; no SPDX identifier or raw license text is available in the package metadata. Verify the actual license terms before adopting in a commercial or restricted-license context.
last release 2025-08-22 (357 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 91,728 downloads/mo, #13,504 on PyPI
Alternatives
Verify before relying
pip install lmstudio
import lmstudio as lms
model = lms.llm()
response = model.complete("Once upon a time,")- Whether LM Studio application must be pre-installed and running before the SDK can be used.
- Default WebSocket endpoint and port that the SDK connects to.
- Whether async API is available in addition to the synchronous Client.
- Supported LM Studio versions and any version compatibility constraints.
What it is and what it does
The LM Studio Python SDK is a client library for programmatically interacting with LM Studio, a local large language model application. It provides both a synchronous Client and a convenience API for text completion and chat workflows, communicating with a running LM Studio instance over WebSocket. The package depends on httpx, httpx-ws, msgspec, typing-extensions, and anyio to handle HTTP/WebSocket communication and async utilities.
The SDK is designed for developers who want to integrate local LLM inference into Python applications without cloud dependencies. It offers a simple interface for loading models, requesting completions, and managing chat history, with support for Python 3.10 through 3.13. The package has been in production use since 2023 but has not received updates for over a year, suggesting it is stable but not actively maintained.
Use it for
- Build a local chatbot application that maintains conversation history and responds without external API calls.
- Integrate text completion from a locally-running LLM into a Python data processing or analysis pipeline.
- Prototype and test LLM-based features during development before deploying to a cloud service.
- Create a command-line tool that queries a local model for code generation, summarization, or question-answering.
- Batch-process documents or logs using a local model for classification, extraction, or transformation tasks.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you already run LM Studio locally and want a straightforward Python interface to it.
The package has low install friction, no known vulnerabilities, and stable production status. However, the 357-day gap since the last release and unclear license terms warrant caution: verify license compliance before commercial use, and expect slower community support if issues arise. Not suitable if you need active maintenance or cloud-based LLM access.
Install
lmstudio on PyPI
Before you install
Low install friction with a pure-Python wheel distribution. Maintenance status is aging—last release was 357 days ago—so expect slower response to issues, though the package is marked Production/Stable and supports current Python versions.
Requires LM Studio application running locally and listening on the default WebSocket endpoint; Python 3.10 or later.
License in practice
License treatment is unclear; no SPDX identifier or raw license text is available in the package metadata. Verify the actual license terms before adopting in a commercial or restricted-license context.
Quickstart
pip install lmstudio
import lmstudio as lms
model = lms.llm()
response = model.complete("Once upon a time,")
Verify before relying
- Whether LM Studio application must be pre-installed and running before the SDK can be used.
- Default WebSocket endpoint and port that the SDK connects to.
- Whether async API is available in addition to the synchronous Client.
- Supported LM Studio versions and any version compatibility constraints.
Package facts
| License | Not declared unclear |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packageshttpxhttpx-wsmsgspectyping-extensionsanyio |
| Maintenance | Aging 357 days since the last release |
| First released | |
| Downloads | 91,728 / month, #13,504 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: Scientific/Engineering :: Artificial IntelligenceTyping :: Typed |
Evidence: lmstudio-1.5.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “local llm python client”
- lmstudioPython SDK for interacting with LM Studio, a local LLM application,…
- ollamaProvides a Python client to interact with Ollama, a local or…
- g4fAggregates multiple LLM and media-generation providers into a unified…
Give your agent the search over MCP, or paste the wish link into any chat.
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.
Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.
Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.
Install it if you work with Hugging Face Hub models or datasets.
LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.
hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.
Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.
Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.
Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.
See also ai21 · llm · mlx-lm · llama-index-llms-ollama · chatlas · llama-index-llms-openai · open-interpreter · langchainplus-sdk · uipath-langchain-client · llama-index-llms-litellm