$npx skillfedfor your agent

lmstudio

LM Studio Python SDK

With conditionsPyPI Artificial IntelligenceReleased Aug 202591.7K downloads / moPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — lmstudio-1.5.0-py3-none-any.whl
v1.5.0 · released 2025-08-22 · Python >=3.10 · 5 runtime deps: httpx, httpx-ws, msgspec, typing-extensions, anyio

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

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.
Same gist for agents: .md · .json

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.

With conditions

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

LicenseNot declared unclear
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
5 packages
httpxhttpx-wsmsgspectyping-extensionsanyio
MaintenanceAging 357 days since the last release
First released
Downloads91,728 / month, #13,504 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
local llm python clientlm studio sdkllm text completion apichat with local modelswebsocket language model clientoffline llm integrationlocal ai model interface
Topics
local-llmwebsocket-clientoffline-inference

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 With conditions
PyPI · Artificial Intelligence · released Aug 2026

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.

MITcompiled wheel
682.8Mdownloads / mo
huggingface-hub Worth it
PyPI · Artificial Intelligence · released Aug 2026

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.

Apache-2.0pure Python · 3.10.0+
442.4Mdownloads / mo
langchain Worth it
PyPI · Python Modules · released Aug 2026

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.

MITpure Python
315.4Mdownloads / mo
hf-xet With conditions
PyPI · Artificial Intelligence · released Aug 2026

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.

Apache-2.0compiled wheel · 3.8+
258.4Mdownloads / mo
tokenizers Worth it
PyPI · Artificial Intelligence · released Apr 2026

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.

Apache-2.0compiled wheel · 3.10+
222.9Mdownloads / mo
transformers Worth it
PyPI · Artificial Intelligence · released Aug 2026

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.

permissive licensepure Python · 3.10.0+
186.6Mdownloads / mo

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